write_size init in sram_config

This commit is contained in:
Bugra Onal
2022-07-28 15:03:41 -07:00
parent e130ba736c
commit a75951b5b1
+3 -3
View File
@@ -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