Increase random value range by 1

This commit is contained in:
Bugra Onal 2022-08-10 14:21:54 -07:00
parent 3f941d2fff
commit bd6621cb88
1 changed files with 1 additions and 1 deletions

View File

@ -348,7 +348,7 @@ class functional(simulation):
def gen_data(self):
""" Generates a random word to write. """
# Don't use 0 or max value
random_value = random.randint(1, self.max_data - 1)
random_value = random.randint(1, self.max_data)
data_bits = binary_repr(random_value, self.word_size)
if self.num_spare_cols>0:
random_value = random.randint(0, self.max_col_data)