TCL script to find Instance With A Specific Property Value
TCL script to find Instance With A Specific Property Value
by Tanner_AE » Thu Jun 07, 2012 8:20 pm
# Find instances that have property N = 1
proc FindInstance {} {
mode renderoff
set ins_list {}
find none
foreach ins_name [database instances] {
find instance -name $ins_name
set x [property get -system MasterCell]
if {[string compare $x "nmosfet4"] == 0} {
if {[property get -name N] == 1} {
lappend ins_list $ins_name
}
}
}
mode renderon
find instance -name $ins_list
}
FindInstance
proc FindInstance {} {
mode renderoff
set ins_list {}
find none
foreach ins_name [database instances] {
find instance -name $ins_name
set x [property get -system MasterCell]
if {[string compare $x "nmosfet4"] == 0} {
if {[property get -name N] == 1} {
lappend ins_list $ins_name
}
}
}
mode renderon
find instance -name $ins_list
}
FindInstance
Re: TCL script to find Instance With A Specific Property Val
by Dean » Fri Apr 26, 2013 7:39 pm
Hi,could you tell me how to use this script ? thanks a lot !
Re: TCL script to find Instance With A Specific Property Val
by tu2011 » Tue Apr 30, 2013 3:11 am
Hi Dean,
Copy everything from the word, proc, down to the last curly brace ("}"), and paste it into a text file. Save it with an extension .tcl. Then you can drag and drop that file into the Command Line Window that is normally docked at the bottom of your application screen to load the file into the tools. To initiate the command, type "FindInstance" without quotes in the Command Line Window.
Let me know if you are not able to get it to work.
Copy everything from the word, proc, down to the last curly brace ("}"), and paste it into a text file. Save it with an extension .tcl. Then you can drag and drop that file into the Command Line Window that is normally docked at the bottom of your application screen to load the file into the tools. To initiate the command, type "FindInstance" without quotes in the Command Line Window.
Let me know if you are not able to get it to work.
3 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 2 guests
- Board index
- The team • Delete all board cookies • Delete style cookies • All times are UTC - 8 hours [ DST ]