Added anonot method to DRC, provide tests.

This commit is contained in:
Matthias Koefferlein
2020-06-14 18:49:21 +02:00
parent 476c37e218
commit 823807641b
9 changed files with 90 additions and 1 deletions
+6 -1
View File
@@ -31,16 +31,21 @@ def run_testsuite(dm, ic, tiled = false, hier = false)
message "--- general #{lb}"
l1 = a&b
l1 = a & b
l1.output(lb, dm)
expect_eq(l1.is_empty?, false)
(an1, an2) = a.andnot(b)
an1.output(lb, dm + 1)
expect_eq(an1.is_empty?, false)
a.and(b).xor(l1).is_empty? || raise("xor not empty")
tiled || hier || expect_eq(a.and(b).is_merged?, true)
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)
an2.output(lb + 2, dm + 1)
a.not(b).xor(a - b).is_empty? || raise("xor not empty")
a.or(b).output(lb + 3, dm)
a.or(b).xor(a | b).is_empty? || raise("xor not empty")
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.