mirror of
https://github.com/openhwgroup/cvw
synced 2025-02-11 06:05:49 +00:00
More cleanup.
This commit is contained in:
parent
9869b26556
commit
91a22c3a8a
@ -326,7 +326,8 @@ module testbench;
|
|||||||
|
|
||||||
integer adrindex;
|
integer adrindex;
|
||||||
if (P.UNCORE_RAM_SUPPORTED)
|
if (P.UNCORE_RAM_SUPPORTED)
|
||||||
always @(posedge ResetMem)
|
always @(posedge clk)
|
||||||
|
if (ResetMem)
|
||||||
for (adrindex=0; adrindex<(P.UNCORE_RAM_RANGE>>1+(P.XLEN/32)); adrindex = adrindex+1)
|
for (adrindex=0; adrindex<(P.UNCORE_RAM_RANGE>>1+(P.XLEN/32)); adrindex = adrindex+1)
|
||||||
dut.uncore.uncore.ram.ram.memory.RAM[adrindex] = '0;
|
dut.uncore.uncore.ram.ram.memory.RAM[adrindex] = '0;
|
||||||
|
|
||||||
@ -335,14 +336,17 @@ module testbench;
|
|||||||
if (P.BPRED_SUPPORTED) begin
|
if (P.BPRED_SUPPORTED) begin
|
||||||
// local history only
|
// local history only
|
||||||
if (P.BPRED_TYPE == BP_LOCAL_AHEAD | P.BPRED_TYPE == BP_LOCAL_REPAIR) begin
|
if (P.BPRED_TYPE == BP_LOCAL_AHEAD | P.BPRED_TYPE == BP_LOCAL_REPAIR) begin
|
||||||
always @(posedge ResetMem) begin
|
always @(posedge clk) begin
|
||||||
|
if (ResetMem) begin
|
||||||
for(adrindex = 0; adrindex < 2**P.BPRED_NUM_LHR; adrindex++) begin
|
for(adrindex = 0; adrindex < 2**P.BPRED_NUM_LHR; adrindex++) begin
|
||||||
dut.core.ifu.bpred.bpred.Predictor.DirPredictor.BHT.mem[adrindex] = 0;
|
dut.core.ifu.bpred.bpred.Predictor.DirPredictor.BHT.mem[adrindex] = 0;
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
always @(posedge ResetMem) begin
|
always @(posedge clk) begin
|
||||||
|
if(ResetMem) begin
|
||||||
for(adrindex = 0; adrindex < 2**P.BTB_SIZE; adrindex++) begin
|
for(adrindex = 0; adrindex < 2**P.BTB_SIZE; adrindex++) begin
|
||||||
dut.core.ifu.bpred.bpred.TargetPredictor.memory.mem[adrindex] = 0;
|
dut.core.ifu.bpred.bpred.TargetPredictor.memory.mem[adrindex] = 0;
|
||||||
end
|
end
|
||||||
@ -351,6 +355,7 @@ module testbench;
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
// load memories with program image
|
// load memories with program image
|
||||||
|
Loading…
Reference in New Issue
Block a user