forked from Github_Repos/cvw
Added comments about why it is not possible to use FlushWay and VictimWay directly.
This commit is contained in:
parent
1463e9b1d4
commit
d15cf5c65c
5
pipelined/src/cache/cacheway.sv
vendored
5
pipelined/src/cache/cacheway.sv
vendored
@ -82,11 +82,12 @@ module cacheway #(parameter NUMLINES=512, parameter LINELEN = 256, TAGLEN = 26,
|
||||
logic FlushWayEn, VictimWayEn;
|
||||
|
||||
|
||||
// FlushWay and VictimWay are part of a one hot way selection. Must clear them if FlushWay not selected
|
||||
// or VictimWay not selected.
|
||||
assign FlushWayEn = FlushWay & SelFlush;
|
||||
assign VictimWayEn = VictimWay & SelEvict;
|
||||
|
||||
assign SelWriteback = SelFlush | SetValid | SelEvict;
|
||||
//assign SelWriteback = FlushWay | SetValid | SelEvict;
|
||||
assign SelWriteback = FlushWayEn | SetValid | SelEvict;
|
||||
|
||||
mux2 #(1) seltagmux(VictimWay, FlushWay, SelFlush, SelTag);
|
||||
//assign SelTag = VictimWay | FlushWay;
|
||||
|
Loading…
Reference in New Issue
Block a user