add in SPR test cases into test_issuer.py
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Tue, 7 Jul 2020 12:42:20 +0000 (13:42 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Tue, 7 Jul 2020 12:42:20 +0000 (13:42 +0100)
src/soc/fu/compunits/compunits.py
src/soc/simple/test/test_issuer.py

index 41f94245cacbc3b39500c744388eea803d7e53e9..55210173ea0e335603eae0c1d9208c7d081bc67c 100644 (file)
@@ -200,7 +200,7 @@ class AllFunctionUnits(Elaboratable):
         units = pspec.units
         if not isinstance(units, dict):
             units = {'alu': 1, 'cr': 1, 'branch': 1, 'trap': 1,
-                     #'spr': 1, TODO: spr regfile
+                     'spr': 1,
                      'logical': 1,
                      'mul': 1,
                      'div': 1, 'shiftrot': 1}
index e9d728424d096c63c57ac24c83ec0a8a288692ee..ec81aa7a279d676d56c0628e6bbfe6c9b99ec335 100644 (file)
@@ -161,7 +161,7 @@ if __name__ == "__main__":
     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(SPRTestCase.test_data))
 
     runner = unittest.TextTestRunner()
     runner.run(suite)