2019-04-26 21:21:50 +02:00
|
|
|
# See LICENSE for licensing information.
|
|
|
|
|
#
|
2019-06-14 17:43:41 +02:00
|
|
|
# Copyright (c) 2016-2019 Regents of the University of California and The Board
|
|
|
|
|
# of Regents for the Oklahoma Agricultural and Mechanical College
|
|
|
|
|
# (acting for and on behalf of Oklahoma State University)
|
|
|
|
|
# All rights reserved.
|
2019-04-26 21:21:50 +02:00
|
|
|
#
|
2017-12-12 23:53:19 +01:00
|
|
|
import contact
|
2019-04-26 21:15:05 +02:00
|
|
|
import design
|
2016-11-08 18:57:35 +01:00
|
|
|
import debug
|
2020-02-06 17:20:09 +01:00
|
|
|
from tech import parameter
|
2016-11-08 18:57:35 +01:00
|
|
|
from vector import vector
|
|
|
|
|
from globals import OPTS
|
2019-01-17 01:15:38 +01:00
|
|
|
from sram_factory import factory
|
2020-03-04 23:23:05 +01:00
|
|
|
from tech import drc
|
2019-10-06 19:30:16 +02:00
|
|
|
|
2020-03-05 02:39:11 +01:00
|
|
|
|
2019-04-26 21:15:05 +02:00
|
|
|
class precharge(design.design):
|
2016-11-08 18:57:35 +01:00
|
|
|
"""
|
|
|
|
|
Creates a single precharge cell
|
|
|
|
|
This module implements the precharge bitline cell used in the design.
|
|
|
|
|
"""
|
2018-08-19 00:27:07 +02:00
|
|
|
def __init__(self, name, size=1, bitcell_bl="bl", bitcell_br="br"):
|
2019-04-26 20:57:29 +02:00
|
|
|
|
|
|
|
|
debug.info(2, "creating precharge cell {0}".format(name))
|
2019-04-26 21:15:05 +02:00
|
|
|
design.design.__init__(self, name)
|
2016-11-08 18:57:35 +01:00
|
|
|
|
2019-01-17 01:15:38 +01:00
|
|
|
self.bitcell = factory.create(module_type="bitcell")
|
2017-12-12 23:53:19 +01:00
|
|
|
self.beta = parameter["beta"]
|
2019-10-06 19:30:16 +02:00
|
|
|
self.ptx_width = self.beta * parameter["min_tx_size"]
|
2017-08-24 00:02:15 +02:00
|
|
|
self.width = self.bitcell.width
|
2018-08-19 00:27:07 +02:00
|
|
|
self.bitcell_bl = bitcell_bl
|
|
|
|
|
self.bitcell_br = bitcell_br
|
2020-03-04 23:23:05 +01:00
|
|
|
self.bitcell_bl_pin =self.bitcell.get_pin(self.bitcell_bl)
|
|
|
|
|
self.bitcell_br_pin =self.bitcell.get_pin(self.bitcell_br)
|
2020-03-05 02:39:11 +01:00
|
|
|
|
|
|
|
|
if self.bitcell_bl_pin.layer == "m1":
|
|
|
|
|
self.bitline_layer = "m1"
|
|
|
|
|
self.en_layer = "m2"
|
|
|
|
|
else:
|
|
|
|
|
self.bitline_layer = "m2"
|
|
|
|
|
self.en_layer = "m1"
|
|
|
|
|
|
2019-04-26 21:15:05 +02:00
|
|
|
# Creates the netlist and layout
|
|
|
|
|
# Since it has variable height, it is not a pgate.
|
|
|
|
|
self.create_netlist()
|
2019-10-06 19:30:16 +02:00
|
|
|
if not OPTS.netlist_only:
|
2019-04-26 21:15:05 +02:00
|
|
|
self.create_layout()
|
|
|
|
|
self.DRC_LVS()
|
2016-11-08 18:57:35 +01:00
|
|
|
|
2020-02-12 13:19:41 +01:00
|
|
|
def get_bl_names(self):
|
|
|
|
|
return "bl"
|
|
|
|
|
|
|
|
|
|
def get_br_names(self):
|
|
|
|
|
return "br"
|
|
|
|
|
|
2018-08-27 23:18:32 +02:00
|
|
|
def create_netlist(self):
|
|
|
|
|
self.add_pins()
|
2018-08-28 01:42:48 +02:00
|
|
|
self.add_ptx()
|
|
|
|
|
self.create_ptx()
|
2018-08-27 23:18:32 +02:00
|
|
|
|
2016-11-08 18:57:35 +01:00
|
|
|
def create_layout(self):
|
2020-03-04 23:23:05 +01:00
|
|
|
|
2018-08-28 01:42:48 +02:00
|
|
|
self.place_ptx()
|
2016-11-08 18:57:35 +01:00
|
|
|
self.connect_poly()
|
2018-08-28 01:42:48 +02:00
|
|
|
self.route_en()
|
|
|
|
|
self.place_nwell_and_contact()
|
|
|
|
|
self.route_vdd_rail()
|
|
|
|
|
self.route_bitlines()
|
2016-11-08 18:57:35 +01:00
|
|
|
self.connect_to_bitlines()
|
|
|
|
|
|
2018-08-28 01:42:48 +02:00
|
|
|
def add_pins(self):
|
2019-10-06 19:30:16 +02:00
|
|
|
self.add_pin_list(["bl", "br", "en_bar", "vdd"],
|
|
|
|
|
["OUTPUT", "OUTPUT", "INPUT", "POWER"])
|
2018-08-28 01:42:48 +02:00
|
|
|
|
|
|
|
|
def add_ptx(self):
|
2018-11-07 23:52:03 +01:00
|
|
|
"""
|
|
|
|
|
Initializes the upper and lower pmos
|
|
|
|
|
"""
|
2019-01-17 01:30:31 +01:00
|
|
|
self.pmos = factory.create(module_type="ptx",
|
|
|
|
|
width=self.ptx_width,
|
|
|
|
|
tx_type="pmos")
|
2017-12-12 23:53:19 +01:00
|
|
|
self.add_mod(self.pmos)
|
|
|
|
|
|
2018-08-28 01:42:48 +02:00
|
|
|
def route_vdd_rail(self):
|
2018-11-07 23:52:03 +01:00
|
|
|
"""
|
|
|
|
|
Adds a vdd rail at the top of the cell
|
|
|
|
|
"""
|
2018-08-28 01:42:48 +02:00
|
|
|
|
2018-11-09 18:11:00 +01:00
|
|
|
# Adds the rail across the width of the cell
|
2019-10-06 19:30:16 +02:00
|
|
|
vdd_position = vector(0.5 * self.width, self.height)
|
2020-03-05 02:39:11 +01:00
|
|
|
layer_width = drc("minwidth_" + self.en_layer)
|
|
|
|
|
self.add_rect_center(layer=self.en_layer,
|
2018-11-09 18:11:00 +01:00
|
|
|
offset=vdd_position,
|
|
|
|
|
width=self.width,
|
2020-03-05 02:39:11 +01:00
|
|
|
height=layer_width)
|
2016-11-08 18:57:35 +01:00
|
|
|
|
2018-04-04 22:34:56 +02:00
|
|
|
pmos_pin = self.upper_pmos2_inst.get_pin("S")
|
2020-03-26 19:49:32 +01:00
|
|
|
|
2018-04-04 22:34:56 +02:00
|
|
|
# center of vdd rail
|
2018-11-09 18:11:00 +01:00
|
|
|
pmos_vdd_pos = vector(pmos_pin.cx(), vdd_position.y)
|
2019-12-17 20:03:36 +01:00
|
|
|
self.add_path("m1", [pmos_pin.uc(), pmos_vdd_pos])
|
2020-03-26 19:49:32 +01:00
|
|
|
|
|
|
|
|
# if enable is not on M1, the supply can be
|
2020-03-05 02:39:11 +01:00
|
|
|
if self.en_layer != "m1":
|
|
|
|
|
self.add_via_center(layers=self.m1_stack,
|
|
|
|
|
offset=pmos_vdd_pos)
|
|
|
|
|
|
2020-03-26 19:49:32 +01:00
|
|
|
self.add_power_pin("vdd",
|
|
|
|
|
self.well_contact_pos,
|
|
|
|
|
vertical=True)
|
2020-03-05 02:39:11 +01:00
|
|
|
|
2020-03-26 19:49:32 +01:00
|
|
|
# Hack for li layers
|
2020-04-01 18:42:07 +02:00
|
|
|
if hasattr(self, "li_stack"):
|
2020-03-26 19:49:32 +01:00
|
|
|
self.add_via_center(layers=self.li_stack,
|
|
|
|
|
offset=self.well_contact_pos)
|
2018-04-04 22:34:56 +02:00
|
|
|
|
2018-08-28 01:42:48 +02:00
|
|
|
def create_ptx(self):
|
2018-11-07 23:52:03 +01:00
|
|
|
"""
|
|
|
|
|
Create both the upper_pmos and lower_pmos to the module
|
|
|
|
|
"""
|
2018-08-28 01:42:48 +02:00
|
|
|
|
2019-10-06 19:30:16 +02:00
|
|
|
self.lower_pmos_inst = self.add_inst(name="lower_pmos",
|
|
|
|
|
mod=self.pmos)
|
2018-11-27 23:17:55 +01:00
|
|
|
self.connect_inst(["bl", "en_bar", "br", "vdd"])
|
2018-08-28 01:42:48 +02:00
|
|
|
|
2019-10-06 19:30:16 +02:00
|
|
|
self.upper_pmos1_inst = self.add_inst(name="upper_pmos1",
|
|
|
|
|
mod=self.pmos)
|
2018-11-27 23:17:55 +01:00
|
|
|
self.connect_inst(["bl", "en_bar", "vdd", "vdd"])
|
2018-08-28 01:42:48 +02:00
|
|
|
|
2019-10-06 19:30:16 +02:00
|
|
|
self.upper_pmos2_inst = self.add_inst(name="upper_pmos2",
|
|
|
|
|
mod=self.pmos)
|
2018-11-27 23:17:55 +01:00
|
|
|
self.connect_inst(["br", "en_bar", "vdd", "vdd"])
|
2018-08-28 01:42:48 +02:00
|
|
|
|
|
|
|
|
def place_ptx(self):
|
2018-11-07 23:52:03 +01:00
|
|
|
"""
|
|
|
|
|
Place both the upper_pmos and lower_pmos to the module
|
|
|
|
|
"""
|
2018-08-28 01:42:48 +02:00
|
|
|
|
2020-03-05 02:39:11 +01:00
|
|
|
# reserve some offset to jog the bitlines
|
|
|
|
|
self.initial_yoffset = self.pmos.active_offset.y + self.m2_pitch
|
2019-10-06 19:30:16 +02:00
|
|
|
# Compute the other pmos2 location,
|
|
|
|
|
# but determining offset to overlap the source and drain pins
|
2018-11-09 19:26:15 +01:00
|
|
|
overlap_offset = self.pmos.get_pin("D").ll() - self.pmos.get_pin("S").ll()
|
|
|
|
|
# This is how much the contact is placed inside the ptx active
|
|
|
|
|
contact_xdiff = self.pmos.get_pin("S").lx()
|
2018-08-28 01:42:48 +02:00
|
|
|
|
2016-11-08 18:57:35 +01:00
|
|
|
# adds the lower pmos to layout
|
2020-03-04 23:23:05 +01:00
|
|
|
bl_xoffset = self.bitcell_bl_pin.lx()
|
2019-10-06 19:30:16 +02:00
|
|
|
self.lower_pmos_position = vector(max(bl_xoffset - contact_xdiff,
|
2020-01-23 20:43:41 +01:00
|
|
|
self.nwell_enclose_active),
|
2020-03-05 02:39:11 +01:00
|
|
|
self.initial_yoffset)
|
2018-08-28 02:25:39 +02:00
|
|
|
self.lower_pmos_inst.place(self.lower_pmos_position)
|
2016-11-08 18:57:35 +01:00
|
|
|
|
2020-03-05 02:39:11 +01:00
|
|
|
# adds the upper pmos(s) to layout with 2 M2 tracks
|
|
|
|
|
ydiff = self.pmos.height + self.m2_pitch
|
2017-12-12 23:53:19 +01:00
|
|
|
self.upper_pmos1_pos = self.lower_pmos_position + vector(0, ydiff)
|
2018-08-28 02:25:39 +02:00
|
|
|
self.upper_pmos1_inst.place(self.upper_pmos1_pos)
|
2016-11-08 18:57:35 +01:00
|
|
|
|
2020-03-04 23:23:05 +01:00
|
|
|
# Second pmos to the right of the first
|
2018-11-09 19:26:15 +01:00
|
|
|
upper_pmos2_pos = self.upper_pmos1_pos + overlap_offset
|
2018-08-28 02:25:39 +02:00
|
|
|
self.upper_pmos2_inst.place(upper_pmos2_pos)
|
2018-08-28 01:42:48 +02:00
|
|
|
|
2016-11-08 18:57:35 +01:00
|
|
|
def connect_poly(self):
|
2018-11-07 23:52:03 +01:00
|
|
|
"""
|
|
|
|
|
Connects the upper and lower pmos together
|
|
|
|
|
"""
|
2017-12-12 23:53:19 +01:00
|
|
|
|
2020-04-01 18:42:07 +02:00
|
|
|
offset = self.lower_pmos_inst.get_pin("G").ul()
|
2016-11-08 18:57:35 +01:00
|
|
|
# connects the top and bottom pmos' gates together
|
2017-12-12 23:53:19 +01:00
|
|
|
ylength = self.upper_pmos1_inst.get_pin("G").ll().y - offset.y
|
2016-11-08 18:57:35 +01:00
|
|
|
self.add_rect(layer="poly",
|
|
|
|
|
offset=offset,
|
2017-12-12 23:53:19 +01:00
|
|
|
width=self.poly_width,
|
2016-11-08 18:57:35 +01:00
|
|
|
height=ylength)
|
|
|
|
|
|
|
|
|
|
# connects the two poly for the two upper pmos(s)
|
2017-12-12 23:53:19 +01:00
|
|
|
offset = offset + vector(0, ylength - self.poly_width)
|
2019-10-06 19:30:16 +02:00
|
|
|
xlength = self.upper_pmos2_inst.get_pin("G").lx() \
|
|
|
|
|
- self.upper_pmos1_inst.get_pin("G").lx() \
|
|
|
|
|
+ self.poly_width
|
2016-11-08 18:57:35 +01:00
|
|
|
self.add_rect(layer="poly",
|
|
|
|
|
offset=offset,
|
|
|
|
|
width=xlength,
|
2017-12-12 23:53:19 +01:00
|
|
|
height=self.poly_width)
|
2016-11-08 18:57:35 +01:00
|
|
|
|
2018-08-28 01:42:48 +02:00
|
|
|
def route_en(self):
|
2018-11-07 23:52:03 +01:00
|
|
|
"""
|
|
|
|
|
Adds the en input rail, en contact/vias, and connects to the pmos
|
|
|
|
|
"""
|
2020-03-04 23:23:05 +01:00
|
|
|
|
2020-03-05 02:39:11 +01:00
|
|
|
# adds the en contact to connect the gates to the en rail
|
|
|
|
|
# midway in the 4 M2 tracks
|
2019-10-06 19:30:16 +02:00
|
|
|
offset = self.lower_pmos_inst.get_pin("G").ul() \
|
2020-03-05 02:39:11 +01:00
|
|
|
+ vector(0, 0.5 * self.m2_pitch)
|
2019-12-13 23:13:41 +01:00
|
|
|
self.add_via_center(layers=self.poly_stack,
|
2019-04-01 23:23:47 +02:00
|
|
|
offset=offset)
|
2020-03-05 02:39:11 +01:00
|
|
|
if self.en_layer == "m2":
|
2020-03-04 23:23:05 +01:00
|
|
|
self.add_via_center(layers=self.m1_stack,
|
|
|
|
|
offset=offset)
|
2020-04-01 20:26:45 +02:00
|
|
|
if hasattr(self, "li_stack"):
|
|
|
|
|
self.add_via_center(layers=self.li_stack,
|
|
|
|
|
offset=offset)
|
2020-03-04 23:23:05 +01:00
|
|
|
|
2018-02-13 00:32:47 +01:00
|
|
|
# adds the en rail on metal1
|
2018-11-27 23:17:55 +01:00
|
|
|
self.add_layout_pin_segment_center(text="en_bar",
|
2020-03-05 02:39:11 +01:00
|
|
|
layer=self.en_layer,
|
2019-10-06 19:30:16 +02:00
|
|
|
start=offset.scale(0, 1),
|
|
|
|
|
end=offset.scale(0, 1) + vector(self.width, 0))
|
2016-11-08 18:57:35 +01:00
|
|
|
|
2018-08-28 01:42:48 +02:00
|
|
|
def place_nwell_and_contact(self):
|
2018-11-07 23:52:03 +01:00
|
|
|
"""
|
|
|
|
|
Adds a nwell tap to connect to the vdd rail
|
|
|
|
|
"""
|
|
|
|
|
|
2016-11-08 18:57:35 +01:00
|
|
|
# adds the contact from active to metal1
|
2020-03-26 19:49:32 +01:00
|
|
|
offset_height = self.upper_pmos1_inst.uy() + \
|
|
|
|
|
0.5 * contact.active_contact.height + \
|
|
|
|
|
self.nwell_extend_active
|
|
|
|
|
self.well_contact_pos = self.upper_pmos1_inst.get_pin("D").center().scale(1, 0) + \
|
|
|
|
|
vector(0, offset_height)
|
2019-12-13 23:56:14 +01:00
|
|
|
self.add_via_center(layers=self.active_stack,
|
2020-03-05 02:39:11 +01:00
|
|
|
offset=self.well_contact_pos,
|
2019-04-01 23:23:47 +02:00
|
|
|
implant_type="n",
|
|
|
|
|
well_type="n")
|
2020-04-01 20:26:45 +02:00
|
|
|
if hasattr(self, "li_stack"):
|
|
|
|
|
self.add_via_center(layers=self.li_stack,
|
|
|
|
|
offset=self.well_contact_pos)
|
2016-11-08 18:57:35 +01:00
|
|
|
|
2020-03-05 02:39:11 +01:00
|
|
|
self.height = self.well_contact_pos.y + contact.active_contact.height + self.m1_space
|
2017-12-12 23:53:19 +01:00
|
|
|
|
2018-11-07 23:52:03 +01:00
|
|
|
# nwell should span the whole design since it is pmos only
|
2016-11-08 18:57:35 +01:00
|
|
|
self.add_rect(layer="nwell",
|
2019-10-06 19:30:16 +02:00
|
|
|
offset=vector(0, 0),
|
2016-11-08 18:57:35 +01:00
|
|
|
width=self.width,
|
|
|
|
|
height=self.height)
|
|
|
|
|
|
2018-08-28 01:42:48 +02:00
|
|
|
def route_bitlines(self):
|
2018-11-07 23:52:03 +01:00
|
|
|
"""
|
|
|
|
|
Adds both bit-line and bit-line-bar to the module
|
|
|
|
|
"""
|
2020-03-05 02:39:11 +01:00
|
|
|
layer_width = drc("minwidth_" + self.bitline_layer)
|
|
|
|
|
layer_space = drc("{0}_to_{0}".format(self.bitline_layer))
|
|
|
|
|
|
|
|
|
|
# adds the BL
|
|
|
|
|
self.bl_xoffset = layer_space + 0.5 * layer_width
|
|
|
|
|
top_pos = vector(self.bl_xoffset, self.height)
|
2020-03-05 21:10:13 +01:00
|
|
|
pin_pos = vector(self.bl_xoffset, 0)
|
|
|
|
|
self.add_path(self.bitline_layer, [top_pos, pin_pos])
|
2020-03-05 02:39:11 +01:00
|
|
|
self.bl_pin = self.add_layout_pin_segment_center(text="bl",
|
|
|
|
|
layer=self.bitline_layer,
|
|
|
|
|
start=pin_pos,
|
2020-03-05 21:10:13 +01:00
|
|
|
end=top_pos)
|
2020-03-05 02:39:11 +01:00
|
|
|
|
|
|
|
|
# adds the BR
|
|
|
|
|
self.br_xoffset = self.width - layer_space - 0.5 * layer_width
|
|
|
|
|
top_pos = vector(self.br_xoffset, self.height)
|
2020-03-05 21:10:13 +01:00
|
|
|
pin_pos = vector(self.br_xoffset, 0)
|
|
|
|
|
self.add_path(self.bitline_layer, [top_pos, pin_pos])
|
2020-03-05 02:39:11 +01:00
|
|
|
self.br_pin = self.add_layout_pin_segment_center(text="br",
|
|
|
|
|
layer=self.bitline_layer,
|
|
|
|
|
start=pin_pos,
|
2020-03-05 21:10:13 +01:00
|
|
|
end=top_pos)
|
2016-11-08 18:57:35 +01:00
|
|
|
|
|
|
|
|
def connect_to_bitlines(self):
|
2018-11-07 23:52:03 +01:00
|
|
|
"""
|
|
|
|
|
Connect the bitlines to the devices
|
|
|
|
|
"""
|
2016-11-08 18:57:35 +01:00
|
|
|
self.add_bitline_contacts()
|
2020-03-05 02:39:11 +01:00
|
|
|
self.connect_pmos(self.lower_pmos_inst.get_pin("S"),
|
|
|
|
|
self.bl_xoffset)
|
|
|
|
|
self.connect_pmos(self.lower_pmos_inst.get_pin("D"),
|
|
|
|
|
self.br_xoffset)
|
2020-03-04 23:23:05 +01:00
|
|
|
|
2020-03-05 02:39:11 +01:00
|
|
|
self.connect_pmos(self.upper_pmos1_inst.get_pin("S"),
|
|
|
|
|
self.bl_xoffset)
|
|
|
|
|
self.connect_pmos(self.upper_pmos2_inst.get_pin("D"),
|
|
|
|
|
self.br_xoffset)
|
2016-11-08 18:57:35 +01:00
|
|
|
|
|
|
|
|
def add_bitline_contacts(self):
|
2018-11-07 23:52:03 +01:00
|
|
|
"""
|
|
|
|
|
Adds contacts/via from metal1 to metal2 for bit-lines
|
|
|
|
|
"""
|
2016-11-08 18:57:35 +01:00
|
|
|
|
2020-03-05 02:39:11 +01:00
|
|
|
# No contacts needed if M1
|
|
|
|
|
if self.bitline_layer == "m1":
|
|
|
|
|
return
|
2018-11-09 18:11:00 +01:00
|
|
|
|
2020-03-04 23:23:05 +01:00
|
|
|
# BL
|
|
|
|
|
lower_pin = self.lower_pmos_inst.get_pin("S")
|
|
|
|
|
self.lower_via = self.add_via_center(layers=self.m1_stack,
|
|
|
|
|
offset=lower_pin.center(),
|
2019-10-06 19:30:16 +02:00
|
|
|
directions=("V", "V"))
|
2017-12-12 23:53:19 +01:00
|
|
|
|
2020-03-04 23:23:05 +01:00
|
|
|
lower_pin = self.lower_pmos_inst.get_pin("D")
|
|
|
|
|
self.lower_via = self.add_via_center(layers=self.m1_stack,
|
|
|
|
|
offset=lower_pin.center(),
|
|
|
|
|
directions=("V", "V"))
|
|
|
|
|
|
|
|
|
|
# BR
|
|
|
|
|
upper_pin = self.upper_pmos1_inst.get_pin("S")
|
|
|
|
|
self.upper_via2 = self.add_via_center(layers=self.m1_stack,
|
|
|
|
|
offset=upper_pin.center(),
|
|
|
|
|
directions=("V", "V"))
|
2017-12-12 23:53:19 +01:00
|
|
|
|
2020-03-04 23:23:05 +01:00
|
|
|
upper_pin = self.upper_pmos2_inst.get_pin("D")
|
|
|
|
|
self.upper_via2 = self.add_via_center(layers=self.m1_stack,
|
|
|
|
|
offset=upper_pin.center(),
|
|
|
|
|
directions=("V", "V"))
|
2017-12-12 23:53:19 +01:00
|
|
|
|
2020-03-05 02:39:11 +01:00
|
|
|
def connect_pmos(self, pmos_pin, bit_xoffset):
|
2019-10-06 19:30:16 +02:00
|
|
|
"""
|
|
|
|
|
Connect a pmos pin to bitline pin
|
2018-11-09 18:11:00 +01:00
|
|
|
"""
|
2017-12-12 23:53:19 +01:00
|
|
|
|
2020-03-05 02:39:11 +01:00
|
|
|
left_pos = vector(min(pmos_pin.cx(), bit_xoffset), pmos_pin.cy())
|
|
|
|
|
right_pos = vector(max(pmos_pin.cx(), bit_xoffset), pmos_pin.cy())
|
2017-12-12 23:53:19 +01:00
|
|
|
|
2020-03-05 02:39:11 +01:00
|
|
|
self.add_path(self.bitline_layer,
|
|
|
|
|
[left_pos, right_pos],
|
|
|
|
|
width=pmos_pin.height())
|
2017-12-12 23:53:19 +01:00
|
|
|
|
2018-11-09 05:47:34 +01:00
|
|
|
def get_en_cin(self):
|
2019-10-06 19:30:16 +02:00
|
|
|
"""Get the relative capacitance of the enable in the precharge cell"""
|
|
|
|
|
# The enable connect to three pmos gates
|
|
|
|
|
# They all use the same size pmos.
|
2018-11-09 05:47:34 +01:00
|
|
|
pmos_cin = self.pmos.get_cin()
|
2019-10-06 19:30:16 +02:00
|
|
|
return 3 * pmos_cin
|
2019-01-17 01:15:38 +01:00
|
|
|
|