braam7
Newbie level 2
I'm having trouble returning an error code from VSIM.
Modelsim is running a SystemVerilog testbench which either $finishes (PASS) or gets an $error (FAIL). I'd like to be able to interpret the error from VSIM in my bash script.
Currently the run.do file looks like this:
and is run with
If I run
after the vsim command and just get a 0 back.
Any ideas what I'm doing wrong?
Modelsim is running a SystemVerilog testbench which either $finishes (PASS) or gets an $error (FAIL). I'd like to be able to interpret the error from VSIM in my bash script.
Currently the run.do file looks like this:
Code:
onerror {quit -code 400}
run -all
and is run with
Code:
vsim tb -novopt -do run.do -quiet -c
If I run
Code:
echo $?
Any ideas what I'm doing wrong?