From 41585436c8a5335a6de22b7336afadf202933668 Mon Sep 17 00:00:00 2001 From: ganeshgore Date: Fri, 12 Jun 2020 15:37:12 -0600 Subject: [PATCH] Added external_fabric_key_file key --- openfpga_flow/scripts/run_fpga_flow.py | 3 +++ openfpga_flow/scripts/run_fpga_task.py | 2 ++ 2 files changed, 5 insertions(+) diff --git a/openfpga_flow/scripts/run_fpga_flow.py b/openfpga_flow/scripts/run_fpga_flow.py index fcf47ee44..9975a506d 100644 --- a/openfpga_flow/scripts/run_fpga_flow.py +++ b/openfpga_flow/scripts/run_fpga_flow.py @@ -85,6 +85,8 @@ parser.add_argument('--openfpga_arch_file', type=str, help="Openfpga architecture file for shell") parser.add_argument('--openfpga_sim_setting_file', type=str, help="Openfpga simulation file for shell") +parser.add_argument('--external_fabric_key_file', type=str, + help="Key file for shell") parser.add_argument('--yosys_tmpl', type=str, help="Alternate yosys template, generates top_module.blif") parser.add_argument('--disp', action="store_true", @@ -686,6 +688,7 @@ def run_openfpga_shell(): path_variables["VPR_ARCH_FILE"] = args.arch_file path_variables["OPENFPGA_ARCH_FILE"] = args.openfpga_arch_file path_variables["OPENFPGA_SIM_SETTING_FILE"] = args.openfpga_sim_setting_file + path_variables["EXTERNAL_FABRIC_KEY_FILE"] = args.external_fabric_key_file path_variables["VPR_TESTBENCH_BLIF"] = args.top_module+".blif" path_variables["ACTIVITY_FILE"] = args.top_module+"_ace_out.act" path_variables["REFERENCE_VERILOG_TESTBENCH"] = args.top_module + \ diff --git a/openfpga_flow/scripts/run_fpga_task.py b/openfpga_flow/scripts/run_fpga_task.py index 3361a3082..47492785f 100644 --- a/openfpga_flow/scripts/run_fpga_task.py +++ b/openfpga_flow/scripts/run_fpga_task.py @@ -357,6 +357,8 @@ def create_run_command(curr_job_dir, archfile, benchmark_obj, param, task_conf): task_gc.get("openfpga_arch_file")] command += ["--openfpga_sim_setting_file", task_gc.get("openfpga_sim_setting_file")] + command += ["--external_fabric_key_file", + task_gc.get("external_fabric_key_file")] if benchmark_obj.get("activity_file"): command += ["--activity_file", benchmark_obj.get("activity_file")]