Forum Discussion
Altera_Forum
Honored Contributor
9 years agoHow to set automatic values in *.tcl files (automatic maxChannel in my case)
I would like to reuse a custom component with an adjustable channel width parameter (added to the Qsys IP catalog). The problem when using it is that the associated *.tcl file has a static valu...
Altera_Forum
Honored Contributor
9 years agoOh, I thought you were talking about your own parameter called maxChannels. Yes, you would need an elaboration callback in the hw.tcl file, like this for example:
set_module_property ELABORATION_CALLBACK my_elaboration_callback proc my_elaboration_callback {} { if { [ get_parameter_value ENABLE_STREAM_OUTPUT ] == "false" } { set_port_property aso_data TERMINATION true set_port_property aso_valid TERMINATION true set_port_property aso_ready TERMINATION true set_port_property aso_ready TERMINATION_VALUE 0 } }