mirror of
https://github.com/openhwgroup/cvw
synced 2025-01-23 13:04:28 +00:00
Fixed mem write checking
now passes around 50 instructions!
This commit is contained in:
parent
05d4f2d33d
commit
09c92a6b5d
@ -53,6 +53,7 @@ add wave -hex /testbench_busybear/MemRWM[0]
|
||||
add wave -hex /testbench_busybear/MemRWM[1]
|
||||
add wave -hex /testbench_busybear/ByteMaskM
|
||||
add wave -hex /testbench_busybear/WriteDataM
|
||||
add wave -hex /testbench_busybear/DataAdrM
|
||||
add wave -hex /testbench_busybear/dut/dp/regf/rf[1]
|
||||
add wave -hex /testbench_busybear/dut/dp/regf/rf[2]
|
||||
add wave -hex /testbench_busybear/dut/dp/regf/rf[3]
|
||||
@ -128,6 +129,6 @@ add wave /testbench_busybear/InstrWName
|
||||
#set DefaultRadix hexadecimal
|
||||
#
|
||||
#-- Run the Simulation
|
||||
run 700
|
||||
run 800
|
||||
#run -all
|
||||
##quit
|
||||
|
@ -103,14 +103,18 @@ module testbench_busybear();
|
||||
end
|
||||
end
|
||||
|
||||
logic [`XLEN-1:0] writeDataExpected;
|
||||
logic [`XLEN-1:0] writeDataExpected, writeAdrExpected;
|
||||
// this might need to change
|
||||
always @(WriteDataM or DataAdrM or ByteMaskM) begin
|
||||
#1;
|
||||
if (MemRWM[0]) begin
|
||||
$display("!!!!");
|
||||
scan_file_memW = $fscanf(data_file_memW, "%x\n", writeDataExpected);
|
||||
scan_file_memW = $fscanf(data_file_memW, "%x\n", writeAdrExpected);
|
||||
if (writeDataExpected != WriteDataM) begin
|
||||
$display("%t ps: WriteDataM does not equal WriteDataExpected: %x, %x", $time, WriteDataM, writeDataExpected);
|
||||
$display("%t ps: WriteDataM does not equal writeDataExpected: %x, %x", $time, WriteDataM, writeDataExpected);
|
||||
end
|
||||
if (writeAdrExpected != DataAdrM) begin
|
||||
$display("%t ps: DataAdrM does not equal writeAdrExpected: %x, %x", $time, DataAdrM, writeAdrExpected);
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user