From 81f9dff9ff413ab6c27d2a96cb4ce28eb2c372dd Mon Sep 17 00:00:00 2001 From: Ganesh Gore Date: Thu, 1 Jul 2021 22:19:53 -0600 Subject: [PATCH 1/2] [Flow] Allows benchmark specific var declaraton --- openfpga_flow/scripts/run_fpga_task.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/openfpga_flow/scripts/run_fpga_task.py b/openfpga_flow/scripts/run_fpga_task.py index 0cb6612e1..1a373df9b 100644 --- a/openfpga_flow/scripts/run_fpga_task.py +++ b/openfpga_flow/scripts/run_fpga_task.py @@ -271,6 +271,9 @@ def generate_each_task_actions(taskname): fallback=ys_rewrite_for_task_common) CurrBenchPara["chan_width"] = SynthSection.get(bech_name+"_chan_width", 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": # 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) else: flow_run_dir = get_flow_rundir(arch, bench["top_module"], lbl) - + command = create_run_command( curr_job_dir=flow_run_dir, archfile=arch, From 1de1f2f2e23f5caa14f859a77a427b48590a0ba8 Mon Sep 17 00:00:00 2001 From: Ganesh Gore Date: Thu, 1 Jul 2021 22:26:00 -0600 Subject: [PATCH 2/2] [FLOW] Variable in capital case --- openfpga_flow/scripts/run_fpga_task.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openfpga_flow/scripts/run_fpga_task.py b/openfpga_flow/scripts/run_fpga_task.py index 1a373df9b..66ac0f838 100644 --- a/openfpga_flow/scripts/run_fpga_task.py +++ b/openfpga_flow/scripts/run_fpga_task.py @@ -272,7 +272,7 @@ def generate_each_task_actions(taskname): CurrBenchPara["chan_width"] = SynthSection.get(bech_name+"_chan_width", fallback=chan_width_common) for eachKey, eachValue in SynthSection.items(): - eachKey = eachKey.replace(bech_name+"_","") + eachKey = eachKey.replace(bech_name+"_","").upper() CurrBenchPara[eachKey] = eachValue if GeneralSection.get("fpga_flow") == "vpr_blif":