forked from Github_Repos/cvw
commented out old hack that used hardcoded addresses
This commit is contained in:
parent
4c785845f3
commit
a3823ce3a9
@ -27,7 +27,7 @@
|
|||||||
|
|
||||||
module testbench();
|
module testbench();
|
||||||
|
|
||||||
parameter waveOnICount = `BUSYBEAR*140000 + `BUILDROOT*0900000; // # of instructions at which to turn on waves in graphical sim
|
parameter waveOnICount = `BUSYBEAR*140000 + `BUILDROOT*2790000; // # of instructions at which to turn on waves in graphical sim
|
||||||
parameter stopICount = `BUSYBEAR*143898 + `BUILDROOT*0000000; // # instructions at which to halt sim completely (set to 0 to let it run as far as it can)
|
parameter stopICount = `BUSYBEAR*143898 + `BUILDROOT*0000000; // # instructions at which to halt sim completely (set to 0 to let it run as far as it can)
|
||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////
|
||||||
@ -222,24 +222,24 @@ module testbench();
|
|||||||
`SCAN_PC(data_file_PCF, scan_file_PCF, PCtextF, PCtextF2, InstrFExpected, PCFexpected);
|
`SCAN_PC(data_file_PCF, scan_file_PCF, PCtextF, PCtextF2, InstrFExpected, PCFexpected);
|
||||||
`SCAN_PC(data_file_PCD, scan_file_PCD, PCtextD, PCtextD2, InstrDExpected, PCDexpected);
|
`SCAN_PC(data_file_PCD, scan_file_PCD, PCtextD, PCtextD2, InstrDExpected, PCDexpected);
|
||||||
|
|
||||||
// NOP out certain instructions
|
// NOP out certain instructions <-- commented out because no duh hardcoded addressses break easily
|
||||||
if(dut.hart.ifu.PCD===PCDexpected) begin
|
//if(dut.hart.ifu.PCD===PCDexpected) begin
|
||||||
if((dut.hart.ifu.PCD == 32'h80001dc6) || // for now, NOP out any stores to PLIC
|
// if((dut.hart.ifu.PCD == 32'h80001dc6) || // for now, NOP out any stores to PLIC
|
||||||
(dut.hart.ifu.PCD == 32'h80001de0) ||
|
// (dut.hart.ifu.PCD == 32'h80001de0) ||
|
||||||
(dut.hart.ifu.PCD == 32'h80001de2)) begin
|
// (dut.hart.ifu.PCD == 32'h80001de2)) begin
|
||||||
$display("warning: NOPing out %s at PCD=%0x, instr %0d, time %0t", PCtextD, dut.hart.ifu.PCD, instrs, $time);
|
// $display("warning: NOPing out %s at PCD=%0x, instr %0d, time %0t", PCtextD, dut.hart.ifu.PCD, instrs, $time);
|
||||||
force InstrDExpected = 32'b0010011;
|
// force InstrDExpected = 32'b0010011;
|
||||||
force dut.hart.ifu.InstrRawD = 32'b0010011;
|
// force dut.hart.ifu.InstrRawD = 32'b0010011;
|
||||||
while (clk != 0) #1;
|
// while (clk != 0) #1;
|
||||||
while (clk != 1) #1;
|
// while (clk != 1) #1;
|
||||||
release dut.hart.ifu.InstrRawD;
|
// release dut.hart.ifu.InstrRawD;
|
||||||
release InstrDExpected;
|
// release InstrDExpected;
|
||||||
warningCount += 1;
|
// warningCount += 1;
|
||||||
forcedInstr = 1;
|
// forcedInstr = 1;
|
||||||
end else begin
|
// end else begin
|
||||||
forcedInstr = 0;
|
// forcedInstr = 0;
|
||||||
end
|
// end
|
||||||
end
|
//end
|
||||||
|
|
||||||
// Increment instruction count
|
// Increment instruction count
|
||||||
if (instrs <= 10 || (instrs <= 100 && instrs % 10 == 0) ||
|
if (instrs <= 10 || (instrs <= 100 && instrs % 10 == 0) ||
|
||||||
|
Loading…
Reference in New Issue
Block a user