mirror of
https://github.com/openhwgroup/cvw
synced 2025-02-11 06:05:49 +00:00
fixed no forcing bug in linux testbench.
This commit is contained in:
parent
238cc9f9fd
commit
c409bde6ae
@ -27,7 +27,7 @@
|
|||||||
|
|
||||||
`include "wally-config.vh"
|
`include "wally-config.vh"
|
||||||
|
|
||||||
`define DEBUG_TRACE 2
|
`define DEBUG_TRACE 0
|
||||||
// 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
|
||||||
@ -547,9 +547,10 @@ module testbench;
|
|||||||
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)) begin \
|
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, AttemptedInstructionCount); \
|
if(!NO_IE_MTIME_CHECKPOINT) begin \
|
||||||
if(!NO_IE_MTIME_CHECKPOINT) \
|
$display("%tns, %d instrs: Overwrite UART's LSR in memory stage.", $time, AttemptedInstructionCount); \
|
||||||
force dut.core.ieu.dp.ReadDataM = ExpectedMemReadDataM; \
|
force dut.core.ieu.dp.ReadDataM = ExpectedMemReadDataM; \
|
||||||
|
end \
|
||||||
end 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; \
|
||||||
|
Loading…
Reference in New Issue
Block a user