From d00edf9b87b299757b5fec992250eb8728d9124f Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Sun, 14 Apr 2019 18:47:16 +0100 Subject: [PATCH] use Cat on list, makes graphviz clearer --- TLB/src/ariane/tlb.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/TLB/src/ariane/tlb.py b/TLB/src/ariane/tlb.py index 875606f1..17669348 100644 --- a/TLB/src/ariane/tlb.py +++ b/TLB/src/ariane/tlb.py @@ -217,6 +217,7 @@ class PLRU: # For each entry traverse the tree. If every tree-node matches # the corresponding bit of the entry's index, this is # the next entry to replace. + replace = [] for i in range(TLB_ENTRIES): en = [] for lvl in range(LOG_TLB): @@ -234,7 +235,8 @@ class PLRU: print ("plru", i, en) # boolean logic manipulation: # plru0 & plru1 & plru2 == ~(~plru0 | ~plru1 | ~plru2) - m.d.comb += self.replace_en_o[i].eq(~Cat(*en).bool()) + replace.append(~Cat(*en).bool()) + m.d.comb += self.replace_en_o.eq(Cat(*replace)) return m -- 2.30.2