A port of our old GPU design to the PYNQ-Z1 board.
- Clone the repository to a path without spaces in it.
- Create the Vivado project by either opening Vivado in
vivado/
and runningsource build.tcl
in the tcl command line or runningbuild.bat
invivado/
. The script was created for Vivado 2017.1, but older versions should also work - Generate the bitstream.
- Select Export -> Export Hardware
- Make sure 'Include bitstream' is ticked and select
sdk/
to export the hardware definition.
- Once you have successfully exported a bitstream, go to
sdk/
. - Run
generate_sdk.bat
orsource generate_sdk.tcl
inxsdk
. The hardware definition and bsp projects will now be set up. - After this, you may open the Xilinx SDK by running
run_sdk.bat
or choosingsdk/
as your workspace manually. - Finally, import the application projects that are part of this repository and you are good to go!
You should now be able to flash the FPGA with the generated bitstream and run the program on it.
- Whenever you have made changes to the Vivado project itself, you should make sure the
build.tcl
script reflects them. - Whenever you have made changes to the pynq_z1_gpu block design, it should be re-exported as
pynq_x1_gpu.tcl
tovivado/src/bd/
.
Unless you have added or changed hardware definitions or bsp designs, no action should be required. Other users should make sure these stay up-to-date by exporting the designs from Vivado.