From 1ad14c0abd7e4fb79d0d45b8ae2d9248d0d8d7b9 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Tue, 19 Feb 2019 15:51:20 +0000 Subject: [PATCH] move setting of stb into else block --- src/add/fpbase.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/add/fpbase.py b/src/add/fpbase.py index 8a1287cf..1da10b02 100644 --- a/src/add/fpbase.py +++ b/src/add/fpbase.py @@ -337,11 +337,12 @@ class FPBase: resets stb back to zero when that occurs, as acknowledgement. """ m.d.sync += [ - out_z.stb.eq(1), out_z.v.eq(z.v) ] with m.If(out_z.stb & out_z.ack): m.d.sync += out_z.stb.eq(0) m.next = next_state + with m.Else(): + m.d.sync += out_z.stb.eq(1) -- 2.30.2