From 300522a1a80c6346bf11e0d9185a3f387fe861e6 Mon Sep 17 00:00:00 2001 From: Aditi Sinha Date: Mon, 8 Jun 2020 14:31:46 +0000 Subject: [PATCH] Change spare enable pins offset to lower right --- compiler/modules/write_driver_array.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/compiler/modules/write_driver_array.py b/compiler/modules/write_driver_array.py index 510325bb..22a75218 100644 --- a/compiler/modules/write_driver_array.py +++ b/compiler/modules/write_driver_array.py @@ -7,6 +7,7 @@ # import design import debug +from tech import drc from sram_factory import factory from vector import vector from globals import OPTS @@ -239,9 +240,7 @@ class write_driver_array(design.design): en_pin = inst.get_pin(inst.mod.en_name) self.add_layout_pin(text=self.en_name + "_{0}".format(i + self.num_wmasks), layer="m1", - offset=en_pin.ll(), - width=self.driver.width - en_pin.width()) - + offset=en_pin.lr() + vector(-drc("minwidth_m1"),0)) elif self.num_spare_cols and not self.write_size: # shorten enable rail to accomodate those for spare write drivers @@ -258,9 +257,8 @@ class write_driver_array(design.design): en_pin = inst.get_pin(inst.mod.en_name) self.add_layout_pin(text=self.en_name + "_{0}".format(i + 1), layer="m1", - offset=en_pin.ll(), - width=self.driver.width - en_pin.width()) - + offset=en_pin.lr() + vector(-drc("minwidth_m1"),0)) + else: inst = self.driver_insts[0] self.add_layout_pin(text=self.en_name,