pimem: reset on exception
authorTobias Platen <tplaten@posteo.de>
Thu, 25 Nov 2021 16:05:25 +0000 (17:05 +0100)
committerTobias Platen <tplaten@posteo.de>
Thu, 25 Nov 2021 16:05:25 +0000 (17:05 +0100)
src/soc/experiment/pimem.py

index 78d0a700b9b44d03b13e9dc52b742cf3a43b2ccd..bc1daee125871b18c5280863a440e1cf73c44e0e 100644 (file)
@@ -312,6 +312,7 @@ class PortInterfaceBase(Elaboratable):
         # monitor for an exception, clear busy immediately
         with m.If(self.pi.exc_o.happened):
             comb += busy_l.r.eq(1)
+            comb += reset_l.s.eq(1) # also reset whole unit
 
         # however ST needs one cycle before busy is reset
         #with m.If(self.pi.st.ok | self.pi.ld.ok):