Revert "assign index to temporary"
authorMichael Nolan <mtnolan2640@gmail.com>
Wed, 20 May 2020 19:17:55 +0000 (15:17 -0400)
committerMichael Nolan <mtnolan2640@gmail.com>
Wed, 20 May 2020 19:17:55 +0000 (15:17 -0400)
This reverts commit e0e859f73a3e38365f8a5fef20628d6a0aae4c1f.

src/soc/fu/cr/main_stage.py

index 71c10ff20c2aca43c50d3bc932e3d24d067b91df..9c54e850a3136f597ec4b1279cfae1d87644f34f 100644 (file)
@@ -78,9 +78,7 @@ class CRMainStage(PipeModBase):
                 comb += bfa.eq(BFA)
 
                 for i in range(4):
-                    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])
+                    comb += cr_out_arr[bf*4 + i].eq(cr_arr[bfa*4 + i])
 
             ##### crand, cror, crnor etc. #####
             with m.Case(InternalOp.OP_CROP):