It is currently Tue Sep 02, 2014 3:37 am

TCL script to Modify instance name to default format.

TCL script to Modify instance name to default format.

Postby Tanner_AE_SB » Thu Jun 07, 2012 7: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
Tanner_AE_SB
 
Posts: 32
Joined: Thu Jun 07, 2012 2:37 pm

Return to UPI and TCL scripts

Who is online

Users browsing this forum: No registered users and 1 guest


Who is online

In total there is 1 user online :: 0 registered, 0 hidden and 1 guest (based on users active over the past 5 minutes)
Most users ever online was 35 on Thu Jan 09, 2014 2:15 am

Users browsing this forum: No registered users and 1 guest

Login Form