[bugFix] Benchamrk variable declaration
This commit is contained in:
parent
edd5be2cae
commit
c67807868c
|
@ -271,11 +271,11 @@ def generate_each_task_actions(taskname):
|
||||||
fallback=ys_rewrite_for_task_common)
|
fallback=ys_rewrite_for_task_common)
|
||||||
CurrBenchPara["chan_width"] = SynthSection.get(bech_name+"_chan_width",
|
CurrBenchPara["chan_width"] = SynthSection.get(bech_name+"_chan_width",
|
||||||
fallback=chan_width_common)
|
fallback=chan_width_common)
|
||||||
benchVariable = []
|
CurrBenchPara["benchVariable"] = []
|
||||||
for eachKey, eachValue in SynthSection.items():
|
for eachKey, eachValue in SynthSection.items():
|
||||||
if bech_name in eachKey:
|
if bech_name in eachKey:
|
||||||
eachKey = eachKey.replace(bech_name+"_", "").upper()
|
eachKey = eachKey.replace(bech_name+"_", "").upper()
|
||||||
benchVariable = benchVariable+[f"--{eachKey}"] + [eachValue]
|
CurrBenchPara["benchVariable"] += [eachKey,eachValue]
|
||||||
|
|
||||||
if GeneralSection.get("fpga_flow") == "vpr_blif":
|
if GeneralSection.get("fpga_flow") == "vpr_blif":
|
||||||
# Check if activity file exist
|
# Check if activity file exist
|
||||||
|
@ -337,7 +337,7 @@ def generate_each_task_actions(taskname):
|
||||||
"bench": bench,
|
"bench": bench,
|
||||||
"name": "%02d_%s_%s" % (indx, bench["top_module"], lbl),
|
"name": "%02d_%s_%s" % (indx, bench["top_module"], lbl),
|
||||||
"run_dir": flow_run_dir,
|
"run_dir": flow_run_dir,
|
||||||
"commands": command + benchVariable,
|
"commands": command + bench["benchVariable"],
|
||||||
"finished": False,
|
"finished": False,
|
||||||
"status": False})
|
"status": False})
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue