Sourcing Tcl Scripts - 2021.2 English

Vivado Design Suite User Guide: Using Tcl Scripting (UG894)

Document ID
Release Date
2021.2 English

The source command lets you manually load Tcl script files into the Vivado tools:

source <filename>

Where < filename > specifies both the name of the file, as well as the relative or absolute path to the file. If no path is specified as part of the file name, then the Vivado tools look for the file in the working directory, or the directory from which the Vivado Design Suite was launched.

Within the Vivado IDE you can also source a Tcl script from the Tools > Run Tcl Script menu command.

By default, the source command echoes each line of the file to the Tcl console. This can be prevented by using the -notrace option, which is specific to the Vivado Tcl interpreter:

source <filename> -notrace