TCL script to Modify instance name to default format.
TCL script to Modify instance name to default format.
by Tanner_AE » Thu Jun 07, 2012 8:24 pm
#Modify instance name to default format. Counter starting from 30
set designs [ database designs ]
mode renderoff
# set ins_list {}
find none
foreach design $designs {
property set Protection.AllowEditing -system -host design -design $design -value true
# # Going through each design
# #puts "********************************"
# #puts "Design=$design"
set cells [ database cells -design $design]
# # Going through each cell
foreach cell $cells {
# puts "Cell=$cell"
set views [ database views -design $design -cell $cell -type schematic]
# # Going through each view
foreach view $views {
set count 1
# puts "View=$view"
cell open -design $design -cell $cell -view $view -type schematic
# # Going through each instance
foreach ins_name [database instances -design $design -cell $cell -view $view -type schematic] {
# puts $ins_name
set nFound [find instance -design $design -cell $cell -view $view -type schematic -count]
# puts $nFound
# Make sure that something is selected.
if { $nFound > 0 } {
set x [property get -system MasterCell -host instance $ins_name]
incr count 1
append x "_" $count
puts $x
property set -system Name -value $x -host instance $ins_name
# #puts $x
}
}
}
}
}
mode renderon
set designs [ database designs ]
mode renderoff
# set ins_list {}
find none
foreach design $designs {
property set Protection.AllowEditing -system -host design -design $design -value true
# # Going through each design
# #puts "********************************"
# #puts "Design=$design"
set cells [ database cells -design $design]
# # Going through each cell
foreach cell $cells {
# puts "Cell=$cell"
set views [ database views -design $design -cell $cell -type schematic]
# # Going through each view
foreach view $views {
set count 1
# puts "View=$view"
cell open -design $design -cell $cell -view $view -type schematic
# # Going through each instance
foreach ins_name [database instances -design $design -cell $cell -view $view -type schematic] {
# puts $ins_name
set nFound [find instance -design $design -cell $cell -view $view -type schematic -count]
# puts $nFound
# Make sure that something is selected.
if { $nFound > 0 } {
set x [property get -system MasterCell -host instance $ins_name]
incr count 1
append x "_" $count
puts $x
property set -system Name -value $x -host instance $ins_name
# #puts $x
}
}
}
}
}
mode renderon
1 post
• Page 1 of 1
Who is online
Users browsing this forum: Google [Bot] and 0 guests
- Board index
- The team • Delete all board cookies • Delete style cookies • All times are UTC - 8 hours [ DST ]