• 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. Implementing flow control in rodCreatePath function

Stats

  • Locked Locked
  • Replies 12
  • Subscribers 145
  • Views 20175
  • 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

Implementing flow control in rodCreatePath function

infy
infy over 16 years ago

Hi,

Can we Implement flow control structures like if,while in rodCreatepath function to control the number of offset subpaths.

Regards,

Roy

  • Cancel
Parents
  • infy
    infy over 16 years ago

     hi,

    I am trying to implementing a bus structure with number of offset subpaths controlled by "number" variable in for loop .The program is as

    follows:

    procedure( bus(cv layer)
    (let (tfId layerWidth layerSpace number)
    tfId = techGetTechFile(cv)
    layerWidth = techGetSpacingRule(tfId "minWidth" layer)
    layerSpace = techGetSpacingRule(tfId "minSpacing" layer)
    rodCreatePath(
    ?name "bus"
    ?layer layer
    ?pts list(20:-20 40:-20 40:-30 80:-30)
    ?width layerWidth
    ?justification "center"
    ?cvId cv
    ?offsetSubPath

    list(

    for( i 0  (i<number)

    list(
    ?layer layer
    ?justification "left"
    ?sep (layerSpace * (i+1)) + (layerWidth * i)
    ) ;end subpath

    );for

    ) ;end list of lists
    ) ;end rodCreatePath
    ) ; end of let
    ) ; end of procedure

     when trying to execute the program, the following error is being reported.

    *ERROR* for: Final value must be integer - nil.

    so , please can you help me point the mistake in the code .

    Thanks & Regards,

    Infy

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • infy
    infy over 16 years ago

     hi,

    I am trying to implementing a bus structure with number of offset subpaths controlled by "number" variable in for loop .The program is as

    follows:

    procedure( bus(cv layer)
    (let (tfId layerWidth layerSpace number)
    tfId = techGetTechFile(cv)
    layerWidth = techGetSpacingRule(tfId "minWidth" layer)
    layerSpace = techGetSpacingRule(tfId "minSpacing" layer)
    rodCreatePath(
    ?name "bus"
    ?layer layer
    ?pts list(20:-20 40:-20 40:-30 80:-30)
    ?width layerWidth
    ?justification "center"
    ?cvId cv
    ?offsetSubPath

    list(

    for( i 0  (i<number)

    list(
    ?layer layer
    ?justification "left"
    ?sep (layerSpace * (i+1)) + (layerWidth * i)
    ) ;end subpath

    );for

    ) ;end list of lists
    ) ;end rodCreatePath
    ) ; end of let
    ) ; end of procedure

     when trying to execute the program, the following error is being reported.

    *ERROR* for: Final value must be integer - nil.

    so , please can you help me point the mistake in the code .

    Thanks & Regards,

    Infy

    • 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