barbedo / vivado-git

A git-friendly Vivado wrapper
Other
214 stars 38 forks source link

excisting vivado projects #4

Closed el3ctrician closed 4 years ago

el3ctrician commented 5 years ago

Hello, is there is a way to use the scripts with existing vivado projects in order to migrate them to git ? some sort of copying sources and organizing everything to create it ?

Thanks

barbedo commented 5 years ago

Hey,

I don't have a script that does exactly that, sorry.

But you can try to do something like the following:

  1. Move everything under project_name.srcs (and *.sdk or whatever you want to track) to outside of the default Vivado project tree (e.g. mv top_dir/project_name/project_name.srcs/* top_dir/srcs/)
  2. Rename the project folder to vivado_project (e.g. top_dir/project_name/project_name.* to top_dir/vivado_project/project_name.*).
  3. Open Vivado and re-add the sources to the project without copying them.
  4. Run wproj to generate the Tcl project script, copy everything minus the vivado_project folder to another folder and try to source the project script from there. This way you can check if it's correctly regenerating the project.

Tell me if you have any trouble. I may try to add a converter one day.