Allowed for OPTS writeback of words_per_row if automatically generated during generation.

This commit is contained in:
Hunter Nichols 2020-10-21 03:02:39 -07:00
parent 3d5c73709b
commit 12a8531248
2 changed files with 9 additions and 7 deletions

View File

@ -9,7 +9,6 @@ import optparse
import getpass
import os
class options(optparse.Values):
"""
Class for holding all of the OpenRAM options. All
@ -100,7 +99,7 @@ class options(optparse.Values):
# Run with extracted parasitics
use_pex = False
# Output config with all options
output_extended_config = False
output_extended_config = True
###################
@ -122,9 +121,6 @@ class options(optparse.Values):
# For sky130, we need magic for filtering.
magic_exe = None
# Number of threads to use
num_threads = 2
# Should we print out the banner at startup
print_banner = True
@ -149,7 +145,7 @@ class options(optparse.Values):
bitcell_array = "bitcell_array"
bitcell = "bitcell"
buf_dec = "pbuf"
column_mux_array = "column_mux_array"
column_mux_array = "single_level_column_mux_array"
control_logic = "control_logic"
decoder = "hierarchical_decoder"
delay_chain = "delay_chain"
@ -158,7 +154,7 @@ class options(optparse.Values):
inv_dec = "pinv"
nand2_dec = "pnand2"
nand3_dec = "pnand3"
nand4_dec = "pnand4"
nand4_dec = "pnand4" # Not available right now
precharge_array = "precharge_array"
ptx = "ptx"
replica_bitline = "replica_bitline"

View File

@ -20,6 +20,12 @@ class sram():
def __init__(self, sram_config, name):
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
# in case we create more than one SRAM