linux testbench now ignores HWRITE glitches caused by flush glitches

This commit is contained in:
bbracker 2021-06-25 09:28:52 -04:00
parent 2694a7a43f
commit 9927f771cc
2 changed files with 3 additions and 2 deletions

View File

@ -4,6 +4,7 @@ view wave
add wave -divider
add wave /testbench/clk
add wave /testbench/reset
add wave -dec /testbench/instrs
add wave -divider Stalls_and_Flushes
add wave /testbench/dut/hart/StallF

View File

@ -27,7 +27,7 @@
module testbench();
parameter waveOnICount = 2514000; // # of instructions at which to turn on waves in graphical sim
parameter waveOnICount = 2657000; // # of instructions at which to turn on waves in graphical sim
///////////////////////////////////////////////////////////////////////////////
@ -491,7 +491,7 @@ module testbench();
//always @(HWDATA or HADDR or HSIZE or HWRITE) begin
always @(negedge HWRITE) begin
//#1;
if ($time != 0) begin
if (($time != 0) && ~dut.hart.hzu.FlushM) begin
if($feof(data_file_memW)) begin
$display("no more memW data to read");
`ERROR