Following are the associated Tcl commands:
- Tcl Command:
add_files
orimport_files
- Tcl Command Examples:
add_files top.v import_files -fileset constrs_1 C:/projects/sources/timing.xdc add_files -norecurse source_dir import_files source_dir
Note: Theadd_files
command references the file from its current location. Theimport_files
command copies the file into the project.CAUTION:Theread_xdc
,read_vhdl
,read_verilog
,read_ip
, andread_edif
Tcl commands are designed for use with Non-Project Mode only. For more information, see Working with Sources in Non-Project Mode.Tip: You can use thePATH_MODE
property with theadd_files
Tcl command to specify whether to use absolute or relative paths. By default, relative paths are used. For more information, see the Vivado Design Suite Properties Reference Guide (UG912).