Where can I use Tcl variables?
Are Tcl variables inside of the XDC file supported in Vivado Design Suite?
You can run the following in the Tcl Console from the CPU example design:
The Tcl Console does support Tcl variables.
Tcl variables in the XDC file are not supported, and parsing the XDC file using the following methods will not work:Users are expected to have a separate Tcl file for the general Tcl commands and Tcl variables, and these should not be included in the XDC file.
If you are creating your own scripts, we recommend that you have a top level Tcl file for the general project command, and then use the 'read_xdc' or 'add_files' commands to read the XDC file.