Can someone kindly explain me why in a Vivado project, under simulation, there is a directory called "Sim1"? If I create different testbeches, should I put each testbench in a different directory? What about if I create an other directory called "Sim2"? Thanks!
Because you can define different simulation sets. Please open Settings
in your Project Manager
and choose the tab Simulation
. You will find a field called Simulation Set
. Use this to define another simulation set, for example sim_2
. You can define different testbenches in your sets, so you can easily switch between different test cases.
Please see the following example:
I have a design with two different testbenches (in this case the testbenches are the same), and so I create two simulation sets.
Each set has his own testbench and his own waveform configuration file (containing the signals, the layout and the formatting of each signal).
You can change the set by right clicking the chosen set and clicking Make Active
:
The set changes to sim_1
. The testbench of sim_1
is set as Top and the waveform configuration file is used for the simulation.
Note: Each set needs a top file, so Vivado will ask you for a top file when you switch to a set without a top file.