mirror of https://github.com/VLSIDA/OpenRAM.git
Allowed for OPTS writeback of words_per_row if automatically generated during generation.
This commit is contained in:
parent
3d5c73709b
commit
12a8531248
|
|
@ -9,7 +9,6 @@ import optparse
|
||||||
import getpass
|
import getpass
|
||||||
import os
|
import os
|
||||||
|
|
||||||
|
|
||||||
class options(optparse.Values):
|
class options(optparse.Values):
|
||||||
"""
|
"""
|
||||||
Class for holding all of the OpenRAM options. All
|
Class for holding all of the OpenRAM options. All
|
||||||
|
|
@ -100,7 +99,7 @@ class options(optparse.Values):
|
||||||
# Run with extracted parasitics
|
# Run with extracted parasitics
|
||||||
use_pex = False
|
use_pex = False
|
||||||
# Output config with all options
|
# 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.
|
# For sky130, we need magic for filtering.
|
||||||
magic_exe = None
|
magic_exe = None
|
||||||
|
|
||||||
# Number of threads to use
|
|
||||||
num_threads = 2
|
|
||||||
|
|
||||||
# Should we print out the banner at startup
|
# Should we print out the banner at startup
|
||||||
print_banner = True
|
print_banner = True
|
||||||
|
|
||||||
|
|
@ -149,7 +145,7 @@ class options(optparse.Values):
|
||||||
bitcell_array = "bitcell_array"
|
bitcell_array = "bitcell_array"
|
||||||
bitcell = "bitcell"
|
bitcell = "bitcell"
|
||||||
buf_dec = "pbuf"
|
buf_dec = "pbuf"
|
||||||
column_mux_array = "column_mux_array"
|
column_mux_array = "single_level_column_mux_array"
|
||||||
control_logic = "control_logic"
|
control_logic = "control_logic"
|
||||||
decoder = "hierarchical_decoder"
|
decoder = "hierarchical_decoder"
|
||||||
delay_chain = "delay_chain"
|
delay_chain = "delay_chain"
|
||||||
|
|
@ -158,7 +154,7 @@ class options(optparse.Values):
|
||||||
inv_dec = "pinv"
|
inv_dec = "pinv"
|
||||||
nand2_dec = "pnand2"
|
nand2_dec = "pnand2"
|
||||||
nand3_dec = "pnand3"
|
nand3_dec = "pnand3"
|
||||||
nand4_dec = "pnand4"
|
nand4_dec = "pnand4" # Not available right now
|
||||||
precharge_array = "precharge_array"
|
precharge_array = "precharge_array"
|
||||||
ptx = "ptx"
|
ptx = "ptx"
|
||||||
replica_bitline = "replica_bitline"
|
replica_bitline = "replica_bitline"
|
||||||
|
|
|
||||||
|
|
@ -21,6 +21,12 @@ 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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue