From 8a67626e55ed90b4a1c02e4f6fdf33c1f459b94c Mon Sep 17 00:00:00 2001 From: Bugra Onal Date: Tue, 13 Dec 2022 08:32:44 -0800 Subject: [PATCH] add back the characterizer to save function --- compiler/modules/sram.py | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/compiler/modules/sram.py b/compiler/modules/sram.py index 4b083fcb..039a46d3 100644 --- a/compiler/modules/sram.py +++ b/compiler/modules/sram.py @@ -173,14 +173,9 @@ class sram(): # Characterize the design start_time = datetime.datetime.now() - 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) + from openram.characterizer import lib + debug.print_raw("LIB: Characterizing... ") + lib(out_dir=OPTS.output_path, sram=self.s, sp_file=self.get_sp_name()) print_time("Characterization", datetime.datetime.now(), start_time) # Write the config file