From bfc3da77c4752cee5e1d5b0432c775d0a1127620 Mon Sep 17 00:00:00 2001 From: Tobias Platen Date: Thu, 25 Nov 2021 17:05:25 +0100 Subject: [PATCH] pimem: reset on exception --- src/soc/experiment/pimem.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/soc/experiment/pimem.py b/src/soc/experiment/pimem.py index 78d0a700..bc1daee1 100644 --- a/src/soc/experiment/pimem.py +++ b/src/soc/experiment/pimem.py @@ -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): -- 2.30.2