Forum Discussion
Altera_Forum
Honored Contributor
14 years ago --- Quote Start --- my strategy is to have golden files which get copied into the generated project directory. the files can be modified upon copy --- Quote End --- Under what conditions have you found you need to modify files? Were generics not enough? An argument against copying unmodified source code into a project, is that it makes it harder to verify a suite of designs that use the component. For example, using Modelsim, you can compile components into a library, and then testbenches into another library, and then run all of the testbenches to confirm the functionality of the components in the library. You can then simulate multiple designs against the component library without having to build the source for each-and-every component, testbench, and design. In the _hw.tcl example I give above, a wrapper is generated for a component that uses generics with types that are not supported by SOPC Builder. Hence the wrapper is needed because of SOPC Builder, not because of VHDL or Verilog language limitations. I'm curious as to your experience with the need to generate code. Cheers, Dave