From ba651d53aedf0a7d25df927a1246779730e6ac92 Mon Sep 17 00:00:00 2001 From: Matt Guthaus Date: Wed, 5 Sep 2018 10:59:41 -0700 Subject: [PATCH] Change options in pbitcell test to be global again. --- compiler/tests/04_pbitcell_test.py | 60 +++++++++++++++--------------- 1 file changed, 30 insertions(+), 30 deletions(-) diff --git a/compiler/tests/04_pbitcell_test.py b/compiler/tests/04_pbitcell_test.py index 70f51a99..0b6bd8f5 100755 --- a/compiler/tests/04_pbitcell_test.py +++ b/compiler/tests/04_pbitcell_test.py @@ -20,72 +20,72 @@ class pbitcell_test(openram_test): globals.init_openram("config_20_{0}".format(OPTS.tech_name)) from pbitcell import pbitcell import tech - OPTS.sram_config.num_rw_ports=1 - OPTS.sram_config.num_w_ports=1 - OPTS.sram_config.num_r_ports=1 + OPTS.num_rw_ports=1 + OPTS.num_w_ports=1 + OPTS.num_r_ports=1 debug.info(2, "Bitcell with 1 of each port: read/write, write, and read") tx = pbitcell() self.local_check(tx) - OPTS.sram_config.num_rw_ports=0 - OPTS.sram_config.num_w_ports=1 - OPTS.sram_config.num_r_ports=1 + OPTS.num_rw_ports=0 + OPTS.num_w_ports=1 + OPTS.num_r_ports=1 debug.info(2, "Bitcell with 0 read/write ports") tx = pbitcell() self.local_check(tx) - OPTS.sram_config.num_rw_ports=1 - OPTS.sram_config.num_w_ports=0 - OPTS.sram_config.num_r_ports=1 + OPTS.num_rw_ports=1 + OPTS.num_w_ports=0 + OPTS.num_r_ports=1 debug.info(2, "Bitcell with 0 write ports") tx = pbitcell() self.local_check(tx) - OPTS.sram_config.num_rw_ports=1 - OPTS.sram_config.num_w_ports=1 - OPTS.sram_config.num_r_ports=0 + OPTS.num_rw_ports=1 + OPTS.num_w_ports=1 + OPTS.num_r_ports=0 debug.info(2, "Bitcell with 0 read ports") tx = pbitcell() self.local_check(tx) - OPTS.sram_config.num_rw_ports=1 - OPTS.sram_config.num_w_ports=0 - OPTS.sram_config.num_r_ports=0 + OPTS.num_rw_ports=1 + OPTS.num_w_ports=0 + OPTS.num_r_ports=0 debug.info(2, "Bitcell with 0 read ports and 0 write ports") tx = pbitcell() self.local_check(tx) - OPTS.sram_config.num_rw_ports=2 - OPTS.sram_config.num_w_ports=2 - OPTS.sram_config.num_r_ports=2 + OPTS.num_rw_ports=2 + OPTS.num_w_ports=2 + OPTS.num_r_ports=2 debug.info(2, "Bitcell with 2 of each port: read/write, write, and read") tx = pbitcell() self.local_check(tx) - OPTS.sram_config.num_rw_ports=0 - OPTS.sram_config.num_w_ports=2 - OPTS.sram_config.num_r_ports=2 + OPTS.num_rw_ports=0 + OPTS.num_w_ports=2 + OPTS.num_r_ports=2 debug.info(2, "Bitcell with 0 read/write ports") tx = pbitcell() self.local_check(tx) - OPTS.sram_config.num_rw_ports=2 - OPTS.sram_config.num_w_ports=0 - OPTS.sram_config.num_r_ports=2 + OPTS.num_rw_ports=2 + OPTS.num_w_ports=0 + OPTS.num_r_ports=2 debug.info(2, "Bitcell with 0 write ports") tx = pbitcell() self.local_check(tx) - OPTS.sram_config.num_rw_ports=2 - OPTS.sram_config.num_w_ports=2 - OPTS.sram_config.num_r_ports=0 + OPTS.num_rw_ports=2 + OPTS.num_w_ports=2 + OPTS.num_r_ports=0 debug.info(2, "Bitcell with 0 read ports") tx = pbitcell() self.local_check(tx) - OPTS.sram_config.num_rw_ports=2 - OPTS.sram_config.num_w_ports=0 - OPTS.sram_config.num_r_ports=0 + OPTS.num_rw_ports=2 + OPTS.num_w_ports=0 + OPTS.num_r_ports=0 debug.info(2, "Bitcell with 0 read ports and 0 write ports") tx = pbitcell() self.local_check(tx)