update TestRunner, SVSTATE is now a class that inherits from SelectableInt
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Thu, 15 Jul 2021 12:51:49 +0000 (13:51 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Thu, 15 Jul 2021 12:51:49 +0000 (13:51 +0100)
rather than *contains* a SelectableInt

src/soc/simple/test/test_runner.py

index 180474e123353ec2f5a3fa20735a65e75fb5c0a0..fee846178e15260657f8b4dc5816dde6f842579e 100644 (file)
@@ -240,7 +240,7 @@ class TestRunner(FHDLTestCase):
                     initial_svstate = test.svstate
                     if isinstance(initial_svstate, int):
                         initial_svstate = SVP64State(initial_svstate)
-                    yield svstate_i.eq(initial_svstate.spr.value)
+                    yield svstate_i.eq(initial_svstate.value)
                     yield issuer.svstate_i.ok.eq(1)
                     yield