Use partial grids for enclosure with note

This commit is contained in:
mrg 2021-01-13 13:01:55 -08:00
parent bc9ab086e5
commit 1b31afd773
1 changed files with 7 additions and 4 deletions

View File

@ -650,10 +650,13 @@ class pin_group:
self.router.write_debug_gds("blocked_pin.gds") self.router.write_debug_gds("blocked_pin.gds")
# Consider the fully connected set first and if not the partial set # Consider the fully connected set first and if not the partial set
if len(pin_set) > 0: # if len(pin_set) > 0:
self.grids = pin_set # self.grids = pin_set
else: # else:
self.grids = partial_set # self.grids = partial_set
# Just using the full set simplifies the enclosures, otherwise
# we get some pin enclose DRC errors due to off grid pins
self.grids = pin_set | partial_set
if len(self.grids) < 0: if len(self.grids) < 0:
debug.error("Did not find any unblocked grids: {}".format(str(self.pins))) debug.error("Did not find any unblocked grids: {}".format(str(self.pins)))
self.router.write_debug_gds("blocked_pin.gds") self.router.write_debug_gds("blocked_pin.gds")