From da6aa161dee14095eb680dec666cb7de2db963fb Mon Sep 17 00:00:00 2001 From: Matt Guthaus Date: Thu, 28 Feb 2019 09:12:32 -0800 Subject: [PATCH] Don't autodetect the bitcell if the user overrides it --- compiler/globals.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/compiler/globals.py b/compiler/globals.py index 73cd3747..631508f9 100644 --- a/compiler/globals.py +++ b/compiler/globals.py @@ -168,8 +168,10 @@ def setup_bitcell(): if (OPTS.num_rw_ports==1 and OPTS.num_w_ports==0 and OPTS.num_r_ports==0): OPTS.bitcell = "bitcell" OPTS.replica_bitcell = "replica_bitcell" - # If we have non-1rw ports, figure out the right bitcell to use - else: + # If we have non-1rw ports, + # and the user didn't over-ride the bitcell manually, + # figure out the right bitcell to use + elsif (OPTs.bitcell=="bitcell" and OPTS.replica_bitcell=="replica_bitcell"): ports = "" if OPTS.num_rw_ports>0: ports += "{}rw_".format(OPTS.num_rw_ports)