Skip to content

Commit

Permalink
adi_tb_env: Updated TCL variables setting
Browse files Browse the repository at this point in the history
- Separated Testbenches from HDL dependency

Signed-off-by: Istvan-Zsolt Szekely <[email protected]>
  • Loading branch information
IstvanZsSzekely committed Nov 29, 2024
1 parent 1aaf49b commit 1fce0ec
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion scripts/adi_tb_env.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,16 @@
###############################################################################

# environment related stuff
if [info exists ::env(ADI_HDL_DIR)] {
set ad_hdl_dir [file normalize $::env(ADI_HDL_DIR)]
} else {
error "Missing ADI_HDL_DIR environment variable definition!"
}

set ad_tb_dir [file normalize [file join [file dirname [info script]] "../"]]

source $ad_tb_dir/../scripts/adi_env.tcl
if [info exists ::env(ADI_TB_DIR)] {
set ad_tb_dir [file normalize $::env(ADI_TB_DIR)]
}

source $ad_hdl_dir/scripts/adi_env.tcl

0 comments on commit 1fce0ec

Please sign in to comment.