document weird int2float bug
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sun, 25 Aug 2019 20:44:27 +0000 (21:44 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sun, 25 Aug 2019 20:44:27 +0000 (21:44 +0100)
src/ieee754/fcvt/int2float.py

index 232ab7fa00803ad6694b466e70de240146dd9160..fcf3e34cf3025b02995b76251d363834640b7deb 100644 (file)
@@ -87,6 +87,10 @@ class FPCVTIntToFloatMod(PipeModBase):
             # smaller int to larger FP
             comb += z1.e.eq(msb.e_out)
             comb += z1.m[ms:].eq(msb.m_out[3:])
+
+        # XXX there is some weirdness involving the sign looping back
+        # see graphviz output
+        # http://bugs.libre-riscv.org/show_bug.cgi?id=135
         comb += z1.s.eq(sign)
         comb += z1.create(sign, z1.e, z1.m) # ... here