• Skip to main content
  • Skip to search
  • Skip to footer
Cadence Home
  • This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  1. Community Forums
  2. Custom IC SKILL
  3. A question about cdfUpdateInstParam() ?

Stats

  • Locked Locked
  • Replies 4
  • Subscribers 144
  • Views 13988
  • Members are here 0
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

A question about cdfUpdateInstParam() ?

IC Layout
IC Layout over 16 years ago

 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 

  • Cancel
  • mims
    mims over 16 years ago

     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.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • IC Layout
    IC Layout over 16 years ago

     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

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • mims
    mims over 16 years ago

     Please, no problem

     

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

     

    Regards,

     mims

     

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • IC Layout
    IC Layout over 16 years ago

     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 

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2025 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information