]> Joshua Wise's Git repositories - fpgaboy.git/commitdiff
Fix bugs in SCF and CCF
authorJoshua Wise <joshua@rebirth.joshuawise.com>
Thu, 22 May 2008 03:15:02 +0000 (23:15 -0400)
committerJoshua Wise <joshua@rebirth.joshuawise.com>
Thu, 22 May 2008 03:15:02 +0000 (23:15 -0400)
core/insn_alu_a.v

index a51f8bb0adb2c84fd895768748b973d4c8b7e7b9..5fbadeef6ad0c1ae1904a51c6aae8e6799c49f1c 100644 (file)
                        `_F <= {`_F[7],1'b1,1'b1,`_F[4:0]};
                end
                `INSN_alu_SCF: begin
                        `_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
                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
                end
                endcase
        end
This page took 0.02549 seconds and 4 git commands to generate.