Add default platform
authorDaniel Benusovich <flyingmonkeys1996@gmail.com>
Sat, 4 May 2019 22:36:46 +0000 (15:36 -0700)
committerDaniel Benusovich <flyingmonkeys1996@gmail.com>
Sat, 4 May 2019 22:36:46 +0000 (15:36 -0700)
TLB/src/ariane/src/plru.py

index a98c03a65a254754b0103ce60fabe33861371917..95d515c4835b1f02fe333dd5117a411dfbaf49c4 100644 (file)
@@ -27,7 +27,7 @@ class PLRU(Elaboratable):
         self.plru_tree = Signal(self.TLBSZ)
         self.plru_tree_o = Signal(self.TLBSZ)
 
-    def elaborate(self, platform):
+    def elaborate(self, platform=None):
         m = Module()
 
         # Just predefine which nodes will be set/cleared
@@ -100,3 +100,7 @@ class PLRU(Elaboratable):
         m.d.comb += self.replace_en_o.eq(Cat(*replace))
 
         return m
+
+    def ports(self):
+        return [self.entries, self.lu_hit, self.replace_en_o,
+                self.lu_access_i, self.plru_tree, self.plru_tree_o]
\ No newline at end of file