mirror of https://github.com/VLSIDA/OpenRAM.git
Include pins as blockages properly
This commit is contained in:
parent
2b15289daf
commit
587d44e536
|
|
@ -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)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue