Tcl Commands for Adding Design Sources, Constraints Files, and Simulation Sources - 2023.1 English

Vivado Design Suite User Guide: System-Level Design Entry (UG895)

Document ID
UG895
Release Date
2023-05-16
Version
2023.1 English

Following are the associated Tcl commands:

  • Tcl Command: add_files or import_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: The add_files command references the file from its current location. The import_files command copies the file into the project.
    CAUTION:
    The read_xdc, read_vhdl, read_verilog, read_ip, and read_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 the PATH_MODE property with the add_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).