From d2a1f6b6542e12a04da182239e9b24214bd0bde6 Mon Sep 17 00:00:00 2001 From: mrg Date: Tue, 29 Jun 2021 09:35:33 -0700 Subject: [PATCH] Add num_rows/cols to sim --- compiler/characterizer/simulation.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/compiler/characterizer/simulation.py b/compiler/characterizer/simulation.py index 9112e5eb..24f848c4 100644 --- a/compiler/characterizer/simulation.py +++ b/compiler/characterizer/simulation.py @@ -37,6 +37,8 @@ class simulation(): self.read_ports = self.sram.read_ports self.write_ports = self.sram.write_ports self.words_per_row = self.sram.words_per_row + self.num_rows = self.sram.num_rows + self.num_cols = self.sram.num_cols if self.write_size: self.num_wmasks = int(math.ceil(self.word_size / self.write_size)) else: @@ -536,7 +538,7 @@ class simulation(): if self.words_per_row > 1: self.sram.graph_clear_column_mux(port) self.sram.graph_exclude_column_mux(self.bitline_column, port) - + # Generate new graph every analysis as edges might change depending on test bit self.graph = graph_util.timing_graph() self.sram_instance_name = "X{}".format(self.sram.name)