From: Luke Kenneth Casson Leighton Date: Tue, 19 Feb 2019 15:51:20 +0000 (+0000) Subject: move setting of stb into else block X-Git-Tag: ls180-24jan2020~1864 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1ad14c0abd7e4fb79d0d45b8ae2d9248d0d8d7b9;p=ieee754fpu.git move setting of stb into else block --- 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)