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 may alternatively use the
relaunch_simTcl command to re-compile and re-launch the simulation.Figure 1. Relaunch Simulation Button
- 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 may fail for reasons other than compilation errors, such as in the case of a file system error. If the Run buttons on the Simulation toolbar are grayed out after a re-launch, indicating that the simulation is disabled, check the contents of the Tcl Console for possible errors that have prevented the re-launch from succeeding.
You may also re-launch the simulation using Run Simulation in the Flow Navigator or using
launch_simulationTcl command. However, using these options may fully close the simulation, discarding waveform changes and simulation settings such as radix customization.
Note: The Relaunch Simulation button will be active only after one successful run of Vivado simulator using
launch_simulation. The Relaunch Simulation button would be grayed out if the simulation is run in a Batch/Scripted mode.