projects
/
ieee754fpu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
628b86b
)
use denorm exponent signal
author
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Thu, 28 Feb 2019 02:48:45 +0000
(
02:48
+0000)
committer
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Thu, 28 Feb 2019 02:48:45 +0000
(
02:48
+0000)
src/add/fpbase.py
patch
|
blob
|
history
diff --git
a/src/add/fpbase.py
b/src/add/fpbase.py
index 8b1259c28e860594fdea18d5e44f96accd0a128e..db61e190336f63747fd7d239d46fb28d4004f650 100644
(file)
--- a/
src/add/fpbase.py
+++ b/
src/add/fpbase.py
@@
-426,7
+426,7
@@
class FPBase:
both cases *effectively multiply the number stored by 2*,
which has to be taken into account when extracting the result.
"""
- with m.If(a.e
== a.N
127):
+ with m.If(a.e
xp_n
127):
m.d.sync += a.e.eq(a.N126) # limit a exponent
with m.Else():
m.d.sync += a.m[-1].eq(1) # set top mantissa bit