Using a -tclbatch File - 2023.2 English

Vivado Design Suite User Guide: Logic Simulation (UG900)

Document ID
UG900
Release Date
2023-10-18
Version
2023.2 English

You can type simulation commands into a Tcl file, and reference the Tcl file with the following command: -tclbatch <filename>

Use the -tclbatch option to contain commands within a file and execute those commands as simulation starts. For example, you can have a file named run.tcl that contains the following:

run 20ns
id="ag415279">current_time
quit

Then launch the simulation as follows:

xsim <snapshot> -tclbatch run.tcl

You can set a variable to represent a simulation command to quickly run frequently used simulation commands.