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.mirror = props.bitcell_1port.mirror
|
||||||
self.end_caps = props.bitcell_1port.end_caps
|
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)
|
bitcell_base.bitcell_base.__init__(self, name)
|
||||||
fmt_str = "{0} rw ports, {1} w ports and {2} r ports"
|
fmt_str = "{0} rw ports, {1} w ports and {2} r ports"
|
||||||
info_string = fmt_str.format(self.num_rw_ports,
|
info_string = fmt_str.format(self.num_rw_ports,
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,7 @@
|
||||||
|
|
||||||
import debug
|
import debug
|
||||||
from bitcell_base_array import bitcell_base_array
|
from bitcell_base_array import bitcell_base_array
|
||||||
|
from pbitcell import pbitcell
|
||||||
from contact import contact
|
from contact import contact
|
||||||
from tech import drc, spice, preferred_directions
|
from tech import drc, spice, preferred_directions
|
||||||
from tech import cell_properties as props
|
from tech import cell_properties as props
|
||||||
|
|
@ -490,7 +491,10 @@ class replica_bitcell_array(bitcell_base_array):
|
||||||
|
|
||||||
def route_supplies(self):
|
def route_supplies(self):
|
||||||
|
|
||||||
bitcell = getattr(props, "bitcell_{}port".format(OPTS.num_ports))
|
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
|
wl_layer = bitcell.wl_layer
|
||||||
wl_dir = bitcell.wl_dir
|
wl_dir = bitcell.wl_dir
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@
|
||||||
import os
|
import os
|
||||||
from design_rules import *
|
from design_rules import *
|
||||||
from module_type 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
|
from custom_layer_properties import layer_properties
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue