Created
August 13, 2021 19:51
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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