From 07441462940dcf8412fef9ed2119a905bd084659 Mon Sep 17 00:00:00 2001 From: Cesar Strauss Date: Sat, 16 Apr 2022 14:33:04 -0300 Subject: [PATCH] Add port declarations to the SRAM wrappers --- src/soc/regfile/sram_wrapper.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/src/soc/regfile/sram_wrapper.py b/src/soc/regfile/sram_wrapper.py index 5a455b81..297a935f 100644 --- a/src/soc/regfile/sram_wrapper.py +++ b/src/soc/regfile/sram_wrapper.py @@ -340,6 +340,16 @@ class PhasedDualPortRegfile(Elaboratable): return m + def ports(self): + return [ + self.wr_addr_i, + self.wr_data_i, + self.wr_we_i, + self.rd_addr_i, + self.rd_data_o, + self.phase + ] + class PhasedDualPortRegfileTestCase(FHDLTestCase): @@ -660,6 +670,15 @@ class DualPortRegfile(Elaboratable): == self.dbg_wrote_phase) return m + def ports(self): + return [ + self.wr_addr_i, + self.wr_data_i, + self.wr_we_i, + self.rd_addr_i, + self.rd_data_o + ] + class DualPortRegfileTestCase(FHDLTestCase): -- 2.30.2