From 83d0325f6318204db17f7a3edae5429cc588e8d3 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Thu, 14 Feb 2019 08:51:18 +0000 Subject: [PATCH] corrections on compile --- src/add/nmigen_add_experiment.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/add/nmigen_add_experiment.py b/src/add/nmigen_add_experiment.py index e23bb8a7..b9c91cc3 100644 --- a/src/add/nmigen_add_experiment.py +++ b/src/add/nmigen_add_experiment.py @@ -220,14 +220,14 @@ class FPADD: z_s.eq(a_s) ] # a mantissa greater than b, use a - with m.Else(a_m >= b_m): + with m.Elif(a_m >= b_m): m.d.sync += [ tot.eq(a_m - b_m), z_s.eq(a_s) ] # b mantissa greater than a, use b with m.Else(): - m.sync += [ + m.d.sync += [ tot.eq(b_m - a_m), z_s.eq(b_s) ] -- 2.30.2