diff --git a/compiler/characterizer/regression_model.py b/compiler/characterizer/regression_model.py index d79d2faf..d9c2359d 100644 --- a/compiler/characterizer/regression_model.py +++ b/compiler/characterizer/regression_model.py @@ -32,8 +32,13 @@ lib_dnames = ["delay_lh", "write0_power", "read1_power", "read0_power", - "leakage_power"] -data_dir = OPTS.openram_tech+relative_data_path + "leakage_power"] +# Check if another data dir was specified +if OPTS.sim_data_path == None: + data_dir = OPTS.openram_tech+relative_data_path +else: + data_dir = OPTS.sim_data_path + data_paths = {dname:data_dir +'/'+fname for dname, fname in zip(lib_dnames, data_fnames)} class regression_model(simulation): diff --git a/compiler/options.py b/compiler/options.py index 2ded46c8..62e00efd 100644 --- a/compiler/options.py +++ b/compiler/options.py @@ -86,6 +86,8 @@ class options(optparse.Values): only_use_config_corners = False # A list of PVT tuples and be given and only these will be characterized use_specified_corners = None + # Allows specification of model data + sim_data_path = None ################### # Run-time vs accuracy options.