2014-02-28 21:57:19 +00:00
|
|
|
|
|
|
|
# environment related stuff
|
|
|
|
|
2015-04-01 11:21:38 +00:00
|
|
|
set ad_hdl_dir [file normalize [file join [file dirname [info script]] "../.."]]
|
2019-07-12 07:24:48 +00:00
|
|
|
|
|
|
|
# assuming that ghdl is cloned next to hdl repository
|
|
|
|
set ad_ghdl_dir [file normalize [file join [file dirname [info script]] "../../../ghdl"]]
|
2015-04-01 11:21:38 +00:00
|
|
|
|
2014-02-28 21:57:19 +00:00
|
|
|
|
|
|
|
if [info exists ::env(ADI_HDL_DIR)] {
|
2017-10-23 08:52:53 +00:00
|
|
|
set ad_hdl_dir [file normalize $::env(ADI_HDL_DIR)]
|
2014-02-28 21:57:19 +00:00
|
|
|
}
|
|
|
|
|
2019-07-12 07:24:48 +00:00
|
|
|
if [info exists ::env(ADI_GHDL_DIR)] {
|
|
|
|
set ad_ghdl_dir [file normalize $::env(ADI_GHDL_DIR)]
|
2014-02-28 21:57:19 +00:00
|
|
|
}
|
|
|
|
|