mirror of https://github.com/openXC7/prjxray.git
utils.tcl: add get_tile_types function
Signed-off-by: Karol Gugala <kgugala@antmicro.com>
This commit is contained in:
parent
bb85f572c4
commit
64b39ffa29
|
|
@ -96,6 +96,19 @@ proc pblock_tiles {pblock} {
|
|||
return [get_tiles "$clb_tiles $int_tiles"]
|
||||
}
|
||||
|
||||
# returns list of unique tile types
|
||||
proc get_tile_types {} {
|
||||
set all_tiles [get_tiles]
|
||||
set types {}
|
||||
foreach tile $all_tiles {
|
||||
set type [get_property TYPE $tile]
|
||||
#ignore empty tiles
|
||||
if {$type == "NULL"} { continue }
|
||||
if {[lsearch -exact $types $type] == -1} {lappend types $type}
|
||||
}
|
||||
return $types
|
||||
}
|
||||
|
||||
proc lintersect {lst1 lst2} {
|
||||
set rlst {}
|
||||
foreach el $lst1 {
|
||||
|
|
|
|||
Loading…
Reference in New Issue