Home > Community > Forums > PCB SKILL > Subtraction between two layers..........

Email

* Required Fields

Recipients email * (separate multiple addresses with commas)

Your name *

Your email *

Message *

Contact Us

* Required Fields
First Name *

Last Name *

Email *

Company / Institution *

Comments: *

 Subtraction between two layers.......... 

Last post Tue, Dec 11 2012 8:28 AM by murtazaak. 2 replies.
Started by murtazaak 11 Dec 2012 07:58 AM. Topic has 2 replies and 815 views
Page 1 of 1 (3 items)
Sort Posts:
  • Tue, Dec 11 2012 7:58 AM

    • murtazaak
    • Not Ranked
    • Joined on Tue, Dec 11 2012
    • Posts 4
    • Points 50
    Subtraction between two layers.......... Reply

     Hi,

    I just started cadence couple of days back for designing my patterns, I wanted to subtract two layers and already wrote a code but not sure its a right one or not. Could anyone help me please and let me know is this a right on or not,

     load("/usr/cdscad/libw/utils/rectw.il")


    procedure( subtraction( @optional origin ww tlength outlayer)
    (prog (xx yy np xo yo lw)

       subl1 = nil
       subl2 = nil

       xo = xCoord(origin)
       yo = yCoord(origin)
       


    ;; Draw First rect Layer

       xx = xo
       yy = yo-ww/2.0
       r = rectw(xx yy tlength ww "metal1")
     subl1 = append(subl1, list(r))

    ;; Draw Second rect Layer

       xx = xo
       yy = yo-ww/2.0
       r = rectw(xx yy tlength ww "metal2")
      subl2 = append(subl2, list(r))

    dbLayerAndNot((getEditRep) outlayer subl1 subl2)

    )

    )

     

    Thanks

     

    • Post Points: 20
  • Tue, Dec 11 2012 8:09 AM

    • fxffxf
    • Top 25 Contributor
    • Joined on Thu, Jul 17 2008
    • ., AK
    • Posts 296
    • Points 4,710
    Re: Subtraction between two layers.......... Reply

    You may want to submit this question to the Custom IC Skill Forum, if you are using a Cadence IC tool.

    If you are programming to the SPB Allegro board tool then you will want to look at the axlPolyOperation API since your example code is written using the Cadence IC set of APIs which are not suport by the Allegro tool.

    • Post Points: 20
  • Tue, Dec 11 2012 8:28 AM

    • murtazaak
    • Not Ranked
    • Joined on Tue, Dec 11 2012
    • Posts 4
    • Points 50
    Re: Subtraction between two layers.......... Reply

     Thanks a lot Fxffxf

    • Post Points: 5
Page 1 of 1 (3 items)
Sort Posts:
Started by murtazaak at 11 Dec 2012 07:58 AM. Topic has 2 replies.