OpenRAM/compiler/tests/18_port_address_16rows_test.py

35 lines
916 B
Python
Raw Normal View History

2019-07-05 18:03:52 +02:00
#!/usr/bin/env python3
# See LICENSE for licensing information.
#
2021-01-22 20:23:28 +01:00
# Copyright (c) 2016-2021 Regents of the University of California
2019-07-05 18:03:52 +02:00
# All rights reserved.
#
import unittest
from testutils import *
import sys, os
2019-07-05 18:03:52 +02:00
sys.path.append(os.getenv("OPENRAM_HOME"))
import globals
from globals import OPTS
from sram_factory import factory
import debug
2020-06-03 23:30:15 +02:00
2019-07-05 18:03:52 +02:00
class port_address_test(openram_test):
def runTest(self):
config_file = "{}/tests/configs/config".format(os.getenv("OPENRAM_HOME"))
globals.init_openram(config_file)
2019-07-05 18:03:52 +02:00
debug.info(1, "Port address 16 rows")
a = factory.create("port_address", cols=16, rows=16, port=0)
2019-07-05 18:03:52 +02:00
self.local_check(a)
2020-11-03 15:29:17 +01:00
2019-07-05 18:03:52 +02:00
globals.end_openram()
2020-11-03 15:29:17 +01:00
2019-07-05 18:03:52 +02:00
# run the test from the command line
if __name__ == "__main__":
(OPTS, args) = globals.parse_args()
del sys.argv[1:]
header(__file__, OPTS.tech_name)
unittest.main(testRunner=debugTestRunner())