set j_f_name "violation.list"
# set j_f [open $j_f_name r ]
# while { [gets $j_f line ] != -1 } {
# change_selection [get_cells $line ]
set j_driver_x [lindex [lindex [get_attr [get_selection ] bbox ] 0 ] 0 ]
set j_driver_y [lindex [lindex [get_attr [get_selection ] bbox ] 0 ] 1 ]
puts "# j_driver_x : $j_driver_x"
puts "# j_driver_y : $j_driver_y"
set j_msg "\n\n\nadd_buffer -inverter_pair -new_cell_names AUTOFIXCLKC1201 { "
set j_other ""
foreach_in_collection j_obj [get_flat_pins -filter "direction == in" -of [get_nets -of [get_pins -filter "name == Y" -of [get_selection ] ] ] ] {
set j_x [lindex [lindex [get_attr $j_obj bbox ] 0 ] 0 ]
set j_y [lindex [lindex [get_attr $j_obj bbox ] 0 ] 1 ]
# if { $j_y > $j_driver_y }
if { $j_x < 6682.5 } {
append j_msg " [get_object_name $j_obj] "
} else {
append j_other " [get_object_name $j_obj] "
}
}
append j_msg "} INV_X8N_A9PP84TL_C14\n\n\n"
puts $j_msg
puts "\n\n\n### The other is \n\n\n"
puts "add_buffer -inverter_pair -new_cell_names AUTOFIXCLKC1201 \{ $j_other \} INV_X8N_A9PP84TL_C14\n\n\n"
# }
# close $j_f
|