unsigned const
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sun, 14 Apr 2019 17:29:49 +0000 (18:29 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sun, 14 Apr 2019 17:29:49 +0000 (18:29 +0100)
TLB/src/ariane/tlb.py

index a31edbd79f7632a59d39cbffcff3f14aa2b10232..875606f111d1fbd24a5fd412fe7189869ba2ab35 100644 (file)
@@ -198,7 +198,7 @@ class PLRU:
                     idx_base = (1<<lvl)-1
                     # lvl0 <=> 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)