diff --git a/compiler/pgates/precharge.py b/compiler/pgates/precharge.py index 278fef3d..893736f4 100644 --- a/compiler/pgates/precharge.py +++ b/compiler/pgates/precharge.py @@ -236,10 +236,9 @@ class precharge(design.design): Adds both bit-line and bit-line-bar to the module """ layer_pitch = getattr(self, "{}_pitch".format(self.bitline_layer)) - layer_width = getattr(self, "{}_width".format(self.bitline_layer)) - # adds the BL so it aligns with the col mux - self.bl_xoffset = layer_pitch + 0.5 * layer_width + # adds the BL + self.bl_xoffset = layer_pitch top_pos = vector(self.bl_xoffset, self.height) pin_pos = vector(self.bl_xoffset, 0) self.add_path(self.bitline_layer, [top_pos, pin_pos]) @@ -248,8 +247,8 @@ class precharge(design.design): start=pin_pos, end=top_pos) - # adds the BR so it aligns with the col mux - self.br_xoffset = self.width - layer_pitch - 0.5 * layer_width + # adds the BR + self.br_xoffset = self.width - layer_pitch top_pos = vector(self.br_xoffset, self.height) pin_pos = vector(self.br_xoffset, 0) self.add_path(self.bitline_layer, [top_pos, pin_pos])