From 06cd2620f54c713637a31c314d69fe9d08403b14 Mon Sep 17 00:00:00 2001 From: samuelkcrow Date: Thu, 14 Apr 2022 10:04:07 -0700 Subject: [PATCH] force netlist only mode in memchar memfunc, rename char and func scripts, add description for func script --- compiler/{characterize_existing.py => memchar.py} | 2 ++ compiler/{func_sim_existing.py => memfunc.py} | 10 ++++++---- 2 files changed, 8 insertions(+), 4 deletions(-) rename compiler/{characterize_existing.py => memchar.py} (98%) rename compiler/{func_sim_existing.py => memfunc.py} (86%) diff --git a/compiler/characterize_existing.py b/compiler/memchar.py similarity index 98% rename from compiler/characterize_existing.py rename to compiler/memchar.py index 73a7c235..d824e5a6 100755 --- a/compiler/characterize_existing.py +++ b/compiler/memchar.py @@ -46,6 +46,8 @@ c = sram_config(word_size=OPTS.word_size, num_spare_rows=OPTS.num_spare_rows, num_spare_cols=OPTS.num_spare_cols) +OPTS.netlist_only = True + # Initialize and create the sram object from sram import sram s = sram(name=OPTS.output_name, sram_config=c) diff --git a/compiler/func_sim_existing.py b/compiler/memfunc.py similarity index 86% rename from compiler/func_sim_existing.py rename to compiler/memfunc.py index 7616fc81..7d8ed83e 100755 --- a/compiler/func_sim_existing.py +++ b/compiler/memfunc.py @@ -7,10 +7,10 @@ # All rights reserved. # """ -This script will characterize an SRAM previously generated by OpenRAM given a -configuration file. Configuration option "use_pex" determines whether extracted -or generated spice is used and option "analytical_delay" determines whether -an analytical model or spice simulation is used for characterization. +This script will functionally simulate an SRAM previously generated by OpenRAM +given a configuration file. Configuration option "use_pex" determines whether +extracted or generated spice is used. Command line arguments dictate the +number of cycles and period to be simulated. """ import sys @@ -51,6 +51,8 @@ c = sram_config(word_size=OPTS.word_size, num_spare_rows=OPTS.num_spare_rows, num_spare_cols=OPTS.num_spare_cols) +OPTS.netlist_only = True + # Initialize and create the sram object from sram import sram s = sram(name=OPTS.output_name, sram_config=c)