• 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. Subtraction Between two layers?

Stats

  • Locked Locked
  • Replies 2
  • Subscribers 143
  • Views 14373
  • 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

Subtraction Between two layers?

murtazaak
murtazaak over 12 years ago

 

 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

  • Cancel
Parents
  • kb how
    kb how over 12 years ago

    hi Mustazaak,

    Not sure what you're trying to do. Maybe you can give a brief description to let us understand your intension.

    Else, just use function dbLayerAndNot is help.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • kb how
    kb how over 12 years ago

    hi Mustazaak,

    Not sure what you're trying to do. Maybe you can give a brief description to let us understand your intension.

    Else, just use function dbLayerAndNot is help.

    • 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