Xilinx / finn-examples

Dataflow QNN inference accelerator examples on FPGAs
BSD 3-Clause "New" or "Revised" License
165 stars 57 forks source link

Vivado project files for examples #70

Open siwave opened 7 months ago

siwave commented 7 months ago

Are the Vivado projects for the pre-built examples available for download?

Thanks

mmrahorovic commented 6 months ago

Hi @siwave,

The Vivado projects aren't available for download. However, for each pre-built network example, we have provided steps to rebuild the bitfile, which can be found here. The Vivado project of the stitched-IP can then be found under $FINN_HOST_BUILD_DIR. Depending on which example network you're interested in and presuming you only want the Vivado project of the stitched-IP, you can add an additional flag called "stop_step" in the DataflowBuildConfig to run the build flow up until creating the stitched-IP. Since this depends slightly on the custom steps of the networks, I've listed which step generates the stitched-IP:

You would need to modify the build.py and add, for example for the bnn-pynq models, the line stop_step="create_stitched_ip" as part of the parameters of the DataflowBuildConfig.

Additionally, if you want to synthesize the stitched-IP, you can set the parameter enable_stitched_ip_synth=True in the DataflowBuildConfig. Note however that this will increase the execution time of the build flow.

Hope this helps!