Skip to content

Commit cdd2d7d

Browse files
authored
Merge pull request #8 from railnova/net_NC
add _NC net detection
2 parents 772be2e + 089a78e commit cdd2d7d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/python_netlist/netlist.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def check_orphans(self, min_pins=2):
7676
"""return a list of nets that have less than min_pins connections"""
7777
netlist = self.netlist
7878
return {n: netlist[n] for n in netlist if
79-
len(netlist[n]) < min_pins and not (n.startswith('NC_') or ('.NC_' in n))}
79+
len(netlist[n]) < min_pins and not (n.startswith('NC_') or ('_NC' in n) or ('.NC_' in n))}
8080

8181

8282
if __name__ == '__main__':

0 commit comments

Comments
 (0)