Skip to content

Instantly share code, notes, and snippets.

@jancumps
Created August 13, 2021 19:51
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jancumps/529bbfc116f765626e7b4cb34597a4ae to your computer and use it in GitHub Desktop.
Save jancumps/529bbfc116f765626e7b4cb34597a4ae to your computer and use it in GitHub Desktop.
collect and name the .hwh and .bit file from a Vivado project for deploy on Pynq. Execute from IDE or Tcl Shell with the project open.
set project_path [get_property directory [current_project]]
set project_file [file rootname $project_path]
set __project [current_project]
set hw_dir [file dirname [get_files *.hwh]]
set hwhandoff [glob [file join $hw_dir *.hwh]]
set bitstream [glob [file join $project_path $__project.runs impl_1 *.bit]]
#gather in the .prj directory
file copy -force $hwhandoff $project_file.hwh
file copy -force $bitstream $project_file.bit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment