OpenRAM/compiler/tests/13_delay_chain_test.py

32 lines
772 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
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_20_{0}".format(OPTS.tech_name))
import delay_chain
2016-11-08 18:57:35 +01:00
debug.info(2, "Testing delay_chain")
a = delay_chain.delay_chain(fanout_list=[4, 4, 4, 4])
2016-11-08 18:57:35 +01:00
self.local_check(a)
globals.end_openram()
2016-11-08 18:57:35 +01:00
# instantiate a copy of the class to actually run the test
if __name__ == "__main__":
(OPTS, args) = globals.parse_args()
del sys.argv[1:]
header(__file__, OPTS.tech_name)
unittest.main()