mirror of https://github.com/VLSIDA/OpenRAM.git
write_size init in sram_config
This commit is contained in:
parent
e130ba736c
commit
a75951b5b1
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue