fpga: tools: Add utility to upgrade TCL-based BD

Original-commit: a99bed698576c1e0ab6c6c6aae68d5da75e6bd75
This commit is contained in:
Sam O'Brien
2022-08-25 13:55:30 -05:00
committed by skooNI
parent 81bb2ae28f
commit 187c81719b
3 changed files with 53 additions and 4 deletions
+5
View File
@@ -120,6 +120,11 @@ if { [string compare $cmd "create"] == 0 } {
# Open project and BD design
open_project "$tmp_bddir/tmp_bd.xpr"
open_bd_design [get_files "$src_rootname.bd"]
if [expr $argc > 3 && [string equal [lindex $argv 3] "upgrade"]] {
puts "INFO: Upgrading IP"
upgrade_ip [get_ips *]
validate_bd_design
}
# Rewrite TCL BD file
write_bd_tcl -make_local -force "$src_dir/$src_rootname.tcl"
puts "INFO: BD TCL source updated: $src_dir/$src_rootname.tcl"