• 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
  • Andrew Beckett
    Andrew Beckett over 16 years ago

    Perhaps this example code will clarify things?

    Regards,

    /* abCreateBus.il
    
    Author     A.D.Beckett
    Group      Custom IC (UK), Cadence Design Systems Ltd.
    Language   SKILL
    Date       Mar 30, 1999 
    Modified   Mar 20, 2009 
    By         A.D.Beckett
    
    An example of creating a bus using ROD.
    
    The points could of course be specified by something like enterPath()
    in practice.
    
    Mar 20, 2009. Added new optional busPrefix to allow wires the be
    on named nets.
    
    ***************************************************
    
    SCCS Info: @(#) abCreateBus.il 03/20/09.12:59:54 1.2
    
    */
    
    /******************************************************************
    *                                                                 *
    *        abCreateBus(cv layer points numWires [busPrefix])        *
    *                                                                 *
    * Create a bus with given points, in the specified cellView, with *
    *                 the specified number of wires.                  *
    *                                                                 *
    ******************************************************************/
    
    procedure( abCreateBus(cv layer points numWires @optional busPrefix)
      let( (tfId layerWidth layerSpace offsetPaths)
        /* get technology file information */
        tfId = techGetTechFile(cv)
        layerWidth = techGetSpacingRule(tfId "minWidth" layer)
        layerSpace = techGetSpacingRule(tfId "minSpacing" layer)
        /* construct the list of sub paths */
        for(bit 1 numWires-1
          offsetPaths=tconc(offsetPaths
    	list(
    	  ?netName when(busPrefix sprintf(nil "%s<%d>" busPrefix bit))
    	  ?layer layer
    	  ?justification "left"
    	  ?sep layerSpace*bit + layerWidth*(bit-1)
    	  )
    	)
          )
        rodCreatePath(
    ;      ?name "bus"
          ?netName when(busPrefix sprintf(nil "%s<0>" busPrefix))
          ?layer layer
          ?pts points
          ?width layerWidth
          ?justification "center"
          ?cvId cv
          ?offsetSubPath car(offsetPaths)
          )
        ); let
      );
    

    Andrew.

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

    Perhaps this example code will clarify things?

    Regards,

    /* abCreateBus.il
    
    Author     A.D.Beckett
    Group      Custom IC (UK), Cadence Design Systems Ltd.
    Language   SKILL
    Date       Mar 30, 1999 
    Modified   Mar 20, 2009 
    By         A.D.Beckett
    
    An example of creating a bus using ROD.
    
    The points could of course be specified by something like enterPath()
    in practice.
    
    Mar 20, 2009. Added new optional busPrefix to allow wires the be
    on named nets.
    
    ***************************************************
    
    SCCS Info: @(#) abCreateBus.il 03/20/09.12:59:54 1.2
    
    */
    
    /******************************************************************
    *                                                                 *
    *        abCreateBus(cv layer points numWires [busPrefix])        *
    *                                                                 *
    * Create a bus with given points, in the specified cellView, with *
    *                 the specified number of wires.                  *
    *                                                                 *
    ******************************************************************/
    
    procedure( abCreateBus(cv layer points numWires @optional busPrefix)
      let( (tfId layerWidth layerSpace offsetPaths)
        /* get technology file information */
        tfId = techGetTechFile(cv)
        layerWidth = techGetSpacingRule(tfId "minWidth" layer)
        layerSpace = techGetSpacingRule(tfId "minSpacing" layer)
        /* construct the list of sub paths */
        for(bit 1 numWires-1
          offsetPaths=tconc(offsetPaths
    	list(
    	  ?netName when(busPrefix sprintf(nil "%s<%d>" busPrefix bit))
    	  ?layer layer
    	  ?justification "left"
    	  ?sep layerSpace*bit + layerWidth*(bit-1)
    	  )
    	)
          )
        rodCreatePath(
    ;      ?name "bus"
          ?netName when(busPrefix sprintf(nil "%s<0>" busPrefix))
          ?layer layer
          ?pts points
          ?width layerWidth
          ?justification "center"
          ?cvId cv
          ?offsetSubPath car(offsetPaths)
          )
        ); let
      );
    

    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