Forum Discussion
Altera_Forum
Honored Contributor
17 years agoexport custom SOPC component generics to system.h
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'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.1 Reply
- Altera_Forum
Honored Contributor
Just to provide closure to this thread, the solution was posted here:
http://www.alteraforum.com/forum/showthrea...referrerid=2226 (http://www.alteraforum.com/forum/showthread.php?t=6280&referrerid=2226) Jake