• 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 14015
  • 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
Parents
  • 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
Reply
  • 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
Children
No Data

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