mirror of https://github.com/openXC7/prjxray.git
Merge pull request #1175 from antmicro/zynq_ps7_ppips
Dumping PPIPs for Zynq PS7
This commit is contained in:
commit
0d0a38cf52
|
|
@ -119,6 +119,26 @@ proc write_ioi_ppips_db {filename tile} {
|
||||||
close $fp
|
close $fp
|
||||||
}
|
}
|
||||||
|
|
||||||
|
proc write_pss_ppips_db {filename tile} {
|
||||||
|
if {[llength $tile] != 0} {
|
||||||
|
set fp [open $filename "w"]
|
||||||
|
set tile [get_tiles $tile]
|
||||||
|
set tile_type [get_property TILE_TYPE $tile]
|
||||||
|
|
||||||
|
# Skip bi-directional PIPs as they represent hard-wired PS7 connections
|
||||||
|
# and are not routable.
|
||||||
|
foreach pip [get_pips -of_objects $tile -filter "IS_DIRECTIONAL == 1"] {
|
||||||
|
set dst_wire [get_wires -downhill -of_objects $pip]
|
||||||
|
if {[get_pips -uphill -of_objects [get_nodes -of_objects $dst_wire]] == $pip} {
|
||||||
|
set src_wire [get_wires -uphill -of_objects $pip]
|
||||||
|
puts $fp "${tile_type}.[regsub {.*/} $dst_wire ""].[regsub {.*/} $src_wire ""] always"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
close $fp
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
foreach tile_type {CLBLM_L CLBLM_R CLBLL_L CLBLL_R} {
|
foreach tile_type {CLBLM_L CLBLM_R CLBLL_L CLBLL_R} {
|
||||||
set tiles [get_tiles -filter "TILE_TYPE == $tile_type"]
|
set tiles [get_tiles -filter "TILE_TYPE == $tile_type"]
|
||||||
if {[llength $tiles] != 0} {
|
if {[llength $tiles] != 0} {
|
||||||
|
|
@ -167,3 +187,11 @@ foreach tile_type {BRAM_L BRAM_R} {
|
||||||
write_bram_ppips_db "ppips_[string tolower $tile_type].db" $tile
|
write_bram_ppips_db "ppips_[string tolower $tile_type].db" $tile
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
foreach tile_type {PSS0 PSS1 PSS2 PSS3 PSS4 INT_INTERFACE_PSS_L} {
|
||||||
|
set tiles [get_tiles -filter "TILE_TYPE == $tile_type"]
|
||||||
|
if {[llength $tiles] != 0} {
|
||||||
|
set tile [lindex $tiles 0]
|
||||||
|
write_pss_ppips_db "ppips_[string tolower $tile_type].db" $tile
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue