diff --git a/notebooks/end2end_example/tfc_end2end_example.ipynb b/notebooks/end2end_example/tfc_end2end_example.ipynb index c388feca2340792c3535dba3fb3cf5e7220adf3c..7c6c70f246edd5a829938429d01cd8f4ca34c166 100644 --- a/notebooks/end2end_example/tfc_end2end_example.ipynb +++ b/notebooks/end2end_example/tfc_end2end_example.ipynb @@ -1379,7 +1379,7 @@ "value: \"/tmp/finn_dev_jakobap/vivado_pynq_proj_ljn53hfs\"\n", ", key: \"vivado_synth_rpt\"\n", "value: \"/tmp/finn_dev_jakobap/vivado_pynq_proj_ljn53hfs/synth_report.xml\"\n", - ", key: \"vivado_pynq_bitfile\"\n", + ", key: \"bitfile\"\n", "value: \"/tmp/finn_dev_jakobap/vivado_pynq_proj_ljn53hfs/resizer.bit\"\n", "]" ] @@ -1670,7 +1670,7 @@ "value: \"/tmp/finn_dev_jakobap/vivado_pynq_proj_ljn53hfs\"\n", ", key: \"vivado_synth_rpt\"\n", "value: \"/tmp/finn_dev_jakobap/vivado_pynq_proj_ljn53hfs/synth_report.xml\"\n", - ", key: \"vivado_pynq_bitfile\"\n", + ", key: \"bitfile\"\n", "value: \"/tmp/finn_dev_jakobap/vivado_pynq_proj_ljn53hfs/resizer.bit\"\n", ", key: \"pynq_driver_dir\"\n", "value: \"/tmp/finn_dev_jakobap/pynq_driver_j_9suyqm\"\n", diff --git a/src/finn/transformation/fpgadataflow/make_zynq_proj.py b/src/finn/transformation/fpgadataflow/make_zynq_proj.py index 1558d7399fe5399053c3f347cd06c4e0d76753e7..0aaf65f400ef9615e8f4b11589edd2c18969053f 100644 --- a/src/finn/transformation/fpgadataflow/make_zynq_proj.py +++ b/src/finn/transformation/fpgadataflow/make_zynq_proj.py @@ -249,7 +249,7 @@ class MakeZYNQProject(Transformation): deploy_bitfile_name = vivado_pynq_proj_dir + "/resizer.bit" copy(bitfile_name, deploy_bitfile_name) # set bitfile attribute - model.set_metadata_prop("vivado_pynq_bitfile", deploy_bitfile_name) + model.set_metadata_prop("bitfile", deploy_bitfile_name) # set platform attribute for correct remote execution model.set_metadata_prop("platform", "zynq-iodma") hwh_name = ( diff --git a/src/finn/transformation/fpgadataflow/synth_pynq_proj.py b/src/finn/transformation/fpgadataflow/synth_pynq_proj.py index d7f73a7fe3dfcd0fef314304fe939623e577ac20..54c9c805c883c17a975a0f7252e853d49471191e 100644 --- a/src/finn/transformation/fpgadataflow/synth_pynq_proj.py +++ b/src/finn/transformation/fpgadataflow/synth_pynq_proj.py @@ -50,8 +50,6 @@ class SynthPYNQProject(Transformation): process_compile = subprocess.Popen(bash_command, stdout=subprocess.PIPE) process_compile.communicate() # set bitfile attribute - model.set_metadata_prop( - "vivado_pynq_bitfile", vivado_pynq_proj_dir + "/resizer.bit" - ) + model.set_metadata_prop("bitfile", vivado_pynq_proj_dir + "/resizer.bit") # TODO pull out synthesis statistics and put them in as attributes return (model, False) diff --git a/src/finn/transformation/fpgadataflow/vitis_build.py b/src/finn/transformation/fpgadataflow/vitis_build.py index 2df58c537250c102ee85a685fc32904ee879e38f..cb9182c23cf3532a33c6716a5a6bc7dda996c902 100644 --- a/src/finn/transformation/fpgadataflow/vitis_build.py +++ b/src/finn/transformation/fpgadataflow/vitis_build.py @@ -160,7 +160,7 @@ class CreateVitisXO(Transformation): class VitisLink(Transformation): """Create an XCLBIN with Vitis. - Outcome if successful: sets the vitis_xclbin attribute in the ONNX + Outcome if successful: sets the bitfile attribute in the ONNX ModelProto's metadata_props field with the XCLBIN full path as value. """ @@ -259,7 +259,7 @@ class VitisLink(Transformation): assert os.path.isfile(xclbin), ( "Vitis .xclbin file not created, check logs under %s" % link_dir ) - model.set_metadata_prop("vitis_xclbin", xclbin) + model.set_metadata_prop("bitfile", xclbin) return (model, False) diff --git a/tests/fpgadataflow/test_fpgadataflow_ipstitch.py b/tests/fpgadataflow/test_fpgadataflow_ipstitch.py index 66b0ef921453e9e6fee9eb9be18cc556b2612f23..75a67f3508f1de69cebf466589d195a99f08dd94 100644 --- a/tests/fpgadataflow/test_fpgadataflow_ipstitch.py +++ b/tests/fpgadataflow/test_fpgadataflow_ipstitch.py @@ -333,7 +333,7 @@ def test_fpgadataflow_ipstitch_pynq_synth(): ip_stitch_model_dir + "/test_fpgadataflow_pynq_projgen.onnx" ) model = model.transform(SynthPYNQProject()) - bitfile = model.get_metadata_prop("vivado_pynq_bitfile") + bitfile = model.get_metadata_prop("bitfile") assert bitfile is not None assert os.path.isfile(bitfile) model.save(ip_stitch_model_dir + "/test_fpgadataflow_ipstitch_pynq_synth.onnx") @@ -463,7 +463,7 @@ def test_fpgadataflow_ipstitch_zynqbuild(board): model = model.transform(ZynqBuild(board, 10)) model.save(ip_stitch_model_dir + "/test_fpgadataflow_ipstitch_customzynq.onnx") - bitfile_name = model.get_metadata_prop("vivado_pynq_bitfile") + bitfile_name = model.get_metadata_prop("bitfile") assert bitfile_name is not None assert os.path.isfile(bitfile_name) # deployment