Forum Discussion
For a custom component, you can easily do this by just editing the _hw.tcl script generated by the component editor, adding a parameter somebody could set when they add the component to a system. I've never touched a terp file.
https://www.intel.com/content/www/us/en/docs/programmable/683609/23-2/interfaces-and-ports.html
https://www.intel.com/content/www/us/en/docs/programmable/683609/23-2/parameters.html
- RFris42 years ago
New Contributor
I must be misunderstanding something then. Let's say I want to create a component that has parameter configurable number of Avalon ST sinks, between 1 and 4.
What does the HDL contain for this component? Do I create it with the signals for all 4 Avalon ST sink interfaces and have a parameter than tells PD (and the HDL) which ports are actually active?
An example of the HDL and the _hw.tcl file showing how to do this would be very helpful!
I believe this would be something worth including in a future edition of the PD user guide.