Add warning for large memory sizes

This commit is contained in:
Matt Guthaus 2019-02-25 10:07:05 -08:00
parent 52a02a68de
commit a18071a4ff
1 changed files with 4 additions and 1 deletions

View File

@ -417,7 +417,10 @@ def report_status():
debug.error("Tech name must be specified in config file.")
debug.print_raw("Technology: {0}".format(OPTS.tech_name))
debug.print_raw("Total size: {} bits".format(OPTS.word_size*OPTS.num_words*OPTS.num_banks))
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.")
debug.print_raw("Word size: {0}\nWords: {1}\nBanks: {2}".format(OPTS.word_size,
OPTS.num_words,
OPTS.num_banks))