Add total size in warning for output size.

This commit is contained in:
Matt Guthaus 2019-02-25 14:57:18 -08:00
parent a18071a4ff
commit a4b5368302
1 changed files with 3 additions and 2 deletions

View File

@ -419,8 +419,9 @@ def report_status():
debug.print_raw("Technology: {0}".format(OPTS.tech_name))
total_size = OPTS.word_size*OPTS.num_words*OPTS.num_banks
debug.print_raw("Total size: {} bits".format(total_size))
if total_size>=2**15:
debug.warning("Requesting such a large memory size ({0}) will have a large run-time. Consider using multiple smaller banks.")
if total_size>=2**14:
debug.warning("Requesting such a large memory size ({0}) will have a large run-time. ".format(total_size) +
"Consider using multiple smaller banks.")
debug.print_raw("Word size: {0}\nWords: {1}\nBanks: {2}".format(OPTS.word_size,
OPTS.num_words,
OPTS.num_banks))