2020-08-17 16:46:15 +08:00
|
|
|
import unittest
|
|
|
|
from .test.test_cache import *
|
2020-08-18 14:10:47 +08:00
|
|
|
from .test.test_instructions import *
|
2020-08-17 16:46:15 +08:00
|
|
|
from .test.test_units_divider import *
|
|
|
|
from .test.test_units_multiplier import *
|
|
|
|
|
2020-08-18 14:10:47 +08:00
|
|
|
print("Verifying L1 cache ...")
|
2020-08-17 16:46:15 +08:00
|
|
|
test = L1CacheTestCase()
|
|
|
|
test.test_direct_mapped()
|
|
|
|
test.test_2_ways()
|
2020-08-18 14:10:47 +08:00
|
|
|
|
|
|
|
print("Verifying RV32I instructions ...")
|
|
|
|
LuiTestCase().verify()
|
|
|
|
|
|
|
|
print("Testing multiplier and divider ...")
|
2020-08-17 16:46:15 +08:00
|
|
|
unittest.main()
|