From 9b5d0112dd8c28724f8087fbf9a5c4a60a230ae8 Mon Sep 17 00:00:00 2001 From: Jan Petykiewicz Date: Tue, 5 Apr 2022 18:22:59 -0700 Subject: [PATCH] only warn for different-named nets --- snarled/main.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/snarled/main.py b/snarled/main.py index b58e14c..dc7e10b 100644 --- a/snarled/main.py +++ b/snarled/main.py @@ -126,7 +126,9 @@ def trace_connectivity( # Merge any nets that were shorted by having their labels on the same polygon for group in merge_groups: - logger.warning(f'Nets {group} are shorted on layer {metal_layer}') + net_names = set(nn.name for nn in group) + if len(net_names) > 1: + logger.warning(f'Nets {net_names} are shorted on layer {metal_layer}') first_net, *defunct_nets = group for defunct_net in defunct_nets: nets_info.merge(first_net, defunct_net)