mirror of
https://github.com/openhwgroup/cvw
synced 2025-02-11 06:05:49 +00:00
buildroot: add workaround for weird initial MSTATUS state
This commit is contained in:
parent
82320033d5
commit
0afd5ae5f6
@ -299,11 +299,13 @@ module testbench_busybear();
|
|||||||
`ERROR \
|
`ERROR \
|
||||||
end \
|
end \
|
||||||
end else begin \
|
end else begin \
|
||||||
for(integer j=0; j<totalCSR; j++) begin \
|
if (!(`BUILDROOT == 1 && "MSTATUS" == `"CSR`")) begin \
|
||||||
if(!StartCSRname[j].icompare(`"CSR`")) begin \
|
for(integer j=0; j<totalCSR; j++) begin \
|
||||||
if(``PATH``.``CSR``_REGW != StartCSRexpected[j]) begin \
|
if(!StartCSRname[j].icompare(`"CSR`")) begin \
|
||||||
$display("%0t ps, instr %0d: %s does not equal %s expected: %x, %x", $time, instrs, `"CSR`", StartCSRname[j], ``PATH``.``CSR``_REGW, StartCSRexpected[j]); \
|
if(``PATH``.``CSR``_REGW != StartCSRexpected[j]) begin \
|
||||||
`ERROR \
|
$display("%0t ps, instr %0d: %s does not equal %s expected: %x, %x", $time, instrs, `"CSR`", StartCSRname[j], ``PATH``.``CSR``_REGW, StartCSRexpected[j]); \
|
||||||
|
`ERROR \
|
||||||
|
end \
|
||||||
end \
|
end \
|
||||||
end \
|
end \
|
||||||
end \
|
end \
|
||||||
|
Loading…
Reference in New Issue
Block a user