vhdl - In a TCL script how do I echo the content of a variable? -
i writing tcl script modelsim, , want compare output value of signal constant know circuit working correctly. know how control input signals can't figure out how echo output.
ideally i'd able pipe csv file, it'd enough have script return pass/fail.
still need read value of output (in case it's sim:/union/outf) in similar way [$echo outf] on bash
ps. realize title may misleading, because can print value of variable declared inside script. need print current value of wave output.
the direct equivalent in tcl of bash's echo $out
is:
puts $out
or, if variable environment variable:
puts $env(out)
Comments
Post a Comment