From: Aleksandar Kostovic Date: Sat, 16 Feb 2019 11:34:17 +0000 (+0100) Subject: Did get_b state in nmigen X-Git-Tag: ls180-24jan2020~1944 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=06a93cddd0ae1af04538d471f66136c8d9c50062;p=ieee754fpu.git Did get_b state in nmigen --- diff --git a/src/add/fmul.py b/src/add/fmul.py index d8192c6b..5342047c 100644 --- a/src/add/fmul.py +++ b/src/add/fmul.py @@ -39,6 +39,15 @@ class FPMUL(FPBase): s.in_a.ack(0) ] + with m.State("get_b"): + m.next += "unpack" + m.d.sync += s.in_b.ack.eq(1) + with m.If(s.in_b.ack & in_b.stb): + m.d.sync += [ + b.eq(in_b), + s.in_a.ack(0) + ] + """ always @(posedge clk) begin