Skip to content

Commit 871c924

Browse files
author
Konstantin Pavlov
committed
Added exporting script for Vivado
1 parent 0cb8ee9 commit 871c924

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

scripts/export_autoplaced_pins.tcl

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#------------------------------------------------------------------------------
2+
# export_autoplaced_pins.tcl
3+
# Konstantin Pavlov, pavlovconst@gmail.com
4+
#------------------------------------------------------------------------------
5+
6+
# INFO ------------------------------------------------------------------------
7+
# Use this script for Xilinx Vivado environment to export automaticaly
8+
# placed pins after succesful implementation
9+
#
10+
# Source this script from the TCL Console, after opening implemented design
11+
12+
set f [open export.xdc a]
13+
14+
set my_ports [get_ports]
15+
foreach port_i $my_ports {
16+
puts $f "set_property PACKAGE_PIN [get_property PACKAGE_PIN $port_i] \[get_ports $port_i \] "
17+
}
18+
19+
foreach port_i $my_ports {
20+
puts $f "set_property IOSTANDARD [get_property IOSTANDARD $port_i] \[get_ports $port_i \] "
21+
}
22+
23+
close $f

0 commit comments

Comments
 (0)