LVS: allow missing device classes in reference schematic

Reasoning: some devices may simply not be used in the
reference schematic.
This commit is contained in:
Matthias Koefferlein
2019-08-19 22:26:50 +02:00
parent fa4da4ba0b
commit 207e44837c
4 changed files with 534 additions and 505 deletions
+6 -2
View File
@@ -285,9 +285,13 @@ module LVS
( nl_a, nl_b ) = _ensure_two_netlists
dc_a = a && (nl_a.device_class_by_name(a) || raise("Not a valid device class in extracted netlist: #{a}"))
dc_b = b && (nl_b.device_class_by_name(b) || raise("Not a valid device class in reference netlist: #{b}"))
dc_b = b && nl_b.device_class_by_name(b)
@comparer.same_device_classes(dc_a, dc_b)
# NOTE: a device class is allowed to be missing in the reference netlist because the
# device may simply not be used there.
if dc_b
@comparer.same_device_classes(dc_a, dc_b)
end
end