mirror of https://github.com/VLSIDA/OpenRAM.git
Add layer and directions to pbitcell
This commit is contained in:
parent
4be075e586
commit
bdd334bce9
|
|
@ -33,6 +33,18 @@ class pbitcell(bitcell_base.bitcell_base):
|
|||
self.mirror = props.bitcell_1port.mirror
|
||||
self.end_caps = props.bitcell_1port.end_caps
|
||||
|
||||
self.wl_layer = "m1"
|
||||
self.wl_dir = "H"
|
||||
|
||||
self.bl_layer = "m2"
|
||||
self.bl_dir = "V"
|
||||
|
||||
self.vdd_layer = "m1"
|
||||
self.vdd_dir = "H"
|
||||
|
||||
self.gnd_layer = "m1"
|
||||
self.gnd_dir = "H"
|
||||
|
||||
bitcell_base.bitcell_base.__init__(self, name)
|
||||
fmt_str = "{0} rw ports, {1} w ports and {2} r ports"
|
||||
info_string = fmt_str.format(self.num_rw_ports,
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@
|
|||
|
||||
import debug
|
||||
from bitcell_base_array import bitcell_base_array
|
||||
from pbitcell import pbitcell
|
||||
from contact import contact
|
||||
from tech import drc, spice, preferred_directions
|
||||
from tech import cell_properties as props
|
||||
|
|
@ -490,6 +491,9 @@ class replica_bitcell_array(bitcell_base_array):
|
|||
|
||||
def route_supplies(self):
|
||||
|
||||
if OPTS.bitcell == "pbitcell":
|
||||
bitcell = factory.create(module_type="pbitcell")
|
||||
else:
|
||||
bitcell = getattr(props, "bitcell_{}port".format(OPTS.num_ports))
|
||||
|
||||
wl_layer = bitcell.wl_layer
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
import os
|
||||
from design_rules import *
|
||||
from module_type import *
|
||||
from custom_cell_properties import cell_properties, cell
|
||||
from custom_cell_properties import cell_properties
|
||||
from custom_layer_properties import layer_properties
|
||||
|
||||
"""
|
||||
|
|
|
|||
Loading…
Reference in New Issue