Commit 6b81f87a by Zachary Snow

fix stale logs in test runner

parent 82d06b39
...@@ -118,6 +118,11 @@ simulateAndCompare() { ...@@ -118,6 +118,11 @@ simulateAndCompare() {
assertTrue "VCDs are different:\n$output" $? assertTrue "VCDs are different:\n$output" $?
output=`diff $ref_log $gen_log` output=`diff $ref_log $gen_log`
assertTrue "Simulation outputs differ:\n$output" $? assertTrue "Simulation outputs differ:\n$output" $?
rm -f $ref_vcd
rm -f $gen_vcd
rm -f $ref_log
rm -f $gen_log
} }
runTest() { runTest() {
......
...@@ -23,7 +23,7 @@ module top; ...@@ -23,7 +23,7 @@ module top;
end end
initial begin initial begin
$monitor($time, " data: %h check: %b checkData: %h", dataIn, {check1, check2}, checkData); $monitor($time, " data: %h check: %b%b checkData: %h", dataIn, check1, check2, checkData);
clear = 1'b1; clear = 1'b1;
dataIn = 8'h0; dataIn = 8'h0;
repeat(3) @(posedge clock); repeat(3) @(posedge clock);
......
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