Forum Discussion
Altera_Forum
Honored Contributor
14 years ago --- Quote Start --- Would the script then modify the code? --- Quote End --- The script essentially generates the code. The template file has a .txt extension. For SOPC builder, each component is uniquely named, so the template is read into a buffer, the parameters are set, and then a .vhd file is written out. --- Quote Start --- The best solution for me would be that it overrides the value given in the package for the generation of the system but it shouldn't touch the file. --- Quote End --- Then the above will not work. Unless you consider 'the file' to be the template, and the package to be generated code. --- Quote Start --- If this is not possible I would be interested in your solution which modifies the constant. Do you have an example on how to do that? --- Quote End --- What is the constant doing? If the constant is a generic used on components within the design, then you can just set the generic in Quartus via a Tcl synthesis script or via the GUI. If however, you have a 'generic package', then it depends on the support for that feature in Quartus ... last time I looked that construct was not supported, but I haven't tried in 11.1sp1. Cheers, Dave