add some use of new "Elaboratable"
[soc.git] / TLB / src / ariane / plru.py
index 835c4a8e83d44b6aeb2d47fbb17195e26b6cc5e9..7c4a4041d9009a1b3560686813113e38b8a9b6a4 100644 (file)
@@ -1,9 +1,9 @@
+from nmigen import Signal, Module, Cat, Const, Elaboratable
 from math import log2
-from nmigen import Signal, Module, Cat, Const
 
 from ptw import TLBUpdate, PTE, ASID_WIDTH
 
-class PLRU:
+class PLRU(Elaboratable):
     """ PLRU - Pseudo Least Recently Used Replacement
 
         PLRU-tree indexing:
@@ -98,4 +98,4 @@ class PLRU:
             replace.append(~Cat(*en).bool())
         m.d.comb += self.replace_en_o.eq(Cat(*replace))
 
-        return m
\ No newline at end of file
+        return m