• 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. Width dependent rows of subrectangels for rodCreatePath

Stats

  • Locked Locked
  • Replies 4
  • Subscribers 142
  • Views 13825
  • 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

Width dependent rows of subrectangels for rodCreatePath

archive
archive over 19 years ago

Hi,

I wonder if there is already a method in place to create
multiple rows (list for the ?subRect argument of  rodCreatePath)
of subrectagles, depending on the width of the master path?

I didn't want to invent the wheel twice.

Cheers Bernd


Originally posted in cdnusers.org by bernd.fischer@xignal.com
  • Cancel
  • archive
    archive over 19 years ago

    Bernd,

    There's a PCR asking for this, but for now you have to create the multiple rows yourself.

    Regards,

    Andrew.


    Originally posted in cdnusers.org by adbeckett
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • archive
    archive over 19 years ago

    Andrew,

    I knew about the PCR, but I thought someone out there
    could already have a solution for this, but it seems not.

    I'm close to be ready with my solution for it, if it's done
    I'll attach the code to this thread.

    Cheers Bernd


    Originally posted in cdnusers.org by bernd.fischer
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • archive
    archive over 19 years ago

    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    ;;
    ;; Disclaimer : NO WARRANTY, this SKILL function(s) is(are) released
    ;; without any warranty. The Author does not warrant,
    ;; guarantee, or make any representations regarding the
    ;; use, or the results of use of this SKILL function(s).
    ;; The entire risk of the use of this SKILL function(s)
    ;; is with you.
    ;;
    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    ;;
    ;; File Name : createSubRectList.il
    ;;
    ;; Function(s) : BFcreateSubRectList
    ;;
    ;; Author : Bernd Fischer
    ;;
    ;; Date : Tue. 4. June 2006
    ;;
    ;; Version : 1.0
    ;;
    ;; Application : Virtuoso/Virtuoso XL
    ;;
    ;; SW Release : 5.1.41 and higher
    ;;
    ;; SKILL Lint : PASSed
    ;;
    ;; Global Variable(s) : None
    ;;
    ;; Synopsis : BFcreateSubRectList(
    ;; ?layer l_layerPurposePair
    ;; ?masterPathWidth n_masterPathWidth
    ;; ?subRectWidth n_subRectWidth
    ;; ?subRectSpace n_subRectSpace
    ;; ?beginOffset n_beginOffset
    ;; ?endOffset n_endOffset
    ;; ?sideOffset n_sideOffset
    ;; )
    ;;
    ;; Description : This function creates a list or lists of subrectangle
    ;; arguments for the 'rodCreatePath' function.
    ;; It gives the rodCreatePath function the ability to create
    ;; multiple rows of subrectangels depending on the with of
    ;; the master path.
    ;; It can be called directly as value for l_subRect of
    ;; rodCreatePath or used in context with a variable which
    ;; holds the l_subRect value.
    ;;
    ;; Arguments : txl_layer Text string, integer, or list
    ;; specifying the layer or layer
    ;; purpose pair for the sub
    ;; rectangles.
    ;; n_masterPathWidth Positive integer or floating
    ;; point number specifying the
    ;; width of the master path.
    ;; n_subRectWidth Positive integer or floating
    ;; point number specifying the
    ;; width of the sub rectangles.
    ;; n_subRectSpace Positive integer or floating
    ;; point number specifying the
    ;; spacing between the sub
    ;; rectangles.
    ;; n_beginOffset Signed integer or floating
    ;; point number specifying the
    ;; offset of the edge of the first
    ;; subrectangle from the starting
    ;; edge of the master path.
    ;; n_endOffset Signed integer or floating
    ;; point number specifying the
    ;; offset of the edge of the first
    ;; subrectangle from the starting
    ;; edge of the master path.
    ;; n_sideOffset Signed integer or floating
    ;; point number specifying the
    ;; offset along the edges of the
    ;; master path to edges of the
    ;; most right and left subrectangle
    ;; row.
    ;;
    ;; Return Value : l_subRectList
    ;;
    ;; Example : rodCreatePath(
    ;; ...
    ;; ?subRect BFcreateSubRectList(...)
    ;; )
    ;; or
    ;; l_subRect = BFcreateSubRectList(...)
    ;; rodCreatePath(
    ;; ...
    ;; ?subRect l_subRect
    ;; )
    ;; Modification : None
    ;;
    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

    procedure( BFcreateSubRectList(
    @key
    layer
    masterPathWidth
    subRectWidth
    subRectSpace
    beginOffset
    endOffset
    sideOffset
    )
    let( ( l_subRectList f_numOfRows x_numOfRows
    f_variableSubRectSpace f_separation
    )


    ;; differentiation if one or more than one contact can be placed
    ;; then calculate number of rows as float
    if( masterPathWidth <= ( 2 * sideOffset + subRectWidth ) then
    f_numOfRows = ( masterPathWidth - ( 2 * sideOffset ) ) / subRectWidth
    else
    f_numOfRows = ( masterPathWidth - ( 2 * sideOffset ) + subRectSpace ) /
    ( subRectWidth + subRectSpace )
    )

    ;; conversion of number of rows form float to integer
    if( ( ( round( f_numOfRows ) - f_numOfRows ) < 0.001 ) then
    x_numOfRows = round( f_numOfRows )
    else
    x_numOfRows = fix( f_numOfRows )
    )

    ;; algorithm to calculate variable subrectangle spacing
    ;; to align subrectangels fix on enclosure with variable spacing
    unless( onep( x_numOfRows )
    f_variableSubRectSpace = ( masterPathWidth - ( 2 * sideOffset ) -
    ( x_numOfRows * subRectWidth ) ) /
    ( x_numOfRows - 1 )
    )

    ;; create list of subrectangle arguments
    cond(
    ( onep( x_numOfRows )
    l_subRectList = cons(
    list(
    ?layer layer
    ?width subRectWidth
    ?length subRectWidth
    ?space subRectSpace
    ?beginOffset beginOffset
    ?endOffset endOffset
    ?justification 'center
    )
    l_subRectList
    ) ;; close cons
    )
    ( t
    for( j 1 x_numOfRows
    f_separation = ( ( j - 1 ) * ( f_variableSubRectSpace + subRectWidth ) ) +
    ( subRectWidth * 0.5 ) + sideOffset -
    ( masterPathWidth * 0.5 )
    l_subRectList = cons(
    list(
    ?layer layer
    ?width subRectWidth
    ?length subRectWidth
    ?space subRectSpace
    ?beginOffset beginOffset
    ?endOffset endOffset
    ?sep -f_separation
    ?justification 'center
    )
    l_subRectList
    ) ;; close cons
    ) ;; close for
    )
    ) ;; close cond


    l_subRectList

    ) ;; close let

    ) ;; close BFcreateSubRectList


    Originally posted in cdnusers.org by bernd.fischer
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • archive
    archive over 19 years ago

    It seems that somehow the formatting get lost while posting code, worse option?
    Some idea why?

    Bernd


    Originally posted in cdnusers.org by bernd.fischer
    • 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