Wednesday, February 08, 2012     Register | Login | Search | Contact Us
     

Many of you already received communications about the move of the Cadence user community into cadence.com. And many of you have already joined, with over 4000 registrations in the first two weeks.

The new Cadence Community enhances the ability of Cadence users to connect and collaborate. In addition to moving the community into cadence.com -- enabling single sign-on for community, Sourcelink and Cadence events -- the new site is organized around nine technology segments, giving you easy access to product information, training, forums and blogs. Some of the new features include:
  • Ability to respond to posts via e-mail
  • Technology-specific blogs
  • Latest Web 2.0 social networking capabilities
  • Public profile options
  • Private messaging
  • Friends lists
Visit the new Cadence Community today at www.cadence.com/community and join the discussions!

Registration note: Due to the scope of the enhancements and the new SSO registration system, we were not able to migrate existing cdnusers.org member accounts. So new registrations are required, but this enables a broader set of functionality we think you'll enjoy.

Forum note: Under the guidance of forum moderators, we have taken the 20+ cdnusers.org forums and consolidated them into 11 forums on the new site. Posts have been brought over so you can leverage that posting history. CDNusers forums will be set to read only starting 7/30, and cdnusers.org will be redirected to the new community on 8/4.

Best regards,
Mike and Tom

Michael A. Catrambone - Steering Committee Chairman
Distinguished Engineer
PCB/Mechanical
UTStarcom, Inc.

Tom Diederich
Cadence Community Manager
Home
Forums
Subject: Width dependent rows of subrectangels for rodCreatePath
Posting to forums is available to community members only.
Login or Register
Rate this topic:
   
Author Messages
bernd.fischer@xignal.com
Posts: 0
Online: User is Offline
7/03/2006 4:57 AM  
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

adbeckett
Posts: 248
Online: User is Offline
7/03/2006 9:42 AM  
Bernd,

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

Regards,

Andrew.
bernd.fischer
Posts: 15
Online: User is Offline
7/04/2006 1:40 AM  
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
bernd.fischer
Posts: 15
Online: User is Offline
7/04/2006 6:56 AM  
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;
;; 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
bernd.fischer
Posts: 15
Online: User is Offline
7/04/2006 6:58 AM  
It seems that somehow the formatting get lost while posting code, worse option?
Some idea why?

Bernd
Posting to forums is available to community members only.
Login or Register

Forums > Custom IC > Shared code - SKILL > Width dependent rows of subrectangels for rodCreatePath


ActiveForums 3.6
     
Copyright 2006 Cadence Design Systems, Inc.