-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
]
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