From 6d1fa01c24bd36c0977ab67381d056e16636c881 Mon Sep 17 00:00:00 2001 From: Michael Nolan Date: Wed, 20 May 2020 14:33:15 -0400 Subject: [PATCH] Fix small bug in op_crop --- src/soc/fu/cr/main_stage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/soc/fu/cr/main_stage.py b/src/soc/fu/cr/main_stage.py index eaa3f1f6..00417651 100644 --- a/src/soc/fu/cr/main_stage.py +++ b/src/soc/fu/cr/main_stage.py @@ -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 ##### -- 2.30.2