Removed stale fixme and moved words per row OPTS setting.

This commit is contained in:
Hunter Nichols 2021-02-15 15:20:32 -08:00
parent 4700f14e82
commit c7f14b1bf9
2 changed files with 5 additions and 6 deletions

View File

@ -24,12 +24,6 @@ class sram():
sram_config.set_local_config(self) sram_config.set_local_config(self)
# FIXME: adjust this to not directly change OPTS.
# Word-around to have values relevant to OPTS be displayed if not directly set.
OPTS.words_per_row = self.words_per_row
debug.info(1, "Changed OPTS wpr={}".format(self.words_per_row))
debug.info(1, "OPTS wpr={}".format(OPTS.words_per_row))
# reset the static duplicate name checker for unit tests # reset the static duplicate name checker for unit tests
# in case we create more than one SRAM # in case we create more than one SRAM
from design import design from design import design

View File

@ -63,6 +63,11 @@ class sram_config:
self.recompute_sizes() self.recompute_sizes()
# Set word_per_row in OPTS
OPTS.words_per_row = self.words_per_row
debug.info(1, "Set SRAM Words Per Row={}".format(OPTS.words_per_row))
def recompute_sizes(self): def recompute_sizes(self):
""" """
Calculate the auxiliary values assuming fixed number of words per row. Calculate the auxiliary values assuming fixed number of words per row.