File: drcGenericTests_1.drc

package info (click to toggle)
klayout 0.30.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 292,204 kB
  • sloc: cpp: 2,068,428; ruby: 47,823; xml: 26,924; python: 14,404; sh: 1,812; tcl: 212; perl: 170; makefile: 112; ansic: 42
file content (32 lines) | stat: -rw-r--r-- 735 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32

source $drc_test_source
target $drc_test_target

if $drc_test_deep
  deep
end

l1 = input(1, 0)
l2 = input(2, 0)
l3 = input(3, 0)

l1.output(1, 0)
l2.output(2, 0)
l3.output(3, 0)

wcheck = width(projection)

l1.drc(wcheck < 1.0).polygons.output(100, 0)
l1.drc(wcheck <= 0.5).polygons.output(101, 0)
l1.drc(1.0 > wcheck).polygons.output(102, 0)
l1.drc(0.5 >= wcheck).polygons.output(103, 0)
l1.drc(wcheck > 1.0).output(104, 0)
l1.drc(wcheck >= 1.5).output(105, 0)
l1.drc(1.0 < wcheck).output(106, 0)
l1.drc(1.5 <= wcheck).output(107, 0)
l1.drc(wcheck == 1.5).output(108, 0)
l1.drc(1.0 <= wcheck <= 1.5).output(109, 0)
l1.drc(1.0 < wcheck < 2.0).output(110, 0)
l1.drc(wcheck != 1.5).output(111, 0)
l1.drc(wcheck != 1.0).output(112, 0)