From 58d6141eae7040f200411b12c2616ed701f9f8c0 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Thu, 18 Apr 2019 10:35:46 +0100 Subject: [PATCH] add in name into plru to help debugging --- TLB/src/ariane/tlb.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/TLB/src/ariane/tlb.py b/TLB/src/ariane/tlb.py index 7d664cad..3b91b0b8 100644 --- a/TLB/src/ariane/tlb.py +++ b/TLB/src/ariane/tlb.py @@ -205,9 +205,10 @@ class PLRU: # lvl0 <=> MSB, lvl1 <=> MSB-1, ... shift = LOG_TLB - lvl; new_idx = Const(~((i >> (shift-1)) & 1), (1, False)) + plru_idx = idx_base + (i >> shift) print ("plru", i, lvl, hex(idx_base), - idx_base + (i >> shift), shift, new_idx) - m.d.sync += plru_tree[idx_base + (i >> shift)].eq(new_idx) + plru_idx, shift, new_idx) + m.d.sync += plru_tree[plru_idx].eq(new_idx) # Decode tree to write enable signals # Next for-loop basically creates the following logic for e.g. -- 2.30.2