Rename of DCacheMem to cacheway.

simplified dcache names.
This commit is contained in:
Ross Thompson 2021-08-25 13:33:15 -05:00
parent c48556836b
commit 83cc0266b2
2 changed files with 9 additions and 10 deletions

View File

@ -25,7 +25,7 @@
`include "wally-config.vh"
module DCacheMem #(parameter NUMLINES=512, parameter BLOCKLEN = 256, TAGLEN = 26,
module cacheway #(parameter NUMLINES=512, parameter BLOCKLEN = 256, TAGLEN = 26,
parameter OFFSETLEN, parameter INDEXLEN)
(input logic clk,
input logic reset,

View File

@ -202,10 +202,9 @@ module dcache
assign SRAMWordEnable = SRAMBlockWriteEnableM ? '1 : MemPAdrDecodedW;
DCacheMem #(.NUMLINES(NUMLINES), .BLOCKLEN(BLOCKLEN), .TAGLEN(TAGLEN),
.OFFSETLEN(OFFSETLEN), .INDEXLEN(INDEXLEN))
MemWay[NUMWAYS-1:0](.clk(clk),
.reset(reset),
cacheway #(.NUMLINES(NUMLINES), .BLOCKLEN(BLOCKLEN), .TAGLEN(TAGLEN), .OFFSETLEN(OFFSETLEN), .INDEXLEN(INDEXLEN))
MemWay[NUMWAYS-1:0](.clk,
.reset,
.Adr(SRAMAdr),
.MemPAdrM(MemPAdrM[`PA_BITS-1:OFFSETLEN+INDEXLEN]),
.WriteEnable(SRAMWayWriteEnable),
@ -218,11 +217,11 @@ module dcache
.SetDirty(SetDirtyM),
.ClearDirty(ClearDirtyM),
.SelEvict,
.VictimWay(VictimWay),
.ReadDataBlockWayMaskedM(ReadDataBlockWayMaskedM),
.WayHit(WayHit),
.VictimDirtyWay(VictimDirtyWay),
.VictimTagWay(VictimTagWay));
.VictimWay,
.ReadDataBlockWayMaskedM,
.WayHit,
.VictimDirtyWay,
.VictimTagWay);
always_ff @(posedge clk, posedge reset) begin
if (reset) begin