Following are the associated Tcl commands:
- Tcl Command:
add_filesorimport_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_dirNote: Theadd_filescommand references the file from its current location. Theimport_filescommand copies the file into the project.CAUTION:Theread_xdc,read_vhdl,read_verilog,read_ip, andread_edifTcl 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_MODEproperty with theadd_filesTcl 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).