tlb assign zero

This commit is contained in:
Paul Pan 2021-08-18 10:32:17 +08:00
parent fbfd7c87a1
commit 22888616ad

View File

@ -211,8 +211,9 @@ module TLB_Lookup (
& (TLB_entries[i].G | TLB_entries[i].ASID == ASID);
// assume: hit is unique
assign hit = |{hitWay};
assign index.P = ~hit;
assign hit = |{hitWay};
assign index.P = ~hit;
assign index.zero = 0;
onehot_bin4 index_decoder(hitWay, index.Index);
// always_comb for (int i = 0; i < 32; i++) index.Index |= hitWay[i] ? i : 0;