projects
/
ieee754fpu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
06b5f4a
)
move setting of stb into else block
author
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Tue, 19 Feb 2019 15:51:20 +0000
(15:51 +0000)
committer
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Tue, 19 Feb 2019 15:51:20 +0000
(15:51 +0000)
src/add/fpbase.py
patch
|
blob
|
history
diff --git
a/src/add/fpbase.py
b/src/add/fpbase.py
index 8a1287cf48da79950216706d8e4de5756e5b2e57..1da10b0297b74548484bcd6ac7f7018283a99039 100644
(file)
--- a/
src/add/fpbase.py
+++ b/
src/add/fpbase.py
@@
-337,11
+337,12
@@
class FPBase:
resets stb back to zero when that occurs, as acknowledgement.
"""
m.d.sync += [
- out_z.stb.eq(1),
out_z.v.eq(z.v)
]
with m.If(out_z.stb & out_z.ack):
m.d.sync += out_z.stb.eq(0)
m.next = next_state
+ with m.Else():
+ m.d.sync += out_z.stb.eq(1)