mirror of
https://github.com/openhwgroup/cvw
synced 2025-02-11 06:05:49 +00:00
Minor optimization to cache replacement.
This commit is contained in:
parent
e0740034f0
commit
0438975e27
4
pipelined/src/cache/cache.sv
vendored
4
pipelined/src/cache/cache.sv
vendored
@ -147,7 +147,7 @@ module cache #(parameter integer LINELEN,
|
||||
cachereplacementpolicy(.clk, .reset,
|
||||
.WayHit,
|
||||
.VictimWay,
|
||||
.PAdr(PAdr[INDEXLEN+OFFSETLEN-1:OFFSETLEN]),
|
||||
.PAdr(NoTranAdr[INDEXLEN+OFFSETLEN-1:OFFSETLEN]),
|
||||
.RAdr,
|
||||
.LRUWriteEn);
|
||||
end else begin:vict
|
||||
@ -197,7 +197,7 @@ module cache #(parameter integer LINELEN,
|
||||
assign SRAMLineWayWriteEnable = SRAMLineWriteEnable ? VictimWay : '0;
|
||||
|
||||
mux2 #(NUMWAYS) WriteEnableMux(.d0(SRAMWordWriteEnable ? WayHit : '0),
|
||||
.d1(SRAMLineWayWriteEnable),
|
||||
.d1(VictimWay),
|
||||
.s(SRAMLineWriteEnable),
|
||||
.y(SRAMWayWriteEnable));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user