mirror of
https://github.com/openhwgroup/cvw.git
synced 2025-04-22 21:08:08 -04:00
only assign ClearDirtyWay for read-write caches
This commit is contained in:
parent
4cbb9bcec6
commit
0ed3e80ee0
1 changed files with 1 additions and 1 deletions
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…
Add table
Add a link
Reference in a new issue