Exclude CacheLRU log2 function from coverage

This commit is contained in:
Alec Vercruysse 2023-04-03 13:44:07 -07:00
parent 7373cbb3ff
commit c41f4d2e7b

View File

@ -67,11 +67,14 @@ module cacheLRU
assign AllValid = &ValidWay;
///// Update replacement bits.
// coverage off: Untestable without varying NUMWAYS.
function integer log2 (integer value);
for (log2=0; value>0; log2=log2+1)
value = value>>1;
return log2;
endfunction // log2
// coverage on
// On a miss we need to ignore HitWay and derive the new replacement bits with the VictimWay.
mux2 #(NUMWAYS) WayMux(HitWay, VictimWay, SetValid, Way);