mirror of https://github.com/VLSIDA/OpenRAM.git
Add licon option to precharge
This commit is contained in:
parent
3e41664db6
commit
7956b63d9f
|
|
@ -73,11 +73,12 @@ class precharge_array(design.design):
|
||||||
|
|
||||||
def add_layout_pins(self):
|
def add_layout_pins(self):
|
||||||
|
|
||||||
|
en_bar_pin = self.pc_cell.get_pin("en_bar")
|
||||||
self.add_layout_pin(text="en_bar",
|
self.add_layout_pin(text="en_bar",
|
||||||
layer="m1",
|
layer=en_bar_pin.layer,
|
||||||
offset=self.pc_cell.get_pin("en_bar").ll(),
|
offset=en_bar_pin.ll(),
|
||||||
width=self.width,
|
width=self.width,
|
||||||
height=drc("minwidth_m1"))
|
height=en_bar_pin.height())
|
||||||
|
|
||||||
for inst in self.local_insts:
|
for inst in self.local_insts:
|
||||||
self.copy_layout_pin(inst, "vdd")
|
self.copy_layout_pin(inst, "vdd")
|
||||||
|
|
|
||||||
|
|
@ -198,6 +198,9 @@ class precharge(design.design):
|
||||||
if self.en_layer == "m2":
|
if self.en_layer == "m2":
|
||||||
self.add_via_center(layers=self.m1_stack,
|
self.add_via_center(layers=self.m1_stack,
|
||||||
offset=offset)
|
offset=offset)
|
||||||
|
if hasattr(self, "li_stack"):
|
||||||
|
self.add_via_center(layers=self.li_stack,
|
||||||
|
offset=offset)
|
||||||
|
|
||||||
# adds the en rail on metal1
|
# adds the en rail on metal1
|
||||||
self.add_layout_pin_segment_center(text="en_bar",
|
self.add_layout_pin_segment_center(text="en_bar",
|
||||||
|
|
@ -220,6 +223,9 @@ class precharge(design.design):
|
||||||
offset=self.well_contact_pos,
|
offset=self.well_contact_pos,
|
||||||
implant_type="n",
|
implant_type="n",
|
||||||
well_type="n")
|
well_type="n")
|
||||||
|
if hasattr(self, "li_stack"):
|
||||||
|
self.add_via_center(layers=self.li_stack,
|
||||||
|
offset=self.well_contact_pos)
|
||||||
|
|
||||||
self.height = self.well_contact_pos.y + contact.active_contact.height + self.m1_space
|
self.height = self.well_contact_pos.y + contact.active_contact.height + self.m1_space
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue