mirror of
https://github.com/VLSIDA/OpenRAM.git
synced 2026-09-07 19:28:08 +02:00
Add 1rw decoder test
This commit is contained in:
@@ -29,7 +29,16 @@ class and2_dec_test(openram_test):
|
||||
OPTS.num_w_ports = 0
|
||||
globals.setup_bitcell()
|
||||
|
||||
debug.info(2, "Testing and2_dec gate")
|
||||
debug.info(2, "Testing and2_dec 1rw/1r gate")
|
||||
a = factory.create(module_type="and2_dec")
|
||||
self.local_check(a)
|
||||
|
||||
OPTS.num_rw_ports = 1
|
||||
OPTS.num_r_ports = 0
|
||||
OPTS.num_w_ports = 0
|
||||
globals.setup_bitcell()
|
||||
|
||||
debug.info(2, "Testing and2_dec 1rw gate")
|
||||
a = factory.create(module_type="and2_dec")
|
||||
self.local_check(a)
|
||||
|
||||
|
||||
@@ -15,6 +15,7 @@ from globals import OPTS
|
||||
from sram_factory import factory
|
||||
import debug
|
||||
|
||||
|
||||
class and3_dec_test(openram_test):
|
||||
|
||||
def runTest(self):
|
||||
@@ -28,7 +29,16 @@ class and3_dec_test(openram_test):
|
||||
OPTS.num_w_ports = 0
|
||||
globals.setup_bitcell()
|
||||
|
||||
debug.info(2, "Testing and3_dec gate")
|
||||
debug.info(2, "Testing and3_dec 1rw/1r gate")
|
||||
a = factory.create(module_type="and3_dec")
|
||||
self.local_check(a)
|
||||
|
||||
OPTS.num_rw_ports = 1
|
||||
OPTS.num_r_ports = 0
|
||||
OPTS.num_w_ports = 0
|
||||
globals.setup_bitcell()
|
||||
|
||||
debug.info(2, "Testing and3_dec 1rw gate")
|
||||
a = factory.create(module_type="and3_dec")
|
||||
self.local_check(a)
|
||||
|
||||
|
||||
@@ -30,7 +30,16 @@ class and4_dec_test(openram_test):
|
||||
OPTS.num_w_ports = 0
|
||||
globals.setup_bitcell()
|
||||
|
||||
debug.info(2, "Testing and4_dec gate")
|
||||
debug.info(2, "Testing and4_dec 1rw/1r gate")
|
||||
a = factory.create(module_type="and4_dec")
|
||||
self.local_check(a)
|
||||
|
||||
OPTS.num_rw_ports = 1
|
||||
OPTS.num_r_ports = 0
|
||||
OPTS.num_w_ports = 0
|
||||
globals.setup_bitcell()
|
||||
|
||||
debug.info(2, "Testing and4_dec 1rw gate")
|
||||
a = factory.create(module_type="and4_dec")
|
||||
self.local_check(a)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user