• 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. How to pass a list as string to a variable in Pcell

Stats

  • Locked Locked
  • Replies 2
  • Subscribers 143
  • Views 14257
  • 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

How to pass a list as string to a variable in Pcell

prasadtammana
prasadtammana over 5 years ago

Hi,

I've created a pcell using Pcell menu in layout window. I've instantiated another pcell inside the master pcell and assigning parameters of master pcell to child pcell using "inherited parameters" option. I've an inherited parameter as a string as shown in the image below. I'd like to assign a list of numbers starting from BOT number to TOP number (BOT and TOP are another 2 variables). If BOT is 1 and TOP is 4, I want to assign "1,2,3,4".  

 

I tried following command, but it fails as its not accepting printf inside that. 

printf("\" ") for(i BOT_MET TOP_MET-1 printf("%d ," i) i=i+1 ) printf("%d \"" TOP_MET)

Could someone help me on how to print a list of numbers as string.

Thanks,

Prasad

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

    Prasad,

    It's not 100% clear what you want, but if you're trying to build an expression that returns a new string something like that, then this would do it:

    let((lst) for(i BOT_MET TOP_MET lst=cons(sprintf(nil "%d" i) lst)) buildString(reverse(lst) ","))

    Andrew

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • prasadtammana
    prasadtammana over 5 years ago in reply to Andrew Beckett

    Thanks for your reply Andrew. The command that you provided works fine in skill language but if I want to include that in that as inherited parameter in pcell GUI, its not accepting the BuildString command. 

    Basically I want to build a string with numbers that Inherited Parameters in Pcell accepts. 

    Thanks,

    Prasad

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • prasadtammana
    prasadtammana over 5 years ago in reply to Andrew Beckett

    Thanks for your reply Andrew. The command that you provided works fine in skill language but if I want to include that in that as inherited parameter in pcell GUI, its not accepting the BuildString command. 

    Basically I want to build a string with numbers that Inherited Parameters in Pcell accepts. 

    Thanks,

    Prasad

    • 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