forked from Github_Repos/cvw
only assign ClearDirtyWay for read-write caches
This commit is contained in:
parent
729f81a0df
commit
d60e3aaf53
2
src/cache/cacheway.sv
vendored
2
src/cache/cacheway.sv
vendored
@ -97,9 +97,9 @@ module cacheway #(parameter NUMLINES=512, LINELEN = 256, TAGLEN = 26,
|
||||
/////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
assign SetValidWay = SetValid & SelData;
|
||||
assign ClearDirtyWay = ClearDirty & SelData;
|
||||
if (!READ_ONLY_CACHE) begin
|
||||
assign SetDirtyWay = SetDirty & SelData;
|
||||
assign ClearDirtyWay = ClearDirty & SelData;
|
||||
assign SelectedWriteWordEn = (SetValidWay | SetDirtyWay) & ~FlushStage;
|
||||
assign SetValidEN = SetValidWay & ~FlushStage;
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user