This commit is contained in:
mrg 2021-05-25 13:22:33 -07:00
parent 8610144ccb
commit bc793ec3d8
1 changed files with 2 additions and 2 deletions

View File

@ -613,8 +613,8 @@ def report_status():
# If write size is more than half of the word size, # If write size is more than half of the word size,
# then it doesn't need a write mask. It would be writing # then it doesn't need a write mask. It would be writing
# the whole word. # the whole word.
if (OPTS.write_size < 1 or OPTS.write_size > OPTS.word_size/2): if (OPTS.write_size < 1 or OPTS.write_size > OPTS.word_size / 2):
debug.error("Write size needs to be between 1 bit and {0} bits.".format(OPTS.word_size/2)) debug.error("Write size needs to be between 1 bit and {0} bits.".format(int(OPTS.word_size / 2)))
if not OPTS.tech_name: if not OPTS.tech_name:
debug.error("Tech name must be specified in config file.") debug.error("Tech name must be specified in config file.")