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++
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
12748 Discussions

export custom SOPC component generics to system.h

Altera_Forum
Honored Contributor II
1,038 Views

I have written a custom SOPC builder component in VHDL. I have also written a <sopc_component>_hw.tcl file to allow it to be instantiated in SOPC builder. 

 

Is there a way to export some of the settings that I set in SOPC builder for the component to my system.h file which is used for the NIOS II IDE? 

 

For instance, lets say my custom SOPC component is a video processing block and I can set the input video frame&#39;s rows and columns as parameters in my custom SOPC builder component. Is there a way to get whatever values I set for rows and columns so that I can read it in my C program running on the NIOS (without having to set it by hand)? In other words, I want there to be an entry in my system.h file with something like: 

# define SOPC_COMPONENT_0_COLUMNS 640# define SOPC_COMPONENT_0_ROWS 480 

 

that would be generated automatically when I build my system library files. 

 

Do I need to build a <sopc_component>_sw.tcl file in order to do this? I have not found any clear examples in the manuals about how to do what I want to do.
0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
393 Views
0 Kudos
Reply