[#73220] fix lint errors in driver.py
This commit is contained in:
parent
795bb86227
commit
5bd9aabfcc
|
|
@ -2509,9 +2509,8 @@ class VlTest:
|
||||||
|
|
||||||
def compare_saif_instances(self, first: SAIFInstance, second: SAIFInstance):
|
def compare_saif_instances(self, first: SAIFInstance, second: SAIFInstance):
|
||||||
if len(first.nets) != len(second.nets):
|
if len(first.nets) != len(second.nets):
|
||||||
self.error(
|
self.error(f"Number of nets doesn't match in {first.scope_name}: "
|
||||||
f"Number of nets doesn't match in {first.scope_name}: {len(first.nets)} != {len(second.nets)}"
|
f"{len(first.nets)} != {len(second.nets)}")
|
||||||
)
|
|
||||||
|
|
||||||
for signal_name, saif_signal in first.nets.items():
|
for signal_name, saif_signal in first.nets.items():
|
||||||
if signal_name not in second.nets:
|
if signal_name not in second.nets:
|
||||||
|
|
@ -2533,9 +2532,8 @@ class VlTest:
|
||||||
f"{signal_name}[{bit_index}]\n")
|
f"{signal_name}[{bit_index}]\n")
|
||||||
|
|
||||||
if len(first.child_instances) != len(second.child_instances):
|
if len(first.child_instances) != len(second.child_instances):
|
||||||
self.error(
|
self.error(f"Number of child instances doesn't match in {first.scope_name}: "
|
||||||
f"Number of child instances doesn't match in {first.scope_name}: {len(first.child_instances)} != {len(second.child_instances)}"
|
f"{len(first.child_instances)} != {len(second.child_instances)}")
|
||||||
)
|
|
||||||
|
|
||||||
for instance_name, instance in first.child_instances.items():
|
for instance_name, instance in first.child_instances.items():
|
||||||
if instance_name not in second.child_instances:
|
if instance_name not in second.child_instances:
|
||||||
|
|
@ -2556,9 +2554,8 @@ class VlTest:
|
||||||
self.error(f"Timescale doesn't match: {first.timescale} != {second.timescale}")
|
self.error(f"Timescale doesn't match: {first.timescale} != {second.timescale}")
|
||||||
|
|
||||||
if len(first.top_instances) != len(second.top_instances):
|
if len(first.top_instances) != len(second.top_instances):
|
||||||
self.error(
|
self.error("Number of top instances doesn't match: "
|
||||||
f"Number of top instances doesn't match: {len(first.top_instances)} != {len(second.top_instances)}"
|
f"{len(first.top_instances)} != {len(second.top_instances)}")
|
||||||
)
|
|
||||||
|
|
||||||
for top_instance_name, top_instance in first.top_instances.items():
|
for top_instance_name, top_instance in first.top_instances.items():
|
||||||
if top_instance_name not in second.top_instances:
|
if top_instance_name not in second.top_instances:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue