cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
FPGADude99
Visitor
Visitor
522 Views
Registered: ‎04-29-2020

export package pin from vivado project to create a new XDC file

Let's say I have a vivado project that I need to extract the XDC file from to use on another vivado project.  However, this vivado project has a complicated tcl script to setup the PIN_PACKAGE and IO_STD for the device.

Is there a way to export a new XDC file from this vivado project after elaborating the design, that represents how the TCL script has setup the IOs of the FPGA?

 

Basically, what I want is to export everything under:

   Open Elborated Design, Layout Menu->I/O planning, click Package Pins tab

and to put this list into a new XDC file automatically, then to take this XDC file and load it into a different vivado project for the same FPGA board.

 

Tags (1)
0 Kudos
1 Reply
hongh
Moderator
Moderator
505 Views
Registered: ‎11-04-2010

Please try the below commands:

set f [open package_pin1.xdc a]

set my_ports [get_ports]
foreach port_i $my_ports {
puts $f "set_property PACKAGE_PIN [get_property PACKAGE_PIN $port_i] \[get_ports $port_i \] "
puts $f "set_property IOSTANDARD [get_property IOSTANDARD $port_i] \[get_ports $port_i \] "
}

close $f

-------------------------------------------------------------------------
Don't forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------