From 247604ef2e548361cacccc66a38ff4314fdebdbf Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Sun, 25 Aug 2019 21:44:27 +0100 Subject: [PATCH] document weird int2float bug --- src/ieee754/fcvt/int2float.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ieee754/fcvt/int2float.py b/src/ieee754/fcvt/int2float.py index 232ab7fa..fcf3e34c 100644 --- a/src/ieee754/fcvt/int2float.py +++ b/src/ieee754/fcvt/int2float.py @@ -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 -- 2.30.2