Replaced async reset flip flops with sync reset flip flops in cache and bpread.

This commit is contained in:
Ross Thompson 2021-10-27 09:57:11 -05:00
parent 90cf37b881
commit c4170ece27
5 changed files with 7 additions and 7 deletions

View File

@ -49,7 +49,7 @@ module cachereplacementpolicy
logic LRUWriteEnD;
/* verilator lint_off BLKLOOPINIT */
always_ff @(posedge clk, posedge reset) begin
always_ff @(posedge clk) begin
if (reset) begin
RAdrD <= '0;
MemPAdrMD <= '0;

View File

@ -111,7 +111,7 @@ module cacheway #(parameter NUMLINES=512, parameter BLOCKLEN = 256, TAGLEN = 26,
assign VictimTagWay = SelFlush ? FlushThisWay : VicDirtyWay;
always_ff @(posedge clk, posedge reset) begin
always_ff @(posedge clk) begin
if (reset)
ValidBits <= {NUMLINES{1'b0}};
else if (InvalidateAll)
@ -134,14 +134,14 @@ module cacheway #(parameter NUMLINES=512, parameter BLOCKLEN = 256, TAGLEN = 26,
generate
if(DIRTY_BITS) begin
always_ff @(posedge clk, posedge reset) begin
always_ff @(posedge clk) begin
if (reset)
DirtyBits <= {NUMLINES{1'b0}};
else if (SetDirtyD & (WriteEnableD | VDWriteEnableD)) DirtyBits[WAdrD] <= 1'b1;
else if (ClearDirtyD & (WriteEnableD | VDWriteEnableD)) DirtyBits[WAdrD] <= 1'b0;
end
always_ff @(posedge clk, posedge reset) begin
always_ff @(posedge clk) begin
SetDirtyD <= SetDirty;
ClearDirtyD <= ClearDirty;
end

View File

@ -144,7 +144,7 @@ module dcachefsm
assign CntEn = PreCntEn & AHBAck;
always_ff @(posedge clk, posedge reset)
always_ff @(posedge clk)
if (reset) CurrState <= #1 STATE_READY;
else CurrState <= #1 NextState;

View File

@ -116,7 +116,7 @@ module icachefsm
logic PreCntEn;
// the FSM is always runing, do not stall.
always_ff @(posedge clk, posedge reset)
always_ff @(posedge clk)
if (reset) CurrState <= #1 STATE_READY;
else CurrState <= #1 NextState;

View File

@ -62,7 +62,7 @@ module RASPredictor
.q(PtrQ));
// RAS must be reset.
always_ff @ (posedge clk, posedge reset) begin
always_ff @ (posedge clk) begin
if(reset) begin
for(index=0; index<StackSize; index++)
memory[index] <= {`XLEN{1'b0}};