projects
/
ieee754fpu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
document weird int2float bug
[ieee754fpu.git]
/
src
/
ieee754
/
fcvt
/
int2float.py
diff --git
a/src/ieee754/fcvt/int2float.py
b/src/ieee754/fcvt/int2float.py
index 232ab7fa00803ad6694b466e70de240146dd9160..fcf3e34cf3025b02995b76251d363834640b7deb 100644
(file)
--- 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:])
# 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
comb += z1.s.eq(sign)
comb += z1.create(sign, z1.e, z1.m) # ... here