Fix small bug in op_crop
authorMichael Nolan <mtnolan2640@gmail.com>
Wed, 20 May 2020 18:33:15 +0000 (14:33 -0400)
committerMichael Nolan <mtnolan2640@gmail.com>
Wed, 20 May 2020 18:33:31 +0000 (14:33 -0400)
src/soc/fu/cr/main_stage.py

index eaa3f1f6bd2db2249568770f84f68dfeb3a5bc77..00417651c8fa9c08221224223d651db7a1e6e4c2 100644 (file)
@@ -108,7 +108,7 @@ class CRMainStage(PipeModBase):
 
                 # Use the two input bits to look up the result in the LUT
                 idx = Signal(2, reset_less=True)
-                comb += idx.eq(Cat(cr_arr[bb], cr_arr[bb]))
+                comb += idx.eq(Cat(cr_arr[bb], cr_arr[ba]))
                 comb += cr_out_arr[bt].eq(lut[idx])
 
             ##### mtcrf #####