From f8c46ff554cb7f4c067eab1234faf729118c4c25 Mon Sep 17 00:00:00 2001 From: Joshua Wise Date: Wed, 21 May 2008 23:15:02 -0400 Subject: [PATCH] Fix bugs in SCF and CCF --- core/insn_alu_a.v | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/insn_alu_a.v b/core/insn_alu_a.v index a51f8bb..5fbadee 100644 --- a/core/insn_alu_a.v +++ b/core/insn_alu_a.v @@ -61,10 +61,10 @@ `_F <= {`_F[7],1'b1,1'b1,`_F[4:0]}; end `INSN_alu_SCF: begin - `_F <= {`_F[7:5],1'b1,`_F[3:0]}; + `_F <= {`_F[7],3'b001,`_F[3:0]}; end `INSN_alu_CCF: begin - `_F <= {`_F[7:5],~`_F[4],`_F[3:0]}; + `_F <= {`_F[7],2'b00,~`_F[4],`_F[3:0]}; end endcase end -- 2.43.0