It looks like you're new here. If you want to get involved, click one of these buttons!
Hi Matthias,
Wondering if you can help me with what might be a simple solution. I am trying to write a small DRC which marks(pink-sd-enc) the polygons (green-dimple)which are not enclosed by the blue layer(signal). The enclosing command seems to pick edges. The image is what I am expecting as output.
I have tried to do a number of ways to add join layers with the not operation and the enclosing operation and can't get much further. Here is my DRC code.
sig_dim=signal.enclosing(dimple,2.micron)
dimout=dimple.not(signal)
sd_enc=sig_dim.join(dimout)
sd_enc.output(314,0,"Signal_Dimple_Enclosure")
You may have a simpler option.
Thanks in anticipation.
Kind regards,
Nakul
Comments
Hi Nakul,
The method is "not_inside". Enclosing is a distance check. For details see here: https://www.klayout.de/doc-qt5/about/drc_ref_layer.html#h2-1801
Matthias
Hi Matthias,
Thanks for getting back, I wanted the blocks even 2um from the inside edge. Is there a way to shift the edges of the main block in by 2um and then using not_inside to get what I want.
Although I can do the rules separately, I am unable to join them after the operation. Are the layers after a boolean operation and that of any separation of not_inside rule defined differently.
Thanks,
Nakul
Hi Nakul,
The edge shift operation is called "sized" (https://www.klayout.de/doc-qt5/about/drc_ref_layer.html#sized). With a negative value you'll get a shrink.
Matthias