Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

How to set a relative path in Vivado with set_origin script TCL/TK

Status
Not open for further replies.

flote21

Advanced Member level 1
Joined
Jan 22, 2014
Messages
411
Helped
1
Reputation
2
Reaction score
3
Trophy points
1,298
Activity points
5,595
Hello buddies!

I am wondering about how to set a relative path to create a project in VIVADO using a script TCL/TK. The target is to create a project in the same directory where my TCL scripts are located.

For example my project treee directory is: c:\SwitchLed\TCL. A script TCL is located inside of the TCL folder and I want to create a VIVADO project in c:\SwithLed\Work_Dir. The question is how to set_origin in order to create the folder Work_Dir and create also the VIVADO project inside.

Thanks in advance.
 

Not sure if I am completely correct, jst run in your env and make the necessary changes. The beginning of your TCL file should be similar.

# This would be the dir c:\SwitchLed\TCL
set origin_dir "."

# Set the directory path for the original project
set orig_proj_dir "[file normalize "$origin_dir/../Work_Dir"]"

# Create project
create_project your_project_name ./../Work_Dir

# Set the directory path for the new project
set proj_dir [get_property directory [current_project]]
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top