mirror of
https://github.com/KLayout/klayout.git
synced 2026-09-03 16:30:20 +02:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user