From ca48841ae354eb561f909e49b980bfc54a7a26c4 Mon Sep 17 00:00:00 2001 From: chungshien-chai Date: Mon, 29 Jul 2024 11:04:03 -0700 Subject: [PATCH] Pass in the OpenFPGA root dir --- .../overwrite_bitstream/device_4x4/config/test.openfpga | 2 +- .../overwrite_bitstream/device_4x4/config/test.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/openfpga_flow/tasks/fpga_bitstream/overwrite_bitstream/device_4x4/config/test.openfpga b/openfpga_flow/tasks/fpga_bitstream/overwrite_bitstream/device_4x4/config/test.openfpga index ea3aa90b8..1e9e3f79c 100644 --- a/openfpga_flow/tasks/fpga_bitstream/overwrite_bitstream/device_4x4/config/test.openfpga +++ b/openfpga_flow/tasks/fpga_bitstream/overwrite_bitstream/device_4x4/config/test.openfpga @@ -1,6 +1,6 @@ # Majority of the content refer to fix_device_example_script.openfpga -ext_exec --command "python3 ${OPENFPGA_EXT_EXEC_PYTHON_SCRIPT} run_golden" +ext_exec --command "python3 ${OPENFPGA_EXT_EXEC_PYTHON_SCRIPT} run_golden ${OPENFPGA_PATH}" ext_exec --command "python3 ${OPENFPGA_EXT_EXEC_PYTHON_SCRIPT} generate_testcase" diff --git a/openfpga_flow/tasks/fpga_bitstream/overwrite_bitstream/device_4x4/config/test.py b/openfpga_flow/tasks/fpga_bitstream/overwrite_bitstream/device_4x4/config/test.py index 07d96a7da..2997bb5d6 100644 --- a/openfpga_flow/tasks/fpga_bitstream/overwrite_bitstream/device_4x4/config/test.py +++ b/openfpga_flow/tasks/fpga_bitstream/overwrite_bitstream/device_4x4/config/test.py @@ -49,7 +49,8 @@ def read_bitstream_annotation_xml(file) : if sys.argv[1] == "run_golden" : - openfpga_exe = os.path.abspath("../../../../../../../../../build/openfpga/openfpga") + assert len(sys.argv) >= 3 + openfpga_exe = os.path.abspath("%s/build/openfpga/openfpga" % sys.argv[2]) assert os.path.exists(openfpga_exe) shutil.rmtree("golden", ignore_errors=True) os.mkdir("golden")