From 0adfe664296ccf8087689709c8d1291bb5bde62a Mon Sep 17 00:00:00 2001 From: Matt Guthaus Date: Tue, 4 Sep 2018 11:15:18 -0700 Subject: [PATCH] Add total_ port variables to sram base class. --- compiler/sram_base.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/compiler/sram_base.py b/compiler/sram_base.py index 23412f05..ca3351b5 100644 --- a/compiler/sram_base.py +++ b/compiler/sram_base.py @@ -19,6 +19,10 @@ class sram_base(design): self.sram_config = sram_config sram_config.set_local_config(self) + self.total_write = OPTS.num_rw_ports + OPTS.num_w_ports + self.total_read = OPTS.num_rw_ports + OPTS.num_r_ports + self.total_ports = OPTS.num_rw_ports + OPTS.num_w_ports + OPTS.num_r_ports + self.bank_insts = []