projects
/
soc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6c73a1b
)
add comments
author
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Fri, 8 May 2020 23:01:22 +0000
(
00:01
+0100)
committer
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Fri, 8 May 2020 23:01:22 +0000
(
00:01
+0100)
src/soc/alu/input_stage.py
patch
|
blob
|
history
diff --git
a/src/soc/alu/input_stage.py
b/src/soc/alu/input_stage.py
index a692a57afbce247d6f44b9951441c2797159b69f..021ac8abd21c2df2a936b5f7c08ff848e500cc16 100644
(file)
--- a/
src/soc/alu/input_stage.py
+++ b/
src/soc/alu/input_stage.py
@@
-14,7
+14,7
@@
class ALUInputStage(PipeModBase):
super().__init__(pspec, "input")
def ispec(self):
- return ALUInputData(self.pspec)
+ return ALUInputData(self.pspec)
# XXX TODO, change to ALUFirstInputData
def ospec(self):
return ALUInputData(self.pspec)
@@
-33,6
+33,8
@@
class ALUInputStage(PipeModBase):
comb += self.o.a.eq(a)
+ # TODO: remove this because it's handled by the Computational Unit?
+
# If there's an immediate, set the B operand to that
with m.If(self.i.ctx.op.imm_data.imm_ok):
comb += self.o.b.eq(self.i.ctx.op.imm_data.imm)