mirror of
https://github.com/myhdl/myhdl.git
synced 2025-01-24 21:52:56 +08:00
added
This commit is contained in:
parent
4405eac0c9
commit
0c7cca721b
3
myhdl/test/toVerilog/README.txt
Normal file
3
myhdl/test/toVerilog/README.txt
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
The tests in this directory require a working Icarus installation
|
||||||
|
(iverilog and vvp commands), because co-simulation with Icarus Verilog
|
||||||
|
is used to verify the Verilog designs generated by the converter.
|
@ -23,6 +23,9 @@ __author__ = "Jan Decaluwe <jan@jandecaluwe.com>"
|
|||||||
__revision__ = "$Revision$"
|
__revision__ = "$Revision$"
|
||||||
__date__ = "$Date$"
|
__date__ = "$Date$"
|
||||||
|
|
||||||
|
import os
|
||||||
|
import unittest
|
||||||
|
|
||||||
import test_bin2gray, test_inc, test_fsm, test_ops, test_NotSupported, \
|
import test_bin2gray, test_inc, test_fsm, test_ops, test_NotSupported, \
|
||||||
test_inc_initial, test_hec, test_loops, test_infer, test_errors, \
|
test_inc_initial, test_hec, test_loops, test_infer, test_errors, \
|
||||||
test_RandomScrambler, test_beh, test_GrayInc
|
test_RandomScrambler, test_beh, test_GrayInc
|
||||||
@ -33,7 +36,6 @@ modules = (test_bin2gray, test_inc, test_fsm, test_ops, test_NotSupported, \
|
|||||||
test_RandomScrambler, test_beh, test_GrayInc
|
test_RandomScrambler, test_beh, test_GrayInc
|
||||||
)
|
)
|
||||||
|
|
||||||
import unittest
|
|
||||||
|
|
||||||
tl = unittest.defaultTestLoader
|
tl = unittest.defaultTestLoader
|
||||||
def suite():
|
def suite():
|
||||||
@ -45,7 +47,8 @@ def suite():
|
|||||||
def main():
|
def main():
|
||||||
unittest.main(defaultTest='suite',
|
unittest.main(defaultTest='suite',
|
||||||
testRunner=unittest.TextTestRunner(verbosity=2))
|
testRunner=unittest.TextTestRunner(verbosity=2))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user