Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Computer Aided Design - CAD > Cadence > How to modify t...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 5 Topic 3911 of 4209
Post > Topic >>

How to modify the width of all pmos and nmos cell to their double in

by Riad KACED <riad.kaced@[EMAIL PROTECTED] > Mar 6, 2008 at 04:30 AM

Hi Folks,

This is an answer for the post
http://groups.google.com/group/comp.cad.cadence/browse_thread/thread/2b7afa0b2a4fc88b/
I though it better to take it out from the above post into a new one
so it makes it easy for the community to search/browse.
-----------------------------------------------------------------------
Q: I want to modify the width of all pmos and nmos cell to their
double in the opened schematic. How could it be done ?


R:I would advice the following for this task :
Given the following knowns:
libName (ex "myLib"), cellName (ex "myCell"), deviceName (ex "NMOS"),
propName (ex "w"), one can :

1. Open the schematic view in append mode:
cvId = dbOpenCellViewByType(libName cellName "schematic" nil "a")

2. Get the list of instances/devices in your schematic :
instsInCv=cvId~>memInsts

3. Process your design
; Loop all the instances and grab only those you are interested on
; i.e "NMOS"
foreach( instance setof(x instsInCv car(x)~>cellName==deviceName)
  ; Loop all the properties and grab only those you are interested on
  ; i.e "w"
   propdb=setof( x car(instance)~>prop x~>name == propName)
   ; If you succeed ...
   if(propdb then
      ; Get the property's old value
      propOldValue=car(propdb~>value)
      ; Compute the property's New value
      propNewValue=2*propOldValue
      ; Set the property's New value
      car(propdb)~>value = propNewValue
   );if
);end foreach

This is a piece of code you can include in a procedure. You can add on
top of it some foreach loops if you want to process multi values/
properties/devices/cells/libs ...

Please give a look to skill cadence manual for more information about
the functions used above :
youCadenceInstallDir/doc/sklangref/sklangref.pdf
youCadenceInstallDir/doc/sklanguser/sklanguser.pdf

Enjoy yourself ;-)

Riad.
 




 5 Posts in Topic:
How to modify the width of all pmos and nmos cell to their doubl
Riad KACED <riad.kaced  2008-03-06 04:30:32 
Re: How to modify the width of all pmos and nmos cell to their d
DReynolds <spurwinktec  2008-03-06 06:05:38 
Re: How to modify the width of all pmos and nmos cell to their d
Andrew Beckett <andrew  2008-03-06 14:40:57 
Re: How to modify the width of all pmos and nmos cell to their d
Riad KACED <riad.kaced  2008-03-06 09:37:58 
Re: How to modify the width of all pmos and nmos cell to their d
chankamhung@[EMAIL PROTEC  2008-03-09 18:13:10 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Sep 6 16:03:44 CDT 2008.