From 6b81f87a88cc13bd375c400c9f3ee295c455c475 Mon Sep 17 00:00:00 2001 From: Zachary Snow Date: Mon, 29 Jun 2020 16:08:49 -0600 Subject: [PATCH] fix stale logs in test runner --- test/lib/functions.sh | 5 +++++ test/relong/functions_tb.v | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/test/lib/functions.sh b/test/lib/functions.sh index 0e74990..e796e0e 100644 --- a/test/lib/functions.sh +++ b/test/lib/functions.sh @@ -118,6 +118,11 @@ simulateAndCompare() { assertTrue "VCDs are different:\n$output" $? output=`diff $ref_log $gen_log` assertTrue "Simulation outputs differ:\n$output" $? + + rm -f $ref_vcd + rm -f $gen_vcd + rm -f $ref_log + rm -f $gen_log } runTest() { diff --git a/test/relong/functions_tb.v b/test/relong/functions_tb.v index ddbe3d3..b22415e 100644 --- a/test/relong/functions_tb.v +++ b/test/relong/functions_tb.v @@ -23,7 +23,7 @@ module top; end 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; dataIn = 8'h0; repeat(3) @(posedge clock);