make core_rst a member of TestIssuerInternal
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Thu, 3 Jun 2021 12:02:59 +0000 (13:02 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Thu, 3 Jun 2021 12:03:05 +0000 (13:03 +0100)
src/soc/simple/issuer.py

index c604354ad82a0c26bc09f026a0a04c0641d19c99..8e98202ca4506cf479df6b70f44f3a8a94206db3 100644 (file)
@@ -216,6 +216,7 @@ class TestIssuerInternal(Elaboratable):
 
         # main instruction core.  suitable for prototyping / demo only
         self.core = core = NonProductionCore(pspec)
+        self.core_rst = ResetSignal("coresync")
 
         # instruction decoder.  goes into Trap Record
         pdecode = create_pdecode()
@@ -966,7 +967,8 @@ class TestIssuerInternal(Elaboratable):
         core = self.core
 
         # set up peripherals and core
-        core_rst = self.setup_peripherals(m)
+        core_rst = self.core_rst
+        self.setup_peripherals(m)
 
         # reset current state if core reset requested
         with m.If(core_rst):