mirror of https://github.com/VLSIDA/OpenRAM.git
Merge branch 'dev' into multiport_characterization
This commit is contained in:
commit
7e67b741f6
|
|
@ -165,21 +165,25 @@ def setup_bitcell():
|
||||||
"""
|
"""
|
||||||
global OPTS
|
global OPTS
|
||||||
|
|
||||||
if (OPTS.num_rw_ports==1 and OPTS.num_w_ports==0 and OPTS.num_r_ports==0):
|
# If we have non-1rw ports,
|
||||||
OPTS.bitcell = "bitcell"
|
# and the user didn't over-ride the bitcell manually,
|
||||||
OPTS.replica_bitcell = "replica_bitcell"
|
# figure out the right bitcell to use
|
||||||
# If we have non-1rw ports, figure out the right bitcell to use
|
if (OPTS.bitcell=="bitcell" and OPTS.replica_bitcell=="replica_bitcell"):
|
||||||
else:
|
|
||||||
ports = ""
|
if (OPTS.num_rw_ports==1 and OPTS.num_w_ports==0 and OPTS.num_r_ports==0):
|
||||||
if OPTS.num_rw_ports>0:
|
OPTS.bitcell = "bitcell"
|
||||||
ports += "{}rw_".format(OPTS.num_rw_ports)
|
OPTS.replica_bitcell = "replica_bitcell"
|
||||||
if OPTS.num_w_ports>0:
|
else:
|
||||||
ports += "{}w_".format(OPTS.num_w_ports)
|
ports = ""
|
||||||
if OPTS.num_r_ports>0:
|
if OPTS.num_rw_ports>0:
|
||||||
ports += "{}r".format(OPTS.num_r_ports)
|
ports += "{}rw_".format(OPTS.num_rw_ports)
|
||||||
|
if OPTS.num_w_ports>0:
|
||||||
|
ports += "{}w_".format(OPTS.num_w_ports)
|
||||||
|
if OPTS.num_r_ports>0:
|
||||||
|
ports += "{}r".format(OPTS.num_r_ports)
|
||||||
|
|
||||||
OPTS.bitcell = "bitcell_"+ports
|
OPTS.bitcell = "bitcell_"+ports
|
||||||
OPTS.replica_bitcell = "replica_bitcell_"+ports
|
OPTS.replica_bitcell = "replica_bitcell_"+ports
|
||||||
|
|
||||||
# See if a custom bitcell exists
|
# See if a custom bitcell exists
|
||||||
from importlib import find_loader
|
from importlib import find_loader
|
||||||
|
|
@ -193,8 +197,8 @@ def setup_bitcell():
|
||||||
OPTS.replica_bitcell = "replica_pbitcell"
|
OPTS.replica_bitcell = "replica_pbitcell"
|
||||||
if not OPTS.is_unit_test:
|
if not OPTS.is_unit_test:
|
||||||
debug.warning("Using the parameterized bitcell which may have suboptimal density.")
|
debug.warning("Using the parameterized bitcell which may have suboptimal density.")
|
||||||
else:
|
|
||||||
debug.info(1,"Using custom bitcell: {}".format(OPTS.bitcell))
|
debug.info(1,"Using bitcell: {}".format(OPTS.bitcell))
|
||||||
|
|
||||||
|
|
||||||
def get_tool(tool_type, preferences, default_name=None):
|
def get_tool(tool_type, preferences, default_name=None):
|
||||||
|
|
|
||||||
|
|
@ -1,5 +0,0 @@
|
||||||
import pstats
|
|
||||||
p = pstats.Stats('profile.dat')
|
|
||||||
p.strip_dirs()
|
|
||||||
p.sort_stats('cumulative')
|
|
||||||
p.print_stats(50)
|
|
||||||
Loading…
Reference in New Issue