Redefined write_size inrecompute_sizes() to take the new word_size()

This commit is contained in:
jsowash
2019-07-15 14:41:26 -07:00
parent dfa2b29b8f
commit ea2f786dcf
4 changed files with 15 additions and 5 deletions
+4
View File
@@ -73,6 +73,10 @@ class sram_config:
SRAM for testing.
"""
# This function is ran without the write mask option, but word_size can be redefined
# which makes the tests think there is a write mask.
self.write_size = self.word_size
# If the banks changed
self.num_words_per_bank = self.num_words/self.num_banks
self.num_bits_per_bank = self.word_size*self.num_words_per_bank