standalone char and func

This commit is contained in:
Bugra Onal
2022-12-13 07:53:58 -08:00
parent c6485277f3
commit db85e8ecd6
6 changed files with 84 additions and 54 deletions
+8 -3
View File
@@ -173,9 +173,14 @@ class sram():
# Characterize the design
start_time = datetime.datetime.now()
from characterizer import lib
debug.print_raw("LIB: Characterizing... ")
lib(out_dir=OPTS.output_path, sram=self.s, sp_file=self.get_sp_name())
from characterizer import delay
debug.print_raw("LIB: Writing Analysis File... ")
d = delay(self, self.get_sp_name(), ("TT", 5, 25))
if (self.sram.num_spare_rows == 0):
probe_address = "1" * self.sram.addr_size
else:
probe_address = "0" + "1" * (self.sram.addr_size - 1)
d.analysis_init(probe_address, probe_data)
print_time("Characterization", datetime.datetime.now(), start_time)
# Write the config file
-5
View File
@@ -39,11 +39,6 @@ class sram_config:
except ImportError:
self.array_col_multiple = 1
if self.write_size:
self.num_wmasks = int(ceil(self.word_size / self.write_size))
else:
self.num_wmasks = 0
if not self.num_spare_cols:
self.num_spare_cols = 0