HowTo guide for managing vivado projects with tcl script project creation. Working with Version 2018.2.2 (Problems if Vivado versions of creation and usage are different)
-
Make sure, that all the (versioned) source files are added as a reference to your project (reference to your local git repository -- do not copy the files into your project)
-
Use a file structure according to the Vivado best practice guide
-
File->Project->Write Tcl...
-
Specify output file (disable all options)
-
Open created script with a text editor
-
Go to the "create_project" command and replace "./${xil_proj_name}" with "$orig_proj_dir"
-
Commit the script
-
Check out the repository containing the project you want to create
-
Open tcl script used to build the project with a text editor
-
Got to variable "origin_dir" and set the absolute path to the directory where the tcl script is located (e.g. set origin_dir "C:/Users/Rupert Schorn/Documents/TU_Wien/Sem11/Labor SoC Design/GIT/FailsafeECU/Design/Hardware/BusMonitor/script")
-
Got to variable "orig_proj_dir" and set the absolute path to the directory where you want to create your project (e.g. set orig_proj_dir "C:/Vivado/BusMonitor")
-
Open Vivado
-
Tools->Run Tcl Script...
-
Select the tcl script to build the project
-
Check the Tcl Console for errors and warnings and check if the sources are available within the project tree