Forum Discussion
Altera_Forum
Honored Contributor
16 years agohow to export macro to system.h?
eg, I want to put # define MOD_0_FREQ 50000000u to system.h as many altera sopc ip do. And I try to add some line in the MOD_hw.tcl: add_parameter FREQ_PARAM 0 set_parameter_property FRE...
Altera_Forum
Honored Contributor
14 years agoCan you file this as a service request on the Altera website and attach the system and custom instruction files. I have a hunch what is happening here and I think you are running into a bug (in both cases) that I don't think can be easily worked around.
For now I would create a non-HDL parameter into your .tcl file and append it to the end of "SYNCHRONOUS". That way when you add the CI you can ennumerate them to avoid the overlapping '#define SYNCHRONOUS'. I think this should work assuming you call the non-HDL parameter "ID" and the combined name "UNIQUE_NAME". append UNIQUE_NAME "SYNCHRONOUS", $ID Then you would use "UNIQUE_NAME" to create the macro for the header file. You could use ID = 0 for one CI, and ID = 1 for example make sure there is no overlap in names. Note I hate .tcl so you might need to tweak that code a bit to get it to work :)