It looks like you're new here. If you want to get involved, click one of these buttons!
The XOR works well in klayout, is there a way to run a XNOR/NXOR operation within klayout? Basically the aim would be to keep only polygons that don't have overlap.
Thanks,
Comments
I'm afraid, I don't understand ... that is exactly what XOR does: it leaves the parts of polygons which do not overlap.
Do you mean the inverse of XOR that is not available?
Background is that all boolean operations produce local results - they will not generate output outside the drawing area - that would create a logical dilemma as this area is not bounded.
So in the truth table, the row with A=0 and B=0 will always produce "0". Hence all available operations are these:
Apart from the trivial ZERO, "=A" and "=B", all operations are supported in DRC.
If you need "inversion" you can basically subtract ("NOT") from a huge rectangle, but technically you should avoid that as it will generate huge polygons with many holes.
Matthias
Hi @Matthias ,
I used strmxor.exe to compare to input GDS(command: strmxor.exe input1.gds input2.gds output.gds), I got output GDS that contains what is different between them. If do we have any way to write to output what is same between them?
Thank you,
dai
Never mind, @Matthias.
I found the way : A xor B = C and then ( A + B ) xor C = D. D will be contains what is same between A and B
Thank you,
dai
Hi @dai,
I think this is just a complicated way to do an AND
strmxor can't do AND right now. Maybe I should include that too. But a more general way is to run a DRC script for that purpose.
Matthias
Thank you for your suggestion , @Matthias.
I will follow that way.
dai