From: Aleksandar Kostovic Date: Sun, 17 Feb 2019 14:42:22 +0000 (+0100) Subject: Done unpack in nmigen X-Git-Tag: ls180-24jan2020~1925 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=04421658bac4d2443b6b226726841132730c6806;p=ieee754fpu.git Done unpack in nmigen --- diff --git a/src/add/fmul.py b/src/add/fmul.py index 7d98eb6b..d41d974b 100644 --- a/src/add/fmul.py +++ b/src/add/fmul.py @@ -48,6 +48,18 @@ class FPMUL(FPBase): s.in_b.ack(0) ] + with m.State("unpack"): + m.next += "special_cases" + m.d.sync += [ + a.m.eq(a[0:22]), + b.m.eq(b[0:22]), + a.e.eq(a[23:31] - 127), + b.e.eq(b[23:31] - 127), + a.s.eq(a[31]), + b.s.eq(b[31]) + + ] + """ always @(posedge clk) begin