Home > Community > Forums > Custom IC SKILL > A question about cdfUpdateInstParam() ?

Email

* Required Fields

Recipients email * (separate multiple addresses with commas)

Your name *

Your email *

Message *

Contact Us

* Required Fields
First Name *

Last Name *

Email *

Company / Institution *

Comments: *

 A question about cdfUpdateInstParam() ? 

Last post Wed, Jul 15 2009 4:40 AM by IC Layout. 4 replies.
Started by IC Layout 09 Jul 2009 06:38 AM. Topic has 4 replies and 1273 views
Page 1 of 1 (5 items)
Sort Posts:
  • Thu, Jul 9 2009 6:38 AM

    • IC Layout
    • Top 150 Contributor
    • Joined on Sat, Mar 7 2009
    • Hyderabad, Andhra Pradesh
    • Posts 53
    • Points 1,155
    A question about cdfUpdateInstParam() ? Reply

     Hi! all,

               I am trying to instantiate transistors from schematic to layout. Initially I wrote this code(not hierarchical code).

      procedure(new_gen()
    cv = geGetEditCellView() ;where cv is the 'schematic cell view

    let( ( i )

    i = 0
    foreach(inst cv~>instances
      if(inst~>libName == "gpdk090" then
          case(inst~>cellName
          (("pmos1v" "nmos1v" "pmos2v" "nmos2v")
              mos = dbOpenCellViewByType(inst~>libName inst~>cellName "layout")
              if(inst~>m == "1" then
              lay = dbCreateInst(target mos inst~>name i:0 "R0") ;where target is the layout window
              dbCopyProp(inst lay)
              cdfUpdateInstParam(lay)
              ;println(inst~>m)
              else
              if(inst~>m != "1" then
              for(r 1 atoi(inst~>m)
              name = strcat(inst~>name "." artMakeString(r))
              lay = dbCreateInst(target mos name i:0 "R0")
              dbCopyProp(inst lay)
              cdfUpdateInstParam(lay)
              lay~>m = 1
              ;println("lap2")
              i = caadr(lay~>bBox) + 3
              )
              )
              )
              i = caadr(lay~>bBox) + 3
              )
          (t
              println(inst~>cellName)
          )
          );case
      )
      );foreach

    );let
    );proc
    new_gen()

     

    Now the problem is I am getting the transistors (pmos&nmos) which are having  same properties.(Also thse properties reffered to the transistor which is encountering at first time in 'cv~>instances list' )

    Can someone correct this code for me, please.....

    Thanks in advance...

    Prabhakar. K -- Layout Engineer 

    • Post Points: 20
  • Mon, Jul 13 2009 12:28 AM

    • mims
    • Not Ranked
    • Joined on Mon, Jul 21 2008
    • sofia, Bulgaria
    • Posts 11
    • Points 220
    Re: A question about cdfUpdateInstParam() ? Reply

     Hello,

    I am not sure that I understood your question, but my experience with cdfUpdateInstParam is that it the instance cdf parameters will change after using it. It will refresh the layout, but the values will be set to the previously used I think...  If you want to have specific values for some parameters you need to set them yourself after the cdfUpdateInstParam has been called.

    • Post Points: 20
  • Mon, Jul 13 2009 10:37 PM

    • IC Layout
    • Top 150 Contributor
    • Joined on Sat, Mar 7 2009
    • Hyderabad, Andhra Pradesh
    • Posts 53
    • Points 1,155
    Re: A question about cdfUpdateInstParam() ? Reply

     Hello! Mr. Mims, Thanks for your kind response....

    First of all I would like to say sorry....Because I got the solution after submitting the query.

    I am really very sorry.. If I have wasted your time...

              dbCopyProp(inst lay)
              cdfUpdateInstParam(lay)

    Instead of these two lines I have used this ...

               cdfSyncInstParamValue(inst lay)

    And this is what I am looking for.....

    Sorry.. Once again...

    Thanks & Regards

    Prabhakar. K  -- Layout Enginner

    • Post Points: 20
  • Wed, Jul 15 2009 12:14 AM

    • mims
    • Not Ranked
    • Joined on Mon, Jul 21 2008
    • sofia, Bulgaria
    • Posts 11
    • Points 220
    Re: A question about cdfUpdateInstParam() ? Reply

     Please, no problem

     

    And I will try the  cdfSyncInstParamValue function if I need to copy instances...

     

    Regards,

     mims

     

    • Post Points: 20
  • Wed, Jul 15 2009 4:40 AM

    • IC Layout
    • Top 150 Contributor
    • Joined on Sat, Mar 7 2009
    • Hyderabad, Andhra Pradesh
    • Posts 53
    • Points 1,155
    Re: A question about cdfUpdateInstParam() ? Reply

     Please, let me know your problem some more clearly...

    Do you want to copy an instance which is already created in the layout ...? 

    Or What else....

    Regards..

    Prabhakar. K -- Layout Engineer 

    • Post Points: 5
Page 1 of 1 (5 items)
Sort Posts:
Started by IC Layout at 09 Jul 2009 06:38 AM. Topic has 4 replies.