mirror of
https://github.com/KLayout/klayout.git
synced 2026-09-01 18:37:50 +02:00
DRC enhancements: max_vertex_count, max_area_ratio and forget
This commit is contained in:
Vendored
+36
@@ -0,0 +1,36 @@
|
||||
|
||||
# Hierarchical antenna check
|
||||
|
||||
source($drc_test_source, "TOP")
|
||||
target($drc_test_target)
|
||||
|
||||
deep
|
||||
|
||||
max_area_ratio(0)
|
||||
max_vertex_count(0)
|
||||
l1 = input(1, 0)
|
||||
|
||||
max_area_ratio(3.0)
|
||||
if max_area_ratio != 3.0
|
||||
raise("Area ratio is not 3.0!")
|
||||
end
|
||||
max_vertex_count(0)
|
||||
l2 = input(1, 0)
|
||||
|
||||
max_area_ratio(0)
|
||||
max_vertex_count(6)
|
||||
if max_vertex_count != 6
|
||||
raise("Max vertex count is not 6!")
|
||||
end
|
||||
l3 = input(1, 0)
|
||||
|
||||
# alternative notation
|
||||
self.max_area_ratio = 3
|
||||
self.max_vertex_count = 6
|
||||
l4 = input(1, 0)
|
||||
|
||||
l1.output(1, 0)
|
||||
l2.output(2, 0)
|
||||
l3.output(3, 0)
|
||||
l4.output(4, 0)
|
||||
|
||||
Vendored
BIN
Binary file not shown.
Vendored
+33
@@ -0,0 +1,33 @@
|
||||
|
||||
# Hierarchical antenna check
|
||||
|
||||
source($drc_test_source, "TOP")
|
||||
target($drc_test_target)
|
||||
|
||||
deep
|
||||
|
||||
max_area_ratio(0)
|
||||
max_vertex_count(0)
|
||||
|
||||
l1 = input(1, 0)
|
||||
l2 = input(2, 0)
|
||||
l3 = l1 & l2
|
||||
|
||||
l1.output(1, 0)
|
||||
l1.forget
|
||||
begin
|
||||
l1.data
|
||||
raise("l1.data did not raise an error")
|
||||
rescue
|
||||
end
|
||||
|
||||
l2.output(2, 0)
|
||||
l2.forget
|
||||
begin
|
||||
l2.data
|
||||
raise("l1.data did not raise an error")
|
||||
rescue
|
||||
end
|
||||
|
||||
l3.output(3, 0)
|
||||
|
||||
Vendored
BIN
Binary file not shown.
Vendored
BIN
Binary file not shown.
Vendored
BIN
Binary file not shown.
Reference in New Issue
Block a user