From 561ced3fca535efea7707357fa718c478467aaef Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Sun, 14 Apr 2019 18:29:49 +0100 Subject: [PATCH] unsigned const --- TLB/src/ariane/tlb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TLB/src/ariane/tlb.py b/TLB/src/ariane/tlb.py index a31edbd7..875606f1 100644 --- a/TLB/src/ariane/tlb.py +++ b/TLB/src/ariane/tlb.py @@ -198,7 +198,7 @@ class PLRU: idx_base = (1< MSB, lvl1 <=> MSB-1, ... shift = LOG_TLB - lvl; - new_idx = Const(~((i >> (shift-1)) & 1), 1) + new_idx = Const(~((i >> (shift-1)) & 1), (1, False)) 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) -- 2.30.2