It looks like you're new here. If you want to get involved, click one of these buttons!
In a DRC scripting context: If I have succesfully seperated a layer into two distinct pieces (an upper and lower piece), and have done so for all of boxes/polygons of that type, how can I output the pairwise combinations where the length of the upper is smaller than the lower?
Comments
Hi hfred and thank you for the quick reply. I am new to DRC scripting in KLayout and in general too, so far my script does nothing fruitful, but in the provided picture I am atleast verifying that my script manages to remove the overlap, giving distinct pieces. I now want to check that the upper piece has a larger vertical length than the lower piece. This can probably be done in many different ways, but I am not complete understanding how to do it for each combination of pieces without looping like in a traditional language? To my understanding DRC in KLayout is more holistic? Meaning one needs to consider all polygons (in a layer) at once? are you able to see my provided picture below?
I am not sure the seperation is the issue.. But would you say in general that DRC in KLayout is constrained to doing checks for all polygons residing in a layer in one swoop, i.e. completely geometrically considering them all at once? Or would some loop logic be viable? All I know is that if I'd do some loop - if I in each loop would do layer.output() I would probably get many reports or have the result from the previous overwritten by the former or something like that... Therefore I am not sure looping is the way to go.
Regardless, how would you approach the problem? The layers are called horisontal and vertical. And I simply want to verify that verticals length above the cross is larger than verticals length below the cross.