From 34dd46c918a8effbd8dff525016c9726c0d51cd0 Mon Sep 17 00:00:00 2001 From: mrg Date: Fri, 17 Dec 2021 10:30:43 -0800 Subject: [PATCH] Exceptions for sky130 spare columns tests --- compiler/tests/18_port_data_test.py | 12 +++++++++++- compiler/tests/20_sram_1bank_nomux_test.py | 12 +++++++++++- 2 files changed, 22 insertions(+), 2 deletions(-) diff --git a/compiler/tests/18_port_data_test.py b/compiler/tests/18_port_data_test.py index 3b33466a..b9c7bcdb 100755 --- a/compiler/tests/18_port_data_test.py +++ b/compiler/tests/18_port_data_test.py @@ -13,6 +13,7 @@ from globals import OPTS from sram_factory import factory import debug + class port_data_test(openram_test): def runTest(self): @@ -20,8 +21,17 @@ class port_data_test(openram_test): globals.init_openram(config_file) from sram_config import sram_config + if OPTS.tech_name == "sky130": + num_spare_rows = 1 + num_spare_cols = 1 + else: + num_spare_rows = 0 + num_spare_cols = 0 + c = sram_config(word_size=4, - num_words=16) + num_words=16, + num_spare_cols=num_spare_cols, + num_spare_rows=num_spare_rows) c.words_per_row=1 factory.reset() diff --git a/compiler/tests/20_sram_1bank_nomux_test.py b/compiler/tests/20_sram_1bank_nomux_test.py index 098b8b12..7a13b28b 100755 --- a/compiler/tests/20_sram_1bank_nomux_test.py +++ b/compiler/tests/20_sram_1bank_nomux_test.py @@ -22,9 +22,19 @@ class sram_1bank_nomux_test(openram_test): config_file = "{}/tests/configs/config".format(os.getenv("OPENRAM_HOME")) globals.init_openram(config_file) from sram_config import sram_config + + if OPTS.tech_name == "sky130": + num_spare_rows = 1 + num_spare_cols = 1 + else: + num_spare_rows = 0 + num_spare_cols = 0 + c = sram_config(word_size=4, num_words=16, - num_banks=1) + num_banks=1, + num_spare_cols=num_spare_cols, + num_spare_rows=num_spare_rows) c.words_per_row=1 c.recompute_sizes()