From 27142f0fef5c3130082fd7e19676470a998ddbbd Mon Sep 17 00:00:00 2001 From: Noah Boorstin Date: Thu, 28 Jan 2021 13:33:22 -0500 Subject: [PATCH] testbench now understands lw not aligned to 8 bytes also busybear now has first 500 instead of 100 instrs and prints current instrs less --- wally-pipelined/regression/wally-busybear.do | 2 +- wally-pipelined/testbench/testbench-busybear.sv | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/wally-pipelined/regression/wally-busybear.do b/wally-pipelined/regression/wally-busybear.do index 207d93e1..bf4a7b55 100644 --- a/wally-pipelined/regression/wally-busybear.do +++ b/wally-pipelined/regression/wally-busybear.do @@ -130,6 +130,6 @@ add wave /testbench_busybear/InstrWName #set DefaultRadix hexadecimal # #-- Run the Simulation -run 1300 +run 2220 #run -all ##quit diff --git a/wally-pipelined/testbench/testbench-busybear.sv b/wally-pipelined/testbench/testbench-busybear.sv index 3dea453e..80921c42 100644 --- a/wally-pipelined/testbench/testbench-busybear.sv +++ b/wally-pipelined/testbench/testbench-busybear.sv @@ -163,7 +163,9 @@ module testbench_busybear(); scan_file_PC = $fscanf(data_file_PC, "%x\n", InstrF); // then expected PC value scan_file_PC = $fscanf(data_file_PC, "%x\n", pcExpected); - $display("loaded %0d instructions", instrs); + if (instrs > 175 || instrs % 10 == 0) begin + $display("loaded %0d instructions", instrs); + end instrs += 1; // are we at a branch/jump? case (lastInstrF[6:0]) //todo: add C versions of these