Add write_io_banks.tcl for listing IO banks.

Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com>
This commit is contained in:
Keith Rothman 2019-07-24 08:37:31 -07:00
parent e217fbb7c7
commit 82df57c816
2 changed files with 9 additions and 1 deletions

View File

@ -6,7 +6,7 @@ database: build/segbits_xiob33.db
build/iobanks.txt: write_io_banks.tcl
mkdir -p build
cd build/ && ${XRAY_VIVADO} -mode batch -source ${FUZDIR}/write_io_banks.tcl
cd build/ && ${XRAY_VIVADO} -mode batch -source ../write_io_banks.tcl
build/segbits_xiob33.rdb: $(SPECIMENS_OK)
${XRAY_SEGMATCH} -c 12 -o build/segbits_xiob33.rdb $$(find -name segdata_liob33.txt) $$(find -name segdata_riob33.txt)

View File

@ -0,0 +1,8 @@
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 "iobanks.txt" "w"]
foreach iobank [get_iobanks] {
puts $fp $iobank
}
close $fp