Merge branch 'opc_fix' into dev

This commit is contained in:
Jesse Cirimelli-Low 2022-02-15 14:38:20 -08:00
commit 1a0861539a
1 changed files with 1 additions and 1 deletions

View File

@ -692,7 +692,7 @@ class hierarchical_decoder(design.design):
drc_error = 0
for and_input in self.predecode_bus_rail_pos:
if and_input.x == rail_pos.x:
if (abs(y_offset - and_input.y) < total_buffer_space) or (abs(y_offset - and_input.y) < via.height):
if (abs(y_offset - and_input.y) < total_buffer_space) or (abs(y_offset - and_input.y) < via.height) or (abs(y_offset - drc("minwidth_{}".format(cur_layer)) - pin_pos.y - via.height/2) < drc("{0}_to_{0}".format(cur_layer)) ):
drc_error = 1
if drc_error == 0:
break