Change write driver supply pins to M2

This commit is contained in:
Matt Guthaus
2018-04-11 09:29:54 -07:00
parent 80829aa0af
commit 4f8ab78ee2
4 changed files with 16 additions and 24 deletions
+11 -12
View File
@@ -82,7 +82,17 @@ class write_driver_array(design.design):
offset=br_pin.ll(),
width=br_pin.width(),
height=br_pin.height())
for n in ["vdd", "gnd"]:
pin_pos = self.driver_insts[i].get_pin(n).center()
# Add the M2->M3 stack
self.add_via_center(layers=("metal2", "via2", "metal3"),
offset=pin_pos)
self.add_layout_pin_rect_center(text=n,
layer="metal3",
offset=pin_pos)
self.add_layout_pin(text="en",
layer="metal1",
@@ -90,16 +100,5 @@ class write_driver_array(design.design):
width=self.width,
height=drc['minwidth_metal1'])
self.add_layout_pin(text="vdd",
layer="metal1",
offset=self.driver_insts[0].get_pin("vdd").ll().scale(0,1),
width=self.width,
height=drc['minwidth_metal1'])
self.add_layout_pin(text="gnd",
layer="metal1",
offset=self.driver_insts[0].get_pin("gnd").ll().scale(0,1),
width=self.width,
height=drc['minwidth_metal1'])