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
+2 -3
View File
@@ -57,8 +57,7 @@ class functional(simulation):
self.wmask[self.num_wmask-1 - bit] = 1
else:
self.wmask[self.num_wmask-1 - bit] = 0
print(self.wmask)
def run(self, feasible_period=None):
if feasible_period: #period defaults to tech.py feasible period otherwise.
self.period = feasible_period
@@ -110,7 +109,7 @@ class functional(simulation):
elif bit == 0:
word = old_word[lower:upper+1] + word [upper+1:self.word_size]
else:
word = word[0:lower] + old_word[lower:upper+1] + word [upper+1:self.word_size]cfusms
word = word[0:lower] + old_word[lower:upper+1] + word [upper+1:self.word_size]
#word = word.replace(word[lower:upper+1],old_word[lower:upper+1],1)
self.stored_words[addr] = word
else: