From 7c963ca4f2ee7f2a198cd76920c5ed024946e563 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Fri, 24 May 2019 12:40:28 +0100 Subject: [PATCH] reset shadow latches if neither success nor fail are applied --- src/scoreboard/shadow_fn.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scoreboard/shadow_fn.py b/src/scoreboard/shadow_fn.py index 4b266bcd..b7edf8e9 100644 --- a/src/scoreboard/shadow_fn.py +++ b/src/scoreboard/shadow_fn.py @@ -27,7 +27,7 @@ class ShadowFn(Elaboratable): m.d.sync += cq.eq(sl.q) m.d.comb += sl.s.eq(self.shadow_i & self.issue_i & ~self.s_good_i) - m.d.comb += sl.r.eq(self.s_good_i) + m.d.comb += sl.r.eq(self.s_good_i | (self.issue_i & ~self.shadow_i)) m.d.comb += self.recover_o.eq((cq | sl.q) & self.s_fail_i) m.d.comb += self.shadow_o.eq((cq | sl.q)) -- 2.30.2