From: Luke Kenneth Casson Leighton Date: Sun, 14 Apr 2019 17:47:16 +0000 (+0100) Subject: use Cat on list, makes graphviz clearer X-Git-Tag: div_pipeline~2238 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d00edf9b87b299757b5fec992250eb8728d9124f;p=soc.git use Cat on list, makes graphviz clearer --- 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