• 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 Design
  3. Using Inherited Parameters in PCells

Stats

  • Locked Locked
  • Replies 4
  • Subscribers 129
  • Views 16354
  • 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

Using Inherited Parameters in PCells

msharma
msharma over 13 years ago

 Friends,

 I am creating a custom pcell, through the graphical layout method. The custom pcell layout contains an instance of a pdk pcell. I have inherited a parameter 'width' among others from the pdk pcell to my custom pcell. In my custom pcell, I need to repeat contacts based on the value of width. But, it is not possible to use parameter 'width' in repetition expressions. The software gets confused, and assigns 'width' as a new parameter.

 

Do you know how to reference the inherited 'width' parameter in my custom pcell, without confusing the software? Any responses are appreciated.

 

Thanks,

Mohit

  • Cancel
Parents
  • Andrew Beckett
    Andrew Beckett over 13 years ago

    Mohit,

    From looking at your pictures, it's failing because when the instantiation of the child pcell is happening, it is expecting a string, not a float - although the error message appears to say that it's expecting 2e-12 (not sure why that is). I see that the length is being passed as a string - so I'd have expected the width to be the same type. 

    So my guess (without seeing the actual data) is that you should change the type of width to be a string, and then make your stepping distance in the repetitions equal to cdfParseFloatString(width)/2 .

    If this doesn't help - I'd suggest going via customer support - this kind of thing is much easier if we can see the actual data. As a colleague of mine used to say - "a picture is worth a thousand words, but a database is worth a million"

    Regards,

    Andrew. 

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • Andrew Beckett
    Andrew Beckett over 13 years ago

    Mohit,

    From looking at your pictures, it's failing because when the instantiation of the child pcell is happening, it is expecting a string, not a float - although the error message appears to say that it's expecting 2e-12 (not sure why that is). I see that the length is being passed as a string - so I'd have expected the width to be the same type. 

    So my guess (without seeing the actual data) is that you should change the type of width to be a string, and then make your stepping distance in the repetitions equal to cdfParseFloatString(width)/2 .

    If this doesn't help - I'd suggest going via customer support - this kind of thing is much easier if we can see the actual data. As a colleague of mine used to say - "a picture is worth a thousand words, but a database is worth a million"

    Regards,

    Andrew. 

    • 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