mirror of https://github.com/VLSIDA/OpenRAM.git
Add warning for large memory sizes
This commit is contained in:
parent
52a02a68de
commit
a18071a4ff
|
|
@ -417,7 +417,10 @@ def report_status():
|
||||||
debug.error("Tech name must be specified in config file.")
|
debug.error("Tech name must be specified in config file.")
|
||||||
|
|
||||||
debug.print_raw("Technology: {0}".format(OPTS.tech_name))
|
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,
|
debug.print_raw("Word size: {0}\nWords: {1}\nBanks: {2}".format(OPTS.word_size,
|
||||||
OPTS.num_words,
|
OPTS.num_words,
|
||||||
OPTS.num_banks))
|
OPTS.num_banks))
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue