You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
1.2 KiB

8 years ago
  1. # vivado-git
  2. Trying to make Vivado more git-friendly on Windows.
  3. ### Requirements
  4. [Git for Windows.](https://git-scm.com/download/win)
  5. ### Installation
  6. Append/replace/add `init.tcl` and the `scripts` directory to `%APPDATA%\Roaming\Xilinx\Vivado`.
  7. ### How it works
  8. Vivado is a pain in the ass to source control decently, so these scripts provide:
  9. - A modified `write_project_tcl_git` script to generate a project generator script without absolute paths.
  10. - A git wrapper that will regenerate the project script and add it before commiting.
  11. ### Workflow
  12. When first starting with a project, create it at a folder like `C:/.../PROJECT_NAME/work`. All the untracked files will be under this directory.
  13. Place your source files anywhere you want in your project folder.
  14. Then go to your project directory using the Tcl Console with `cd C:/.../PROJECT_NAME` before adding or committing you files.
  15. When you are done, just add your files and `git commit` your project. A `PROJECT_NAME.tcl` script will be created in your `PROJECT_NAME` folder and added to your commit.
  16. When reopening the project, make sure to do it by using `Tools -> Run Tcl Script...`. The Tcl Console will change the directory to your project folder automatically.