Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
12744 Discussions

Create a device driver for a composed component

SimonT
Beginner
217 Views

I have created a composed component that includes multiple avalon components.

e.g. one altera_avalon_spi and 2 altera_avalon_pio instances.

Bildschirmfoto vom 2025-09-04 16-25-13.png

 

With platform designer I have exported the system as _hw.tcl file. Additionaly I have created a _sw.tcl file to define a device driver for the composed component.

 

The composed component is included in a parent NiosV QSYS system.

Bildschirmfoto vom 2025-09-04 16-28-54.png

Now I want to create the BSP for this system.
My goal is to have a single driver for the composed component. From that single driver I want to control the SPI and PIO instances whithin that composed component and their interaction.
The problem is, that within the BSP editor the component instances that are defined in the composed component are still completly independent. Also the sw driver defined in the _sw.tcl is not available in the BSP Editor.

Bildschirmfoto vom 2025-09-04 14-27-57.png

How can I create a single driver for a composed component?

0 Kudos
1 Reply
Archer_Altera
Employee
137 Views

Hi @SimonT 

 

Platform Designer supports hierarchical systems that include one or more Platform Designer subsystems within another Platform  Designer system.  It is convenient for design work in fact. The component created by exporting a subsystem will be analyzed by tool chain to know the real components inner subsystem. That is why BSP editor tool still list pio and one spi module.

 

Regards,

Archer

0 Kudos
Reply