mirror of
https://github.com/openhwgroup/cvw
synced 2025-02-11 06:05:49 +00:00
fix ReadDataM forcing
This commit is contained in:
parent
3aec080e15
commit
eb21e34000
@ -27,7 +27,7 @@
|
|||||||
|
|
||||||
`include "wally-config.vh"
|
`include "wally-config.vh"
|
||||||
|
|
||||||
`define DEBUG_TRACE 0
|
`define DEBUG_TRACE 2
|
||||||
// Debug Levels
|
// Debug Levels
|
||||||
// 0: don't check against QEMU
|
// 0: don't check against QEMU
|
||||||
// 1: print disagreements with QEMU, but only halt on PCW disagreements
|
// 1: print disagreements with QEMU, but only halt on PCW disagreements
|
||||||
@ -546,11 +546,11 @@ module testbench;
|
|||||||
end \
|
end \
|
||||||
if(`"STAGE`"=="M") begin \
|
if(`"STAGE`"=="M") begin \
|
||||||
// override on special conditions \
|
// override on special conditions \
|
||||||
if ((dut.core.lsu.LSUPAdrM == 'h10000002) | (dut.core.lsu.LSUPAdrM == 'h10000005) | (dut.core.lsu.LSUPAdrM == 'h10000006)) \
|
if ((dut.core.lsu.LSUPAdrM == 'h10000002) | (dut.core.lsu.LSUPAdrM == 'h10000005) | (dut.core.lsu.LSUPAdrM == 'h10000006)) begin \
|
||||||
//$display("%tns, %d instrs: Overwrite UART's LSR in memory stage.", $time, InstrCountW-1); \
|
$display("%tns, %d instrs: Overwrite UART's LSR in memory stage.", $time, AttemptedInstructionCount); \
|
||||||
if(!NO_IE_MTIME_CHECKPOINT) \
|
if(!NO_IE_MTIME_CHECKPOINT) \
|
||||||
force dut.core.ieu.dp.ReadDataM = ExpectedMemReadDataM; \
|
force dut.core.ieu.dp.ReadDataM = ExpectedMemReadDataM; \
|
||||||
else \
|
end else \
|
||||||
if(!NO_IE_MTIME_CHECKPOINT) \
|
if(!NO_IE_MTIME_CHECKPOINT) \
|
||||||
release dut.core.ieu.dp.ReadDataM; \
|
release dut.core.ieu.dp.ReadDataM; \
|
||||||
if(textM.substr(0,5) == "rdtime") begin \
|
if(textM.substr(0,5) == "rdtime") begin \
|
||||||
|
Loading…
Reference in New Issue
Block a user