switch off print statements
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Mon, 14 Sep 2020 13:48:29 +0000 (14:48 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Mon, 14 Sep 2020 13:48:29 +0000 (14:48 +0100)
src/nmutil/plru.py

index e99d56d90b8c86affac1fba9d4a5ec341406ab03..4ed15374ad739912582dfd029ef34104f064231c 100644 (file)
@@ -62,8 +62,8 @@ class PLRU(Elaboratable):
                     shift = LOG_TLB - lvl
                     new_idx = Const(~((i >> (shift-1)) & 1), 1)
                     plru_idx = idx_base + (i >> shift)
-                    print("plru", i, lvl, hex(idx_base),
-                          plru_idx, shift, new_idx)
+                    #print("plru", i, lvl, hex(idx_base),
+                    #      plru_idx, shift, new_idx)
                     m.d.sync += plru_tree[plru_idx].eq(new_idx)
 
         # Decode tree to write enable signals
@@ -96,7 +96,7 @@ class PLRU(Elaboratable):
                     en.append(~plru)  # yes inverted (using bool() below)
                 else:
                     en.append(plru)  # yes inverted (using bool() below)
-            print("plru replace", i, en)
+            #print("plru replace", i, en)
             # boolean logic manipulation:
             # plru0 & plru1 & plru2 == ~(~plru0 | ~plru1 | ~plru2)
             replace.append(~Cat(*en).bool())