074-dump_all: exclude tiles and node that are in the excluded roi

Signed-off-by: Alessandro Comodi <acomodi@antmicro.com>
This commit is contained in:
Alessandro Comodi 2020-01-17 12:17:03 +01:00
parent cb9944d392
commit e464172e03
2 changed files with 31 additions and 1 deletions

View File

@ -13,10 +13,24 @@ set root_fp [open "root_node_${blocknb}.csv" w]
set nodes [get_nodes]
for {set j $start } { $j < $stop } { incr j } {
create_pblock exclude_roi
foreach roi "$::env(XRAY_EXCLUDE_ROI_TILEGRID)" {
puts "ROI: $roi"
resize_pblock [get_pblocks exclude_roi] -add "$roi"
}
set not_allowed_sites [get_sites -of_objects [get_pblocks exclude_roi]]
set not_allowed_nodes [get_nodes -of_objects [get_tiles -of_objects $not_allowed_sites]]
for {set j $start } { $j < $stop } { incr j } {
set node [lindex $nodes $j]
# If node is not allowed, skip it
set res [lsearch $not_allowed_nodes $node]
if { $res != -1 } {
continue
}
file mkdir [file dirname "${node}"]
set fname $node.json5
puts $root_fp "node,,$fname"

View File

@ -13,6 +13,16 @@ set root_fp [open "root_${blocknb}.csv" w]
#puts $root_fp "filetype,subtype,filename"
set tiles [get_tiles]
create_pblock exclude_roi
foreach roi "$::env(XRAY_EXCLUDE_ROI_TILEGRID)" {
puts "ROI: $roi"
resize_pblock [get_pblocks exclude_roi] -add "$roi"
}
set not_allowed_sites [get_sites -of_objects [get_pblocks exclude_roi]]
set not_allowed_tiles [get_tiles -of_objects $not_allowed_sites]
# Convert DRIVE from ??? units to 10^(-3 to -6) Ohms
set MAGIC 0.6875
@ -42,6 +52,12 @@ for {set j $start } { $j < $stop } { incr j } {
set tile [lindex $tiles $j]
# If tile is not allowed, skip it
set res [lsearch $not_allowed_tiles $tile]
if { $res != -1 } {
continue
}
set fname tile_$tile.json5
set tile_type [get_property TYPE $tile]
puts $root_fp "tile,$tile_type,$fname"