create_project -force -part $::env(XRAY_PART) design design
set_property design_mode PinPlanning [current_fileset]
open_io_design -name io_1

set fp [open $::env(XRAY_PART)_package_pins.csv w]
puts $fp "pin,site,tile"
foreach pin [get_package_pins] {
    set site [get_sites -quiet -of_object $pin]
    if { $site == "" } {
        continue
    }

    set tile [get_tiles -of_object $site]

    puts $fp "$pin,$site,$tile"
}

create_project -force -part $::env(XRAY_PART) design design
set_property design_mode PinPlanning [current_fileset]
open_io_design -name io_1

set fp [open $::env(XRAY_PART)_package_pins.csv w]
puts $fp "pin,site,tile,pin_function"
foreach pin [get_package_pins] {
    set site [get_sites -quiet -of_object $pin]
    if { $site == "" } {
        continue
    }

    set tile [get_tiles -of_object $site]
    set pin_function [get_property PIN_FUNC [get_package_pins E18]]

    puts $fp "$pin,$site,$tile,$pin_function"
}

Add pin functions column to package pins output.
Add pin functions column to package pins output.

This is required to know which pin is a PUDC pin, which requires special
handling.

Signed-off-by: Keith Rothman <1bc19627a439baf17510dc2d0b2d250c96d445a5@users.noreply.github.com>
