From e0e859f73a3e38365f8a5fef20628d6a0aae4c1f Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Wed, 20 May 2020 19:49:36 +0100 Subject: [PATCH] assign index to temporary --- src/soc/fu/cr/main_stage.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/soc/fu/cr/main_stage.py b/src/soc/fu/cr/main_stage.py index 2ec877e5..a7056aee 100644 --- 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): -- 2.30.2