06-28-2019 12:43 PM
I am a bit surprised that I couldn't find any posts relate to this and forgive me if I overlooked an existing post.
In modelsim it's elegant to change a parameter (using parameter interchangeably with generic across RTL langs) without recompiling using the "-g" flag in vsim.
What's the equivalent method for vivado so I don't have to continuously close_sim, change code, recompile, which is clunky?
Thanks in advance.
07-03-2019 04:06 AM
Hi @olupj ,
I'm not sure if this is waht you want, but you can set generic values during elaboration with the:
This overrides the generic or parameter of a top-level design unit with specified value.
Example: -generic_top "P1=10"
07-03-2019 06:18 AM
That seems like a synthesis step, is that also used in the processes involved in simulation? If so, how is it isolated?
How would that integrate into TCL console commands?
For instance, the goal is to not have to run "launch_sim" each time. Or if I do, controlling the parameters each time I launch_sim (using -generic_top, which is not available as an argument in launch_sim), would work.
In modelsim this is the equivalent of skipping vlog/vcom (and vopt) steps. I can set generics/parameters via the "vsim" command and iterate over design changes easily.
Please advise, best, Jerry
07-05-2019 01:27 AM
Hi @olupj ,
The -generic_top is one of the elaboration options for the xelab command.
This performs a static elaboration of the design (sets parameters, generics, puts generate statements into effect, and so forth)
You can use the export_simulation tcl command to create scripts to compile, elaborate and run the simulation. These can then be modified if needed and called later.
If you check out Chapter 7 of UG900 it has more information on running simulation via scripts:
07-10-2019 07:13 AM