Browse Source

Fix #2 by adding support to bd files

pull/5/head
Ricardo Barbedo 6 years ago
parent
commit
9de957f0c1
2 changed files with 7 additions and 2 deletions
  1. +5
    -0
      README.md
  2. +2
    -2
      scripts/git_wrapper.tcl

+ 5
- 0
README.md View File

@ -49,6 +49,11 @@ Vivado is a pain in the ass to source control decently, so these scripts provide
│ ├── testbench │ ├── testbench
│ │ ├── *.v │ │ ├── *.v
│ │ └── *.vhd │ │ └── *.vhd
│ ├── blockdesign
│ │ ├── ui
│ │ ├── ip
│ │ ├── *.bd
│ │ └── ...
│ └── ... │ └── ...
└── vivado_project/ # Untracked generated files └── vivado_project/ # Untracked generated files
├── project_name.xpr ├── project_name.xpr


+ 2
- 2
scripts/git_wrapper.tcl View File

@ -53,7 +53,7 @@ namespace eval ::git_wrapper {
set proj_file [current_project].tcl set proj_file [current_project].tcl
# Generate project and add it # Generate project and add it
write_project_tcl_git -no_copy_sources -force $proj_file
write_project_tcl_git -no_copy_sources -use_bd_files -force $proj_file
puts $proj_file puts $proj_file
exec git add $proj_file exec git add $proj_file
@ -76,6 +76,6 @@ namespace eval ::git_wrapper {
# Generate project # Generate project
set proj_file [current_project].tcl set proj_file [current_project].tcl
puts $proj_file puts $proj_file
write_project_tcl_git -no_copy_sources -force $proj_file
write_project_tcl_git -no_copy_sources -use_bd_files -force $proj_file
} }
} }

Loading…
Cancel
Save