From a75951b5b101fba965e873814e2e933bfde5ef20 Mon Sep 17 00:00:00 2001 From: Bugra Onal Date: Wed, 13 Jul 2022 16:20:06 -0700 Subject: [PATCH] write_size init in sram_config --- compiler/modules/sram_config.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/compiler/modules/sram_config.py b/compiler/modules/sram_config.py index 2eb64b87..ac62886d 100644 --- a/compiler/modules/sram_config.py +++ b/compiler/modules/sram_config.py @@ -18,10 +18,10 @@ class sram_config: self.word_size = word_size self.num_words = num_words # Don't add a write mask if it is the same size as the data word - if write_size and write_size==word_size: - self.write_size = None - else: + if write_size: self.write_size = write_size + else: + self.write_size = word_size self.num_banks = num_banks self.num_spare_rows = num_spare_rows self.num_spare_cols = num_spare_cols