Commit b59c6603 by Zachary Snow

test runner checks for iverilog warnings

parent dce92405
...@@ -17,14 +17,20 @@ simulate() { ...@@ -17,14 +17,20 @@ simulate() {
sim_top="$1"; shift sim_top="$1"; shift
# compile the files # compile the files
sim_prog="$SHUNIT_TMPDIR/simprog.exe" sim_prog="$SHUNIT_TMPDIR/simprog.exe"
iverilog \ iv_output=`iverilog \
-Wall \
-Wno-select-range \
-o "$sim_prog" \ -o "$sim_prog" \
-g2005 \ -g2005 \
-DTEST_VCD="\"$sim_vcd\"" \ -DTEST_VCD="\"$sim_vcd\"" \
-DTEST_TOP=$sim_top \ -DTEST_TOP=$sim_top \
"$SCRIPT_DIR/tb_dumper.v" \ "$SCRIPT_DIR/tb_dumper.v" \
"$@" "$@" 2>&1`
assertTrue "iverilog on $1 failed" $? assertTrue "iverilog on $1 failed" $?
assertNull "iverilog emitted warnings:" "$iv_output"
if [ "$iv_output" != "" ]; then
echo "$iv_output"
fi
# run the simulation # run the simulation
$sim_prog > $sim_log $sim_prog > $sim_log
assertTrue "simulating $1 failed" $? assertTrue "simulating $1 failed" $?
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment