It is currently Mon Sep 01, 2014 5:49 pm

TCL script to find Instance With A Specific Property Value

TCL script to find Instance With A Specific Property Value

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

Re: TCL script to find Instance With A Specific Property Val

Postby Dean » Fri Apr 26, 2013 6:39 pm

Hi,could you tell me how to use this script ? thanks a lot !
Dean
 

Re: TCL script to find Instance With A Specific Property Val

Postby tu2011 » Tue Apr 30, 2013 2: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.
tu2011
 


Return to UPI and TCL scripts

Who is online

Users browsing this forum: No registered users and 1 guest

cron

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