From f25b6ffa61c3e53106da3316bd83bc9ce2df6719 Mon Sep 17 00:00:00 2001 From: mrg Date: Mon, 14 Sep 2020 15:42:17 -0700 Subject: [PATCH] Make control bus height of port data --- compiler/modules/bank.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compiler/modules/bank.py b/compiler/modules/bank.py index 57890a45..7634c36b 100644 --- a/compiler/modules/bank.py +++ b/compiler/modules/bank.py @@ -680,7 +680,7 @@ class bank(design.design): # 2 pitches on the right for vias/jogs to access the inputs control_bus_offset = vector(-self.m3_pitch * self.num_control_lines[0] - 2 * self.m3_pitch, self.min_y_offset) # The control bus is routed up to two pitches below the bitcell array - control_bus_length = self.main_bitcell_array_bottom - self.min_y_offset - 2 * self.m1_pitch + control_bus_length = self.port_data[0].height self.bus_pins[0] = self.create_bus(layer="m2", offset=control_bus_offset, names=self.control_signals[0], @@ -692,7 +692,7 @@ class bank(design.design): # Port 1 if len(self.all_ports)==2: # The other control bus is routed up to two pitches above the bitcell array - control_bus_length = self.max_y_offset - self.main_bitcell_array_top - 2 * self.m1_pitch + control_bus_length = self.port_data[1].height control_bus_offset = vector(self.bitcell_array_right + 2.5 * self.m3_pitch, self.max_y_offset - control_bus_length) # The bus for the right port is reversed so that the rbl_wl is closest to the array