Added option for model to specify regression model data path.

This commit is contained in:
Hunter Nichols 2021-01-25 14:24:54 -08:00
parent c8e631108a
commit 7bed5bdd1c
2 changed files with 9 additions and 2 deletions

View File

@ -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):

View File

@ -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.