It looks like you're new here. If you want to get involved, click one of these buttons!
klayout 0.30.4
Implementing via check
apparently klayout does not provide a check for via, in the sense the width is fix for instance 0.26um.
The obvious solution will be to check for size > 0.26 and < 0.26.
via1.drc(width > 0.26).output("VIA1.W.1", "VIA1 width > 0.26") (expected true if via width > 0.26um) failed !
via1.drc(width < 0.26).output("VIA1.W.2", "VIA1 width < 0.26") (expected true if via width < 0.26um) works !
or
via1.drc(width != 0.26).output("VIA1.W.3", "VIA1 width != 0.26") (expected true if via width != 0.26um) failed !
projection, no help
Does width work only for < ?
if yes then there is some problem with these examples
errors = in.drc(width < 0.2.um)
errors = in.drc(width <= 0.2.um)
errors = in.drc(width > 0.2.um)
errors = in.drc(width >= 0.2.um)
errors = in.drc(width == 0.2.um)
errors = in.drc(width != 0.2.um)
errors = in.drc(0.1.um <= width < 0.2.um)