mirror of https://github.com/VLSIDA/OpenRAM.git
Added option for model to specify regression model data path.
This commit is contained in:
parent
c8e631108a
commit
7bed5bdd1c
|
|
@ -32,8 +32,13 @@ lib_dnames = ["delay_lh",
|
||||||
"write0_power",
|
"write0_power",
|
||||||
"read1_power",
|
"read1_power",
|
||||||
"read0_power",
|
"read0_power",
|
||||||
"leakage_power"]
|
"leakage_power"]
|
||||||
data_dir = OPTS.openram_tech+relative_data_path
|
# 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)}
|
data_paths = {dname:data_dir +'/'+fname for dname, fname in zip(lib_dnames, data_fnames)}
|
||||||
|
|
||||||
class regression_model(simulation):
|
class regression_model(simulation):
|
||||||
|
|
|
||||||
|
|
@ -86,6 +86,8 @@ class options(optparse.Values):
|
||||||
only_use_config_corners = False
|
only_use_config_corners = False
|
||||||
# A list of PVT tuples and be given and only these will be characterized
|
# A list of PVT tuples and be given and only these will be characterized
|
||||||
use_specified_corners = None
|
use_specified_corners = None
|
||||||
|
# Allows specification of model data
|
||||||
|
sim_data_path = None
|
||||||
|
|
||||||
###################
|
###################
|
||||||
# Run-time vs accuracy options.
|
# Run-time vs accuracy options.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue