Creating Projects Using Tcl Commands - 2022.2 English

Vivado Design Suite User Guide: Using the Vivado IDE (UG893)

Document ID
Release Date
2022.2 English

You can also create a project using Tcl commands. Enter the commands in the Tcl Console of the Vivado IDE or source them from a Tcl file:

create_project project_Name ./exampleDesigns/project_8 -part xc7vx485tffg1157-1

The default project type is RTL. If you want to create a netlist project specify:

set_property design_mode GateLvl [current_fileset]

You can now add files to the project:

add_files -norecurse -scan_for_includes ./designs/oneFlop.v

You can also make them local to the project:

import_files -norecurse ./designs/oneFlop.v
Note: This command corresponds to the Copy Sources into Project option in the Add Sources wizard.
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).

For more information on creating a project using Tcl, see the following documents:

  • Vivado Design Suite User Guide: Design Flows Overview (UG892)
  • Vivado Design Suite User Guide: Using Tcl Scripting (UG894)