[Flow] Allows benchmark specific var declaraton

This commit is contained in:
Ganesh Gore 2021-07-01 22:19:53 -06:00
parent 4818e08448
commit 81f9dff9ff
1 changed files with 4 additions and 1 deletions

View File

@ -271,6 +271,9 @@ 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)
for eachKey, eachValue in SynthSection.items():
eachKey = eachKey.replace(bech_name+"_","")
CurrBenchPara[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
@ -320,7 +323,7 @@ def generate_each_task_actions(taskname):
flow_run_dir = get_flow_rundir(arch, "bench" + str(benchmark_list.index(bench)) + "_" + bench["top_module"], lbl) flow_run_dir = get_flow_rundir(arch, "bench" + str(benchmark_list.index(bench)) + "_" + bench["top_module"], lbl)
else: else:
flow_run_dir = get_flow_rundir(arch, bench["top_module"], lbl) flow_run_dir = get_flow_rundir(arch, bench["top_module"], lbl)
command = create_run_command( command = create_run_command(
curr_job_dir=flow_run_dir, curr_job_dir=flow_run_dir,
archfile=arch, archfile=arch,