From d23aa9a1bdeedd99f87590fbb25fb18bab0b8877 Mon Sep 17 00:00:00 2001 From: Matt Guthaus Date: Fri, 26 Apr 2019 14:12:51 -0700 Subject: [PATCH] Use local setup.tcl and flatten bitcell arrays. --- compiler/verify/magic.py | 7 ++++--- technology/scn4m_subm/mag_lib/setup.tcl | 4 ++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/compiler/verify/magic.py b/compiler/verify/magic.py index 1ea03974..4799ce13 100644 --- a/compiler/verify/magic.py +++ b/compiler/verify/magic.py @@ -97,10 +97,11 @@ def write_netgen_script(cell_name, sp_name): global OPTS - setup_file = OPTS.openram_tech + "mag_lib/setup.tcl" - if os.path.exists(setup_file): + setup_file = "setup.tcl" + full_setup_file = OPTS.openram_tech + "mag_lib/" + setup_file + if os.path.exists(full_setup_file): # Copy setup.tcl file into temp dir - shutil.copy(setup_file, OPTS.openram_temp) + shutil.copy(full_setup_file, OPTS.openram_temp) else: setup_file = 'nosetup' diff --git a/technology/scn4m_subm/mag_lib/setup.tcl b/technology/scn4m_subm/mag_lib/setup.tcl index 1799e910..01639fe2 100644 --- a/technology/scn4m_subm/mag_lib/setup.tcl +++ b/technology/scn4m_subm/mag_lib/setup.tcl @@ -4,8 +4,8 @@ equate class {-circuit1 nfet} {-circuit2 n} equate class {-circuit1 pfet} {-circuit2 p} # This circuit has symmetries and needs to be flattened to resolve them # or the banks won't pass -#flatten class {-circuit1 bitcell_array_0} -#flatten class {-circuit1 bitcell_array_1} +flatten class {-circuit1 bitcell_array_0} +flatten class {-circuit1 bitcell_array_1} #flatten class {-circuit1 precharge_array_0} #flatten class {-circuit1 precharge_array_1} #flatten class {-circuit1 precharge_array_2}