mirror of https://github.com/VLSIDA/OpenRAM.git
add has_rbl=True arg to tests
This commit is contained in:
parent
ce622952ef
commit
44ed72b50d
|
|
@ -27,7 +27,7 @@ class port_address_1rw_1r_test(openram_test):
|
|||
openram.setup_bitcell()
|
||||
|
||||
debug.info(1, "Port address 16 rows")
|
||||
a = factory.create("port_address", cols=16, rows=16, port=0)
|
||||
a = factory.create("port_address", cols=16, rows=16, port=0, has_rbl=True)
|
||||
self.local_check(a)
|
||||
|
||||
openram.end_openram()
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ class port_address_test(openram_test):
|
|||
openram.init_openram(config_file, is_unit_test=True)
|
||||
|
||||
debug.info(1, "Port address 16 rows")
|
||||
a = factory.create("port_address", cols=16, rows=16, port=0)
|
||||
a = factory.create("port_address", cols=16, rows=16, port=0, has_rbl=True)
|
||||
self.local_check(a)
|
||||
|
||||
openram.end_openram()
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ class port_address_1rw_1r_test(openram_test):
|
|||
openram.setup_bitcell()
|
||||
|
||||
debug.info(1, "Port address 256 rows")
|
||||
a = factory.create("port_address", cols=256, rows=256, port=1)
|
||||
a = factory.create("port_address", cols=256, rows=256, port=1, has_rbl=True)
|
||||
self.local_check(a)
|
||||
|
||||
openram.end_openram()
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ class port_address_test(openram_test):
|
|||
openram.init_openram(config_file, is_unit_test=True)
|
||||
|
||||
debug.info(1, "Port address 512 rows")
|
||||
a = factory.create("port_address", cols=256, rows=512, port=0)
|
||||
a = factory.create("port_address", cols=256, rows=512, port=0, has_rbl=True)
|
||||
self.local_check(a)
|
||||
|
||||
openram.end_openram()
|
||||
|
|
|
|||
|
|
@ -34,9 +34,9 @@ class port_data_1rw_1r_test(openram_test):
|
|||
c.words_per_row=16
|
||||
c.recompute_sizes()
|
||||
debug.info(1, "Sixteen way column mux")
|
||||
a = factory.create("port_data", sram_config=c, port=0)
|
||||
a = factory.create("port_data", sram_config=c, port=0, has_rbl=True)
|
||||
self.local_check(a)
|
||||
a = factory.create("port_data", sram_config=c, port=1)
|
||||
a = factory.create("port_data", sram_config=c, port=1, has_rbl=True)
|
||||
self.local_check(a)
|
||||
|
||||
openram.end_openram()
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ class port_data_test(openram_test):
|
|||
c.words_per_row=16
|
||||
c.recompute_sizes()
|
||||
debug.info(1, "Sixteen way column mux")
|
||||
a = factory.create("port_data", sram_config=c, port=0)
|
||||
a = factory.create("port_data", sram_config=c, port=0, has_rbl=True)
|
||||
self.local_check(a)
|
||||
|
||||
openram.end_openram()
|
||||
|
|
|
|||
|
|
@ -33,9 +33,9 @@ class port_data_1rw_1r_test(openram_test):
|
|||
c.words_per_row=2
|
||||
c.recompute_sizes()
|
||||
debug.info(1, "Two way column mux")
|
||||
a = factory.create("port_data", sram_config=c, port=0)
|
||||
a = factory.create("port_data", sram_config=c, port=0, has_rbl=True)
|
||||
self.local_check(a)
|
||||
a = factory.create("port_data", sram_config=c, port=1)
|
||||
a = factory.create("port_data", sram_config=c, port=1, has_rbl=True)
|
||||
self.local_check(a)
|
||||
|
||||
openram.end_openram()
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ class port_data_test(openram_test):
|
|||
c.words_per_row=2
|
||||
c.recompute_sizes()
|
||||
debug.info(1, "Two way column mux")
|
||||
a = factory.create("port_data", sram_config=c, port=0)
|
||||
a = factory.create("port_data", sram_config=c, port=0, has_rbl=True)
|
||||
self.local_check(a)
|
||||
|
||||
openram.end_openram()
|
||||
|
|
|
|||
|
|
@ -33,9 +33,9 @@ class port_data_1rw_1r_test(openram_test):
|
|||
c.words_per_row=4
|
||||
c.recompute_sizes()
|
||||
debug.info(1, "Four way column mux")
|
||||
a = factory.create("port_data", sram_config=c, port=0)
|
||||
a = factory.create("port_data", sram_config=c, port=0, has_rbl=True)
|
||||
self.local_check(a)
|
||||
a = factory.create("port_data", sram_config=c, port=1)
|
||||
a = factory.create("port_data", sram_config=c, port=1, has_rbl=True)
|
||||
self.local_check(a)
|
||||
|
||||
openram.end_openram()
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ class port_data_test(openram_test):
|
|||
c.words_per_row=4
|
||||
c.recompute_sizes()
|
||||
debug.info(1, "Four way column mux")
|
||||
a = factory.create("port_data", sram_config=c, port=0)
|
||||
a = factory.create("port_data", sram_config=c, port=0, has_rbl=True)
|
||||
self.local_check(a)
|
||||
|
||||
openram.end_openram()
|
||||
|
|
|
|||
|
|
@ -34,9 +34,9 @@ class port_data_1rw_1r_test(openram_test):
|
|||
c.words_per_row=8
|
||||
c.recompute_sizes()
|
||||
debug.info(1, "Eight way column mux")
|
||||
a = factory.create("port_data", sram_config=c, port=0)
|
||||
a = factory.create("port_data", sram_config=c, port=0, has_rbl=True)
|
||||
self.local_check(a)
|
||||
a = factory.create("port_data", sram_config=c, port=1)
|
||||
a = factory.create("port_data", sram_config=c, port=1, has_rbl=True)
|
||||
self.local_check(a)
|
||||
|
||||
openram.end_openram()
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ class port_data_test(openram_test):
|
|||
c.words_per_row=8
|
||||
c.recompute_sizes()
|
||||
debug.info(1, "Eight way column mux")
|
||||
a = factory.create("port_data", sram_config=c, port=0)
|
||||
a = factory.create("port_data", sram_config=c, port=0, has_rbl=True)
|
||||
self.local_check(a)
|
||||
|
||||
openram.end_openram()
|
||||
|
|
|
|||
|
|
@ -32,9 +32,9 @@ class port_data_1rw_1r_test(openram_test):
|
|||
c.words_per_row=1
|
||||
c.recompute_sizes()
|
||||
debug.info(1, "No column mux")
|
||||
a = factory.create("port_data", sram_config=c, port=0)
|
||||
a = factory.create("port_data", sram_config=c, port=0, has_rbl=True)
|
||||
self.local_check(a)
|
||||
a = factory.create("port_data", sram_config=c, port=1)
|
||||
a = factory.create("port_data", sram_config=c, port=1, has_rbl=True)
|
||||
self.local_check(a)
|
||||
|
||||
openram.end_openram()
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ class port_data_test(openram_test):
|
|||
c.words_per_row=1
|
||||
c.recompute_sizes()
|
||||
debug.info(1, "No column mux")
|
||||
a = factory.create("port_data", sram_config=c, port=0)
|
||||
a = factory.create("port_data", sram_config=c, port=0, has_rbl=True)
|
||||
self.local_check(a)
|
||||
|
||||
openram.end_openram()
|
||||
|
|
|
|||
|
|
@ -28,14 +28,14 @@ class port_data_spare_cols_test(openram_test):
|
|||
c.words_per_row=1
|
||||
c.recompute_sizes()
|
||||
debug.info(1, "No column mux")
|
||||
a = factory.create("port_data", sram_config=c, port=0)
|
||||
a = factory.create("port_data", sram_config=c, port=0, has_rbl=True)
|
||||
self.local_check(a)
|
||||
|
||||
c.num_words=32
|
||||
c.words_per_row=2
|
||||
c.recompute_sizes()
|
||||
debug.info(1, "Two way column mux")
|
||||
a = factory.create("port_data", sram_config=c, port=0)
|
||||
a = factory.create("port_data", sram_config=c, port=0, has_rbl=True)
|
||||
self.local_check(a)
|
||||
|
||||
c.num_words=64
|
||||
|
|
@ -43,7 +43,7 @@ class port_data_spare_cols_test(openram_test):
|
|||
c.num_spare_cols=3
|
||||
c.recompute_sizes()
|
||||
debug.info(1, "Four way column mux")
|
||||
a = factory.create("port_data", sram_config=c, port=0)
|
||||
a = factory.create("port_data", sram_config=c, port=0, has_rbl=True)
|
||||
self.local_check(a)
|
||||
|
||||
c.word_size=2
|
||||
|
|
@ -52,7 +52,7 @@ class port_data_spare_cols_test(openram_test):
|
|||
c.num_spare_cols=4
|
||||
c.recompute_sizes()
|
||||
debug.info(1, "Eight way column mux")
|
||||
a = factory.create("port_data", sram_config=c, port=0)
|
||||
a = factory.create("port_data", sram_config=c, port=0, has_rbl=True)
|
||||
self.local_check(a)
|
||||
|
||||
OPTS.num_rw_ports = 0
|
||||
|
|
@ -64,27 +64,27 @@ class port_data_spare_cols_test(openram_test):
|
|||
c.words_per_row=1
|
||||
c.recompute_sizes()
|
||||
debug.info(1, "No column mux")
|
||||
a = factory.create("port_data", sram_config=c, port=0)
|
||||
a = factory.create("port_data", sram_config=c, port=0, has_rbl=True)
|
||||
self.local_check(a)
|
||||
a = factory.create("port_data", sram_config=c, port=1)
|
||||
a = factory.create("port_data", sram_config=c, port=1, has_rbl=True)
|
||||
self.local_check(a)
|
||||
|
||||
c.num_words=32
|
||||
c.words_per_row=2
|
||||
c.recompute_sizes()
|
||||
debug.info(1, "Two way column mux")
|
||||
a = factory.create("port_data", sram_config=c, port=0)
|
||||
a = factory.create("port_data", sram_config=c, port=0, has_rbl=True)
|
||||
self.local_check(a)
|
||||
a = factory.create("port_data", sram_config=c, port=1)
|
||||
a = factory.create("port_data", sram_config=c, port=1, has_rbl=True)
|
||||
self.local_check(a)
|
||||
|
||||
c.num_words=64
|
||||
c.words_per_row=4
|
||||
c.recompute_sizes()
|
||||
debug.info(1, "Four way column mux")
|
||||
a = factory.create("port_data", sram_config=c, port=0)
|
||||
a = factory.create("port_data", sram_config=c, port=0, has_rbl=True)
|
||||
self.local_check(a)
|
||||
a = factory.create("port_data", sram_config=c, port=1)
|
||||
a = factory.create("port_data", sram_config=c, port=1, has_rbl=True)
|
||||
self.local_check(a)
|
||||
|
||||
c.word_size=2
|
||||
|
|
@ -92,9 +92,9 @@ class port_data_spare_cols_test(openram_test):
|
|||
c.words_per_row=8
|
||||
c.recompute_sizes()
|
||||
debug.info(1, "Eight way column mux")
|
||||
a = factory.create("port_data", sram_config=c, port=0)
|
||||
a = factory.create("port_data", sram_config=c, port=0, has_rbl=True)
|
||||
self.local_check(a)
|
||||
a = factory.create("port_data", sram_config=c, port=1)
|
||||
a = factory.create("port_data", sram_config=c, port=1, has_rbl=True)
|
||||
self.local_check(a)
|
||||
|
||||
openram.end_openram()
|
||||
|
|
|
|||
|
|
@ -33,28 +33,28 @@ class port_data_wmask_1rw_1r_test(openram_test):
|
|||
c.words_per_row = 1
|
||||
c.recompute_sizes()
|
||||
debug.info(1, "No column mux")
|
||||
a = factory.create("port_data", sram_config=c, port=0)
|
||||
a = factory.create("port_data", sram_config=c, port=0, has_rbl=True)
|
||||
self.local_check(a)
|
||||
|
||||
c.num_words = 32
|
||||
c.words_per_row = 2
|
||||
c.recompute_sizes()
|
||||
debug.info(1, "Two way column mux")
|
||||
a = factory.create("port_data", sram_config=c, port=0)
|
||||
a = factory.create("port_data", sram_config=c, port=0, has_rbl=True)
|
||||
self.local_check(a)
|
||||
|
||||
c.num_words = 64
|
||||
c.words_per_row = 4
|
||||
c.recompute_sizes()
|
||||
debug.info(1, "Four way column mux")
|
||||
a = factory.create("port_data", sram_config=c, port=0)
|
||||
a = factory.create("port_data", sram_config=c, port=0, has_rbl=True)
|
||||
self.local_check(a)
|
||||
|
||||
c.num_words = 128
|
||||
c.words_per_row = 8
|
||||
c.recompute_sizes()
|
||||
debug.info(1, "Eight way column mux")
|
||||
a = factory.create("port_data", sram_config=c, port=0)
|
||||
a = factory.create("port_data", sram_config=c, port=0, has_rbl=True)
|
||||
self.local_check(a)
|
||||
|
||||
OPTS.num_rw_ports = 0
|
||||
|
|
@ -66,27 +66,27 @@ class port_data_wmask_1rw_1r_test(openram_test):
|
|||
c.words_per_row = 1
|
||||
c.recompute_sizes()
|
||||
debug.info(1, "No column mux")
|
||||
a = factory.create("port_data", sram_config=c, port=0)
|
||||
a = factory.create("port_data", sram_config=c, port=0, has_rbl=True)
|
||||
self.local_check(a)
|
||||
a = factory.create("port_data", sram_config=c, port=1)
|
||||
a = factory.create("port_data", sram_config=c, port=1, has_rbl=True)
|
||||
self.local_check(a)
|
||||
#
|
||||
c.num_words = 32
|
||||
c.words_per_row = 2
|
||||
c.recompute_sizes()
|
||||
debug.info(1, "Two way column mux")
|
||||
a = factory.create("port_data", sram_config=c, port=0)
|
||||
a = factory.create("port_data", sram_config=c, port=0, has_rbl=True)
|
||||
self.local_check(a)
|
||||
a = factory.create("port_data", sram_config=c, port=1)
|
||||
a = factory.create("port_data", sram_config=c, port=1, has_rbl=True)
|
||||
self.local_check(a)
|
||||
|
||||
c.num_words = 64
|
||||
c.words_per_row = 4
|
||||
c.recompute_sizes()
|
||||
debug.info(1, "Four way column mux")
|
||||
a = factory.create("port_data", sram_config=c, port=0)
|
||||
a = factory.create("port_data", sram_config=c, port=0, has_rbl=True)
|
||||
self.local_check(a)
|
||||
a = factory.create("port_data", sram_config=c, port=1)
|
||||
a = factory.create("port_data", sram_config=c, port=1, has_rbl=True)
|
||||
self.local_check(a)
|
||||
|
||||
c.word_size = 8
|
||||
|
|
@ -94,9 +94,9 @@ class port_data_wmask_1rw_1r_test(openram_test):
|
|||
c.words_per_row = 8
|
||||
c.recompute_sizes()
|
||||
debug.info(1, "Eight way column mux")
|
||||
a = factory.create("port_data", sram_config=c, port=0)
|
||||
a = factory.create("port_data", sram_config=c, port=0, has_rbl=True)
|
||||
self.local_check(a)
|
||||
a = factory.create("port_data", sram_config=c, port=1)
|
||||
a = factory.create("port_data", sram_config=c, port=1, has_rbl=True)
|
||||
self.local_check(a)
|
||||
|
||||
openram.end_openram()
|
||||
|
|
|
|||
|
|
@ -37,28 +37,28 @@ class port_data_wmask_test(openram_test):
|
|||
c.words_per_row = 1
|
||||
c.recompute_sizes()
|
||||
debug.info(1, "No column mux")
|
||||
a = factory.create("port_data", sram_config=c, port=0)
|
||||
a = factory.create("port_data", sram_config=c, port=0, has_rbl=True)
|
||||
self.local_check(a)
|
||||
|
||||
c.num_words = 32
|
||||
c.words_per_row = 2
|
||||
c.recompute_sizes()
|
||||
debug.info(1, "Two way column mux")
|
||||
a = factory.create("port_data", sram_config=c, port=0)
|
||||
a = factory.create("port_data", sram_config=c, port=0, has_rbl=True)
|
||||
self.local_check(a)
|
||||
|
||||
c.num_words = 64
|
||||
c.words_per_row = 4
|
||||
c.recompute_sizes()
|
||||
debug.info(1, "Four way column mux")
|
||||
a = factory.create("port_data", sram_config=c, port=0)
|
||||
a = factory.create("port_data", sram_config=c, port=0, has_rbl=True)
|
||||
self.local_check(a)
|
||||
|
||||
c.num_words = 128
|
||||
c.words_per_row = 8
|
||||
c.recompute_sizes()
|
||||
debug.info(1, "Eight way column mux")
|
||||
a = factory.create("port_data", sram_config=c, port=0)
|
||||
a = factory.create("port_data", sram_config=c, port=0, has_rbl=True)
|
||||
self.local_check(a)
|
||||
|
||||
OPTS.num_rw_ports = 0
|
||||
|
|
@ -70,27 +70,27 @@ class port_data_wmask_test(openram_test):
|
|||
c.words_per_row = 1
|
||||
c.recompute_sizes()
|
||||
debug.info(1, "No column mux")
|
||||
a = factory.create("port_data", sram_config=c, port=0)
|
||||
a = factory.create("port_data", sram_config=c, port=0, has_rbl=True)
|
||||
self.local_check(a)
|
||||
a = factory.create("port_data", sram_config=c, port=1)
|
||||
a = factory.create("port_data", sram_config=c, port=1, has_rbl=True)
|
||||
self.local_check(a)
|
||||
#
|
||||
c.num_words = 32
|
||||
c.words_per_row = 2
|
||||
c.recompute_sizes()
|
||||
debug.info(1, "Two way column mux")
|
||||
a = factory.create("port_data", sram_config=c, port=0)
|
||||
a = factory.create("port_data", sram_config=c, port=0, has_rbl=True)
|
||||
self.local_check(a)
|
||||
a = factory.create("port_data", sram_config=c, port=1)
|
||||
a = factory.create("port_data", sram_config=c, port=1, has_rbl=True)
|
||||
self.local_check(a)
|
||||
|
||||
c.num_words = 64
|
||||
c.words_per_row = 4
|
||||
c.recompute_sizes()
|
||||
debug.info(1, "Four way column mux")
|
||||
a = factory.create("port_data", sram_config=c, port=0)
|
||||
a = factory.create("port_data", sram_config=c, port=0, has_rbl=True)
|
||||
self.local_check(a)
|
||||
a = factory.create("port_data", sram_config=c, port=1)
|
||||
a = factory.create("port_data", sram_config=c, port=1, has_rbl=True)
|
||||
self.local_check(a)
|
||||
|
||||
c.word_size = 8
|
||||
|
|
@ -98,9 +98,9 @@ class port_data_wmask_test(openram_test):
|
|||
c.words_per_row = 8
|
||||
c.recompute_sizes()
|
||||
debug.info(1, "Eight way column mux")
|
||||
a = factory.create("port_data", sram_config=c, port=0)
|
||||
a = factory.create("port_data", sram_config=c, port=0, has_rbl=True)
|
||||
self.local_check(a)
|
||||
a = factory.create("port_data", sram_config=c, port=1)
|
||||
a = factory.create("port_data", sram_config=c, port=1, has_rbl=True)
|
||||
self.local_check(a)
|
||||
|
||||
openram.end_openram()
|
||||
|
|
|
|||
Loading…
Reference in New Issue