mirror of
https://github.com/openhwgroup/cvw
synced 2025-02-11 06:05:49 +00:00
busybear: print warning when NOPing out instructions
This commit is contained in:
parent
a82f8977c6
commit
1b9ec8b339
@ -180,8 +180,10 @@ module testbench_busybear();
|
|||||||
PCtext = {PCtext, " ", PCtext2};
|
PCtext = {PCtext, " ", PCtext2};
|
||||||
end
|
end
|
||||||
scan_file_PC = $fscanf(data_file_PC, "%x\n", InstrF);
|
scan_file_PC = $fscanf(data_file_PC, "%x\n", InstrF);
|
||||||
if(InstrF[6:0] == 7'b1010011) // for now, NOP out any float instrs
|
if(InstrF[6:0] == 7'b1010011) begin // for now, NOP out any float instrs
|
||||||
InstrF = 32'b0010011;
|
InstrF = 32'b0010011;
|
||||||
|
$display("warning: NOPing out %s at PC=%0d", PCtext, instrs);
|
||||||
|
end
|
||||||
// then expected PC value
|
// then expected PC value
|
||||||
scan_file_PC = $fscanf(data_file_PC, "%x\n", pcExpected);
|
scan_file_PC = $fscanf(data_file_PC, "%x\n", pcExpected);
|
||||||
if (instrs <= 10 || (instrs <= 100 && instrs % 10 == 0) ||
|
if (instrs <= 10 || (instrs <= 100 && instrs % 10 == 0) ||
|
||||||
|
Loading…
Reference in New Issue
Block a user