OpenRAM/compiler/tests/14_replica_bitcell_array_du...

41 lines
1.1 KiB
Python
Raw Normal View History

2023-03-09 19:05:17 +01:00
#!/usr/bin/env python3
# See LICENSE for licensing information.
#
2024-01-03 23:32:44 +01:00
# Copyright (c) 2016-2024 Regents of the University of California, Santa Cruz
2023-03-09 19:05:17 +01:00
# All rights reserved.
#
import sys, os
import unittest
from testutils import *
import openram
from openram import debug
from openram.sram_factory import factory
from openram import OPTS
2023-03-23 02:56:52 +01:00
class replica_bitcell_array_dummies_1rw_test(openram_test):
2023-03-09 19:05:17 +01:00
def runTest(self):
config_file = "{}/tests/configs/config".format(os.getenv("OPENRAM_HOME"))
openram.init_openram(config_file, is_unit_test=True)
OPTS.num_rw_ports = 1
OPTS.num_r_ports = 0
OPTS.num_w_ports = 0
2023-04-03 19:08:57 +02:00
openram.setup_bitcell()
2023-03-09 19:05:17 +01:00
2023-03-23 02:56:52 +01:00
debug.info(2, "Testing 7x5 replica array for 1rw cell with dummy row only")
2023-03-09 19:05:17 +01:00
a = factory.create(module_type="replica_bitcell_array", cols=7, rows=5, rbl=[1, 0])
self.local_check(a)
openram.end_openram()
# run the test from the command line
if __name__ == "__main__":
(OPTS, args) = openram.parse_args()
del sys.argv[1:]
header(__file__, OPTS.tech_name)
unittest.main(testRunner=debugTestRunner())