derive from Elaboratable
[soc.git] / src / TLB / PteEntry.py
index c07054576f1e30a1c781624263fe9956fdb4a279..73ea9220a720ce1ff0e56c0763d12dae06fc4bb9 100644 (file)
@@ -1,7 +1,8 @@
-from nmigen import Module, Signal
+from nmigen import Module, Signal, Elaboratable
 from nmigen.cli import main
 
-class PteEntry():
+
+class PteEntry(Elaboratable):
     """ The purpose of this Module is to  centralize the parsing of Page
         Table Entries (PTE) into one module to prevent common mistakes
         and duplication of code. The control bits are parsed out for
@@ -63,4 +64,4 @@ class PteEntry():
         ]
         m.d.comb += self.asid.eq(self.i[self.asid_start:self.asid_end])
         m.d.comb += self.pte.eq(self.i[0:self.asid_start])
-        return m
\ No newline at end of file
+        return m