busybear: ignore illegal instruction when starting

This commit is contained in:
Noah Boorstin 2021-03-23 13:28:44 -04:00
parent 0f8fe8fb3b
commit f3194c6388

View File

@ -282,6 +282,7 @@ module testbench_busybear();
//CSR checking \
always @(``PATH``.``CSR``_REGW) begin \
if ($time > 1) begin \
if (instrs != 0) begin \
scan_file_csr = $fscanf(data_file_csr, "%s\n", CSR); \
scan_file_csr = $fscanf(data_file_csr, "%x\n", expected``CSR``); \
if(CSR.icompare(`"CSR`")) begin \
@ -291,6 +292,7 @@ module testbench_busybear();
$display("%0t ps, instr %0d: %s does not equal %s expected: %x, %x", $time, instrs, `"CSR`", CSR, ``PATH``.``CSR``_REGW, ``expected``CSR); \
`ERROR \
end \
end \
end else begin \
for(integer j=0; j<totalCSR; j++) begin \
if(!StartCSRname[j].icompare(`"CSR`")) begin \