[dv/tools] Bug fix to common.tcl tb_top section.
Signed-off-by: Eitan Shapira <eitan.shapira@nuvoton.com>
diff --git a/hw/dv/tools/common.tcl b/hw/dv/tools/common.tcl
index f9a941d..7279aef 100644
--- a/hw/dv/tools/common.tcl
+++ b/hw/dv/tools/common.tcl
@@ -17,8 +17,9 @@
}
set tb_top "tb"
-if {[info exists ::(TB_TOP)]} {
+if {[info exists ::env(TB_TOP)]} {
set tb_top "$::env(TB_TOP)"
+} else {
puts "WARNING: TB_TOP environment variable not set - using \"tb\" as the
top level testbench hierarchy."
}