Include pins as blockages properly

This commit is contained in:
Eren Dogan 2023-07-24 21:15:15 -07:00
parent 2b15289daf
commit 587d44e536
1 changed files with 6 additions and 3 deletions

View File

@ -160,10 +160,13 @@ class graph:
region.lpp = blockage.lpp
if region.overlaps(blockage):
self.graph_blockages.append(blockage)
# FIXME: Don't include source and target if they're already included
# in inflated form
# Make sure that the source or target fake pins are included as blockage
for shape in [self.source, self.target]:
if shape not in self.graph_blockages:
for blockage in self.graph_blockages:
blockage = blockage.get_inflated_from()
if shape == blockage:
break
else:
self.graph_blockages.append(shape)