• 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. How to add a subRectangles in a separated offsetSubPath...

Stats

  • Locked Locked
  • Replies 7
  • Subscribers 144
  • Views 14496
  • 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

How to add a subRectangles in a separated offsetSubPath ?

marbs
marbs over 10 years ago

Hi All ,

I would like to ask, how to add a subRectangles inside a separated offsetSubPath ?,

by using skill ROD .  The number of columns or rows of the subrectangles should fit inside

the separated  offsetSubPath .

Thanks in advance.

Best regards,

Marbs

  • Cancel
  • theopaone
    theopaone over 10 years ago

    You have to create the rectangles offset from the master path, just like you do the subpath. The subrectangle arguments you will use are ?sep and ?justification. Details in the ROD SKILL Reference, search for rodCreatePath.

    Ted

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • marbs
    marbs over 10 years ago

    Hi Ted,

    Thanks very much for your reply .

    I will try it tomorrow .

    Best regards,

    Marbs

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • marbs
    marbs over 10 years ago

    Hi Ted,

    Heres the code I added.

    ; Begin adding subrect
                              ?offsetSubRect
                                        list(
                                             list(
                                                  ?layer       list("CONT" "drawing")
                                                  ?beginOffset 1.97
                                                  ?length 0.22
                                                  ?space 0.28
                                                  ?sep  1
                                                  ?justification "center"
                                                  ?choppable t
                                                  )
                                             )                        



                             ; End adding subrect

    but I've got an error as below :

    *Error* rodCreatePath: unrecognized keyword - ?offsetSubRect

    *Error* load: error while loading file - "*loadstring*"

    t

    Best regards,

    Marbs

                           

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • theopaone
    theopaone over 10 years ago
    The subRect keyword is?subRect. ?sep is the spacing between the rectangles, 1 is pretty big.
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • marbs
    marbs over 10 years ago

    Hi Ted,

    Thanks for your reply.

    I have got now sub rectangles using skill .

    The only problem now is I only have one line of rectangle .

    If I want to make it two lines of rectangle, how to do it ?

    below is my skill code .

            contNum = fix((pathWidth-(2*minEnc_M1_Cont)+minS_Cont)/(minW_Cont+minS_Cont))
            offset = minus((minW_Cont+minS_Cont)*(contNum-1))/2.0
            subRectList = list()
            for(i 0 contNum-1
            subRectList = append1(subRectList
                list(?layer list("CONT" "drawing")
                        ?width minW_Cont
                        ?length minW_Cont
                        ?space minS_Cont
                        ?gap "minimum"
                        ?sep 0.5
                        ?beginOffset -minEnc_M1_Cont
                        ?endOffset -minEnc_M1_Cont)
                     )
            offset = offset+(minW_Cont+minS_Cont)

            )

    Thanks in advance .


    Best regards,

    Marben

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 10 years ago

    Hi Marben,

    You'll need to use something like ?sep offset rather than ?sep 0.5 . You already have most of the work done - a loop to build the subRectList based on the number of rows of contacts. I doubt it will make any significant difference in this case unless you have a very large number for contNum, but you should consider using cons() to add each list onto the beginning of subRectList rather than append1 to add it on the end (this is more efficient).

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • marbs
    marbs over 10 years ago

    Hi Andrew,

    Thank you very much for your reply.

    Your suggestion "?sep" works like a charm .

    I am searching for the solution of my problem for many days without luck . 

    Finaly, I got my skill code working according to my plan .

    Here is now my new skill code :

            contNum = fix((pathWidth-(2*minEnc_M1_Cont)+minS_Cont)/(minW_Cont+minS_Cont))
            offset = minus((minW_Cont+minS_Cont)*(contNum-1))/2.0

           offset = offset + 3.41
            subRectList = list()
            for(i 0 contNum-1
            subRectList = append1(subRectList
                list(?layer list("CONT" "drawing")
                        ?width minW_Cont
                        ?length minW_Cont
                        ?space minS_Cont
                        ?gap "minimum"
                        ?sep offset
                        ?beginOffset -minEnc_M1_Cont
                        ?endOffset -minEnc_M1_Cont)
                     )
            offset = offset+(minW_Cont+minS_Cont)

            )

    Merry christmas and advance happy new year to all .

    Best regards,

    Marben

    • 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