mirror of https://github.com/VLSIDA/OpenRAM.git
sense_amp: Allow custom pin names
we don't want to propagate the sense amp's bl/br names out of the sense_amp_array. Thus the sense_amp_array gets them named as "bl"/"br" again. Signed-off-by: Bastian Koppelmann <kbastian@mail.uni-paderborn.de>
This commit is contained in:
parent
680dc6d2c7
commit
76256a2f1b
|
|
@ -120,7 +120,10 @@ class cell_properties():
|
||||||
'bl' : 'bl',
|
'bl' : 'bl',
|
||||||
'br' : 'br',
|
'br' : 'br',
|
||||||
'en' : 'en'})
|
'en' : 'en'})
|
||||||
|
self._sense_amp = _cell({'bl' : 'bl',
|
||||||
|
'br' : 'br',
|
||||||
|
'dout' : 'dout',
|
||||||
|
'en' : 'en'})
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def bitcell(self):
|
def bitcell(self):
|
||||||
|
|
@ -141,3 +144,7 @@ class cell_properties():
|
||||||
@property
|
@property
|
||||||
def write_driver(self):
|
def write_driver(self):
|
||||||
return self._write_driver
|
return self._write_driver
|
||||||
|
|
||||||
|
@property
|
||||||
|
def sense_amp(self):
|
||||||
|
return self._sense_amp
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,7 @@ import design
|
||||||
import debug
|
import debug
|
||||||
import utils
|
import utils
|
||||||
from tech import GDS,layer, parameter,drc
|
from tech import GDS,layer, parameter,drc
|
||||||
|
from tech import cell_properties as props
|
||||||
from globals import OPTS
|
from globals import OPTS
|
||||||
import logical_effort
|
import logical_effort
|
||||||
|
|
||||||
|
|
@ -19,8 +20,12 @@ class sense_amp(design.design):
|
||||||
the technology library.
|
the technology library.
|
||||||
Sense amplifier to read a pair of bit-lines.
|
Sense amplifier to read a pair of bit-lines.
|
||||||
"""
|
"""
|
||||||
|
pin_names = [props.sense_amp.pin.bl,
|
||||||
pin_names = ["bl", "br", "dout", "en", "vdd", "gnd"]
|
props.sense_amp.pin.br,
|
||||||
|
props.sense_amp.pin.dout,
|
||||||
|
props.sense_amp.pin.en,
|
||||||
|
props.sense_amp.pin.vdd,
|
||||||
|
props.sense_amp.pin.gnd]
|
||||||
type_list = ["INPUT", "INPUT", "OUTPUT", "INPUT", "POWER", "GROUND"]
|
type_list = ["INPUT", "INPUT", "OUTPUT", "INPUT", "POWER", "GROUND"]
|
||||||
if not OPTS.netlist_only:
|
if not OPTS.netlist_only:
|
||||||
(width,height) = utils.get_libcell_size("sense_amp", GDS["unit"], layer["boundary"])
|
(width,height) = utils.get_libcell_size("sense_amp", GDS["unit"], layer["boundary"])
|
||||||
|
|
@ -30,18 +35,18 @@ class sense_amp(design.design):
|
||||||
pin_map = []
|
pin_map = []
|
||||||
|
|
||||||
def get_bl_names(self):
|
def get_bl_names(self):
|
||||||
return "bl"
|
return props.sense_amp.pin.bl
|
||||||
|
|
||||||
def get_br_names(self):
|
def get_br_names(self):
|
||||||
return "br"
|
return props.sense_amp.pin.br
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def dout_name(self):
|
def dout_name(self):
|
||||||
return "dout"
|
return props.sense_amp.pin.dout
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def en_name(self):
|
def en_name(self):
|
||||||
return "en"
|
return props.sense_amp.pin.en
|
||||||
|
|
||||||
def __init__(self, name):
|
def __init__(self, name):
|
||||||
design.design.__init__(self, name)
|
design.design.__init__(self, name)
|
||||||
|
|
|
||||||
|
|
@ -34,11 +34,11 @@ class sense_amp_array(design.design):
|
||||||
self.create_layout()
|
self.create_layout()
|
||||||
|
|
||||||
def get_bl_name(self):
|
def get_bl_name(self):
|
||||||
bl_name = self.amp.get_bl_names()
|
bl_name = "bl"
|
||||||
return bl_name
|
return bl_name
|
||||||
|
|
||||||
def get_br_name(self):
|
def get_br_name(self):
|
||||||
br_name = self.amp.get_br_names()
|
br_name = "br"
|
||||||
return br_name
|
return br_name
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue