DRC enhancements: max_vertex_count, max_area_ratio and forget

This commit is contained in:
Matthias Koefferlein
2020-09-15 00:12:55 +02:00
parent ce9c7e848a
commit e75333ea41
10 changed files with 436 additions and 158 deletions
+36
View File
@@ -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)
Binary file not shown.
+33
View File
@@ -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)
Binary file not shown.
Binary file not shown.
Binary file not shown.