projects
/
soc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8677fd4
)
assign index to temporary
author
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Wed, 20 May 2020 18:49:36 +0000
(19:49 +0100)
committer
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Wed, 20 May 2020 18:49:36 +0000
(19:49 +0100)
src/soc/fu/cr/main_stage.py
patch
|
blob
|
history
diff --git
a/src/soc/fu/cr/main_stage.py
b/src/soc/fu/cr/main_stage.py
index 2ec877e5e8e02c33cde39f033f236163c258c02c..a7056aee03c6ce0cccbdb719040c597f0eeff108 100644
(file)
--- a/
src/soc/fu/cr/main_stage.py
+++ b/
src/soc/fu/cr/main_stage.py
@@
-78,7
+78,9
@@
class CRMainStage(PipeModBase):
comb += bfa.eq(BFA)
for i in range(4):
- comb += cr_out_arr[bf*4 + i].eq(cr_arr[bfa*4 + i])
+ idx = Signal(2, name="idx%s" % i, reset_less=True)
+ comb += idx.eq(bf*4+1)
+ comb += cr_out_arr[idx].eq(cr_arr[idx])
##### crand, cror, crnor etc. #####
with m.Case(InternalOp.OP_CROP):