diff options
Diffstat (limited to 'rtl/core/alu/alu.sv')
| -rw-r--r-- | rtl/core/alu/alu.sv | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/rtl/core/alu/alu.sv b/rtl/core/alu/alu.sv index 2f71d6a..c0ccd32 100644 --- a/rtl/core/alu/alu.sv +++ b/rtl/core/alu/alu.sv @@ -8,6 +8,7 @@ module core_alu input logic[W - 1:0] a, b, input logic c_in, + c_logic, output logic[W - 1:0] q, output psr_flags nzcv, @@ -106,7 +107,7 @@ module core_alu v = 1'bx; unique case(op) `ALU_AND, `ALU_EOR, `ALU_TST, `ALU_TEQ, `ALU_ORR, `ALU_MOV, `ALU_BIC, `ALU_MVN: - c = c_in; + c = c_logic; `ALU_ADD, `ALU_ADC, `ALU_CMN: begin c = c_add; |
