Forum Discussion
Altera_Forum
Honored Contributor
15 years agoCreate my own megafunction
Hi, I would like to create an IP from a vhdl file that can be instantiated with the megawizard tool with some customizable parameters : - activate or not outputs - change generic paramete...
Altera_Forum
Honored Contributor
15 years agoI should also say that parameterization is easy to do using the .tcl API. Component editor will detect your generics/parameters and make them editable. Sometimes I hand modify the .tcl file after component editor is done writing it out to make fancy parameters like radio buttons, pulldowns, update the valid parameter selections, grey out selections based on other parameters, etc... To enable/disable interfaces or ports you can add callbacks to your .tcl file (start with Component editor first since it'll get you 90% the way there) and add the extra code to do this based on the parameterization.
Most of what you are looking for is probably in one of the cores in this design. There is a lot of parameterization stuff going on in those so don't scared by my gnarly code :)