default=False)
parser.add_argument("--debug", default="jtag", help="Select debug " \
"interface [jtag | dmi] [default jtag]")
+ parser.add_argument("--enable-svp64", dest='svp64', action="store_true",
+ help="Enable SVP64",
+ default=True)
+ parser.add_argument("--disable-svp64", dest='svp64', action="store_false",
+ help="disable SVP64",
+ default=False)
args = parser.parse_args()
gpio=args.enable_testgpio, # for test purposes
sram4x4kblock=args.enable_sram4x4kblock, # add SRAMs
debug=args.debug, # set to jtag or dmi
+ svp64=args.svp64, # enable SVP64
units=units)
print("nocore", pspec.__dict__["nocore"])
print("xics", pspec.__dict__["xics"])
print("use_pll", pspec.__dict__["use_pll"])
print("debug", pspec.__dict__["debug"])
+ print("SVP64", pspec.__dict__["svp64"])
dut = TestIssuer(pspec)
# Also, check out the cxxsim nmigen branch, and latest yosys from git
import unittest
+import sys
from soc.simple.test.test_runner import TestRunner
# test with ALU data and Logical data
if __name__ == "__main__":
+ svp64 = True
+ if len(sys.argv) == 2:
+ if sys.argv[1] == 'nosvp64':
+ svp64 = False
+ sys.argv.pop()
+
unittest.main(exit=False)
suite = unittest.TestSuite()
- # suite.addTest(TestRunner(HelloTestCases.test_data))
- suite.addTest(TestRunner(DivTestCases().test_data))
- # suite.addTest(TestRunner(AttnTestCase.test_data))
- suite.addTest(TestRunner(GeneralTestCases.test_data))
- suite.addTest(TestRunner(LDSTTestCase().test_data))
- suite.addTest(TestRunner(CRTestCase().test_data))
- suite.addTest(TestRunner(ShiftRotTestCase().test_data))
- suite.addTest(TestRunner(LogicalTestCase().test_data))
- suite.addTest(TestRunner(ALUTestCase().test_data))
- # suite.addTest(TestRunner(BranchTestCase.test_data))
- # suite.addTest(TestRunner(SPRTestCase.test_data))
+ # suite.addTest(TestRunner(HelloTestCases.test_data, svp64=svp64))
+ suite.addTest(TestRunner(DivTestCases().test_data, svp64=svp64))
+ # suite.addTest(TestRunner(AttnTestCase.test_data, svp64=svp64))
+ suite.addTest(TestRunner(GeneralTestCases.test_data, svp64=svp64))
+ suite.addTest(TestRunner(LDSTTestCase().test_data, svp64=svp64))
+ suite.addTest(TestRunner(CRTestCase().test_data, svp64=svp64))
+ suite.addTest(TestRunner(ShiftRotTestCase().test_data, svp64=svp64))
+ suite.addTest(TestRunner(LogicalTestCase().test_data, svp64=svp64))
+ suite.addTest(TestRunner(ALUTestCase().test_data, svp64=svp64))
+ # suite.addTest(TestRunner(BranchTestCase.test_data, svp64=svp64))
+ # suite.addTest(TestRunner(SPRTestCase.test_data, svp64=svp64))
runner = unittest.TextTestRunner()
runner.run(suite)
class TestRunner(FHDLTestCase):
- def __init__(self, tst_data, microwatt_mmu=False, rom=None):
+ def __init__(self, tst_data, microwatt_mmu=False, rom=None,
+ svp64=True):
super().__init__("run_all")
self.test_data = tst_data
self.microwatt_mmu = microwatt_mmu
self.rom = rom
+ self.svp64 = svp64
def run_all(self):
m = Module()
nocore=False,
xics=False,
gpio=False,
+ svp64=self.svp64,
mmu=self.microwatt_mmu,
reg_wid=64)
m.submodules.issuer = issuer = TestIssuerInternal(pspec)