• 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. Creating multiple mpp's using a for loop

Stats

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

Creating multiple mpp's using a for loop

RVERP
RVERP over 13 years ago

Hello, I want to create multipart paths using a for loop.  For example, via paths between multiple metals.

Below is my code, but it doesn't work.  Any idea why?

  for( i 1 3
    sprintf(a "M%d" i)
    sprintf(b "M%d" i+1)
    sprintf(c "V%d" i)
    leDefineMPPTemplate(
        ?techId     tech
        ?name     concat(a "__" b)
        ?layer     list(a "drawing")
        ?width     0.380000
        ?choppable     nil
        ?endType     "flush"
        ?beginExt     0.000000
        ?endExt     0.000000
        ?justification     "center"
        ?offset     0.000000
        ?offsetSubPath     list(
         list(
            ?layer     list(b "drawing")
            ?width     0.380000
            ?choppable    t
            ?sep     0.000000
            ?justification     "center"
            ?beginOffset     0.0000
            ?endOffset     0.0000
            )
        )
        ?subRect     list(
        list(
            ?layer     list(c "drawing")
            ?width     0.260000
            ?length     0.260000
            ?choppable     t
            ?sep     0.000000
            ?justification     "center"
            ?space     0.260000
            ?beginOffset     -0.060000
            ?endOffset     -0.060000
            ?beginSegOffset     0.000000
            ?endSegOffset     0.000000
            ?gap     "distribute"
            )
        )

  • Cancel
  • Andrew Beckett
    Andrew Beckett over 13 years ago

    First of all, this wouldn't create MPPs, but MPP Templates in the tech file - I assume you realised and meant that.

    Other than the missing close parentheses, the problem is in the line:

            ?name     concat(a "__" b)

    which should be:

            ?name     strcat(a "__" b)

    It should be a string, not a symbol (concat produces a symbol). If I do this, the templates get created, and I can then see them when I do Create->Multipart Path.

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • RVERP
    RVERP over 13 years ago

     that's it, does exactly what I want now.

     Thanks

    • 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