Implemented LayerInfo for DRC input/output

- Added a "layers" function too
- Updated tests
- Updated documentation
This commit is contained in:
Matthias Koefferlein
2017-07-11 00:36:51 +02:00
parent be20bdd9cc
commit e2bcac657a
52 changed files with 1260 additions and 24 deletions
+8 -2
View File
@@ -1,4 +1,6 @@
big_tests = false
verbose(true)
source(File.dirname(__FILE__) + "/drctest.gds", "TOPTOP")
@@ -23,11 +25,15 @@ def run_testsuite(dm, ic, tiled = false)
lb = 100
a = input(1)
a = input(RBA::LayerInfo::new(1, 0))
b = input(2)
c = input(3)
x = input(10)
y = input(11)
h = {}
layers.each { |l| h[l] = true }
h[RBA::LayerInfo::new(1, 0)] || raise("missing layer 1/0 in layers list")
c.is_merged? == false || raise("unexpected value")
@@ -40,7 +46,7 @@ def run_testsuite(dm, ic, tiled = false)
a.and(b).xor(l1).is_empty? || raise("xor not empty")
tiled || (a.and(b).is_merged? == true || raise("unexpected value"))
a.xor(b).output(lb + 1, dm)
a.xor(b).output(RBA::LayerInfo::new(lb + 1, dm))
a.xor(b).xor(a ^ b).is_empty? || raise("xor not empty")
a.not(b).output(lb + 2, dm)
a.not(b).xor(a - b).is_empty? || raise("xor not empty")
+1 -1
View File
@@ -4,7 +4,7 @@
inst=$(dirname $0)
export LD_LIBRARY_PATH=.
export LD_LIBRARY_PATH=.:$LD_LIBRARY_PATH
make klayout