column control and address precharge

This commit is contained in:
Jacob Walker
2023-03-30 11:30:50 -07:00
parent ce8197d206
commit f7aed247fd
22 changed files with 1479 additions and 520 deletions
+3 -1
View File
@@ -696,13 +696,15 @@ class layout():
start=left_pos,
end=right_pos)
def connect_row_pins(self, layer, pins, name=None, full=False):
def connect_row_pins(self, layer, pins, name=None, full=False, round=False):
"""
Connects left/right rows that are aligned.
"""
bins = {}
for pin in pins:
y = pin.cy()
if round:
y = round_to_grid(y)
try:
bins[y].append(pin)
except KeyError: