OpenRAM/compiler/tests/13_delay_chain_test.py

32 lines
771 B
Python
Raw Normal View History

#!/usr/bin/env python3
2016-11-08 18:57:35 +01:00
"""
Run a test on a delay chain
"""
import unittest
from testutils import header,openram_test
2016-11-08 18:57:35 +01:00
import sys,os
sys.path.append(os.path.join(sys.path[0],".."))
import globals
from globals import OPTS
from sram_factory import factory
2016-11-08 18:57:35 +01:00
import debug
class delay_chain_test(openram_test):
2016-11-08 18:57:35 +01:00
def runTest(self):
globals.init_openram("config_{0}".format(OPTS.tech_name))
2016-11-08 18:57:35 +01:00
debug.info(2, "Testing delay_chain")
a = factory.create(module_type="delay_chain", fanout_list=[4, 4, 4, 4])
2016-11-08 18:57:35 +01:00
self.local_check(a)
globals.end_openram()
# run the test from the command line
2016-11-08 18:57:35 +01:00
if __name__ == "__main__":
(OPTS, args) = globals.parse_args()
del sys.argv[1:]
header(__file__, OPTS.tech_name)
unittest.main()