From 095e0baddd0c917d081fbe8d0f8ec69c99f94ddf Mon Sep 17 00:00:00 2001 From: Eren Dogan Date: Fri, 7 Apr 2023 12:32:29 -0700 Subject: [PATCH] Remove CHECKPOINT_OPTS since it is not used --- compiler/globals.py | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/compiler/globals.py b/compiler/globals.py index 626b5d22..2adae59e 100644 --- a/compiler/globals.py +++ b/compiler/globals.py @@ -28,7 +28,6 @@ NAME = "OpenRAM v{}".format(VERSION) USAGE = "sram_compiler.py [options] \nUse -h for help.\n" OPTS = options.options() -CHECKPOINT_OPTS = None def parse_args(): @@ -209,17 +208,6 @@ def init_openram(config_file, is_unit_test=False): factory.reset() global OPTS - global CHECKPOINT_OPTS - - # This is a hack. If we are running a unit test and have checkpointed - # the options, load them rather than reading the config file. - # This way, the configuration is reloaded at the start of every unit test. - # If a unit test fails, - # we don't have to worry about restoring the old config values - # that may have been tested. - if is_unit_test and CHECKPOINT_OPTS: - OPTS.__dict__ = CHECKPOINT_OPTS.__dict__.copy() - return # Setup correct bitcell names setup_bitcell() @@ -227,10 +215,6 @@ def init_openram(config_file, is_unit_test=False): # Import these to find the executables for checkpointing from openram import characterizer from openram import verify - # Make a checkpoint of the options so we can restore - # after each unit test - if not CHECKPOINT_OPTS: - CHECKPOINT_OPTS = copy.copy(OPTS) def install_conda():