projects
/
ieee754fpu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
ff18c77
)
Fixed indentation issiues with fmul.py
author
Aleksandar Kostovic
<alexandar.kostovic@gmail.com>
Fri, 5 Apr 2019 04:57:06 +0000
(06:57 +0200)
committer
Aleksandar Kostovic
<alexandar.kostovic@gmail.com>
Fri, 5 Apr 2019 04:57:06 +0000
(06:57 +0200)
src/add/fmul.py
patch
|
blob
|
history
diff --git
a/src/add/fmul.py
b/src/add/fmul.py
index 25944a83ef1ca136aa2868a609e847d8408171fe..16167514fb7fa7b2baf21ef1909c263c8eabbb82 100644
(file)
--- a/
src/add/fmul.py
+++ b/
src/add/fmul.py
@@
-16,11
+16,11
@@
class FPMUL(FPBase):
self.in_b = FPOp(width)
self.out_z = FPOp(width)
self.in_b = FPOp(width)
self.out_z = FPOp(width)
- self.states = []
+
self.states = []
def add_state(self, state):
def add_state(self, state):
- self.states.append(state)
- return state
+
self.states.append(state)
+
return state
def get_fragment(self, platform=None):
""" creates the HDL code-fragment for FPMUL
def get_fragment(self, platform=None):
""" creates the HDL code-fragment for FPMUL
@@
-51,14
+51,14
@@
class FPMUL(FPBase):
with m.State("get_a"):
res = self.get_op(m, self.in_a, a, "get_b")
with m.State("get_a"):
res = self.get_op(m, self.in_a, a, "get_b")
- m.d.sync += eq([a, self.in_a.ack], res)
+
m.d.sync += eq([a, self.in_a.ack], res)
# ******
# gets operand b
with m.State("get_b"):
res = self.get_op(m, self.in_b, b, "special_cases")
# ******
# gets operand b
with m.State("get_b"):
res = self.get_op(m, self.in_b, b, "special_cases")
- m.d.sync += eq([b, self.in_b.ack], res)
+
m.d.sync += eq([b, self.in_b.ack], res)
# ******
# special cases
# ******
# special cases