Forum Discussion
Altera_Forum
Honored Contributor
13 years agorelative path in a do file
hello i am a beginner in modelsim i want to use relative path in do file but it doesn't work my os is windows xp my relative path is : vcom -work Work_Project ../../SRC/A_Interface.vhd ...
Altera_Forum
Honored Contributor
13 years agoHere, try these two scripts:
# test1.do# # Example to show relative sourcing of scripts.
# Path to this script
set path ]]
puts "Hello from test1"
source $path/test2.do
# test2.do
puts "Hello from test2"
The output from Modelsim is:
Modelsim> source c:/temp/test1.do# Hello from test1# Hello from test2
The script was sourced from an arbitrary location. Cheers, Dave