connect up mid in normalise module
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 22 Mar 2019 07:39:59 +0000 (07:39 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 22 Mar 2019 07:39:59 +0000 (07:39 +0000)
src/add/nmigen_add_experiment.py

index 407a5e46f512c36d313f2ea981b6bf0ba5760331..73306c576e13bec98a5d4996fff90a8fc27ac1ce 100644 (file)
@@ -1038,6 +1038,7 @@ class FPNorm1ModSingle:
         m.d.comb += i.eq(self.i)
         # initialise out from in (overridden below)
         m.d.comb += self.o.z.eq(i.z)
+        m.d.comb += self.o.mid.eq(self.i.mid)
         m.d.comb += of.eq(i.of)
         # normalisation increase/decrease conditions
         decrease = Signal(reset_less=True)