Only setup bitcell when running top-level OpenRAM

This commit is contained in:
Matt Guthaus 2019-11-26 13:54:37 -08:00
parent b71d630643
commit abd8b0a23a
2 changed files with 4 additions and 2 deletions

View File

@ -168,8 +168,6 @@ def init_openram(config_file, is_unit_test=True):
from sram_factory import factory
factory.reset()
setup_bitcell()
global OPTS
global CHECKPOINT_OPTS

View File

@ -31,8 +31,12 @@ if len(args) != 1:
# These depend on arguments, so don't load them until now.
import debug
# Parse config file and set up all the options
g.init_openram(config_file=args[0], is_unit_test=False)
# Ensure that the right bitcell exists or use the parameterised one
g.setup_bitcell()
# Only print banner here so it's not in unit tests
g.print_banner()