This repository has been archived on 2023-04-15. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
vivado-202304/adi_library/scripts/adi_env.tcl
T
2023-03-18 15:35:53 +08:00

18 lines
451 B
Tcl

# environment related stuff
set ad_hdl_dir [file normalize [file join [file dirname [info script]] "../.."]]
# assuming that ghdl is cloned next to hdl repository
set ad_ghdl_dir [file normalize [file join [file dirname [info script]] "../../../ghdl"]]
if [info exists ::env(ADI_HDL_DIR)] {
set ad_hdl_dir [file normalize $::env(ADI_HDL_DIR)]
}
if [info exists ::env(ADI_GHDL_DIR)] {
set ad_ghdl_dir [file normalize $::env(ADI_GHDL_DIR)]
}