While debugging your HDL design with the Vivado simulator, you can determine that your HDL source code needs correction.
Use the following steps to modify your design and re-run the simulation:
- Use the Vivado code editor or other text editor to update and save any necessary source code changes.
- Use the Relaunch Simulation
button on the Vivado IDE toolbar to re-compile and re-launch the simulation, as shown in the following figure. You can also use the
relaunch_simTcl command to re-compile and re-launch the simulation.
- If the modified design fails to compile, an error box appears displaying the reason for failure. The Vivado IDE continues to display the results of the previous run of the simulation in a disabled state. Return to step 1 to correct the errors and re-launch the simulation again.
After the design successfully re-compiles, the simulation starts again.
Important: Relaunching can fail
for reasons other than compilation errors, such as in the case of a file system
error. The Run buttons on
the Simulation toolbar is
grayed out after a re-launch, indicating that simulation is disabled. Check the
contents of the Tcl Console for possible errors that prevented the re-launch.
CAUTION:
You can also re-launch
the simulation using Run
Simulation in the Flow Navigator or using
launch_simulation Tcl command. However, using these
options can fully close the simulation, discarding waveform changes and simulation
settings such as radix customization.Note: The Relaunch
Simulation button
is active only after
one successful run of Vivado simulator using
launch_simulation. The Relaunch Simulation button is grayed out if the
simulation is run in a Batch/Scripted mode.