From 04421658bac4d2443b6b226726841132730c6806 Mon Sep 17 00:00:00 2001 From: Aleksandar Kostovic Date: Sun, 17 Feb 2019 15:42:22 +0100 Subject: [PATCH] Done unpack in nmigen --- src/add/fmul.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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 -- 2.30.2