DRC with spike

Hi everyone,

I have a question about the spike of polygon.

It can be deleted by Merge, but I am curious if it can be detected by DRC.
Thanks for your help.

Comments

  • Hello! In my DRC setup, such geometric spikes can be detected and flagged by methods like "width," "with_angle," and "corners." However, during my usage, the "with_angle" method often overlooks certain concave points—for example, it fails to identify indentations when the spike points inward. Could you explain why this happens and whether it is an inherent limitation of the "with_angle" rule? Thank you for your help!

  • Spikes are not considered "real" by KLayout as they have a zero width. On merge they will be removed as they do not have an area - similar to degenerated polygons such as boxes with no height.

    As merging is implicitly implied by most functions, you will not see these features. But you can turn off implicit merging using "raw":

    layer = input(1, 0)
    spikes = layer.raw.width(1.dbu)
    

    Matthias

  • Hi @Matthias,

    Thank you for your reply.
    It answers my question perfectly.

    Best regards,

    JSS

Sign In or Register to comment.