]> rtime.felk.cvut.cz Git - fpga/lx-cpu1/tumbl.git/blobdiff - hw/decode.vhd
Correct unfinished/broken CMPU and CMP instructions and IT(TE) conditions.
[fpga/lx-cpu1/tumbl.git] / hw / decode.vhd
index b0e66ca8b0eb165a6e5fe2001f56fd5164251b70..bb9810dc0e1812a3c9610fe41e9d0b57f8abd524 100644 (file)
@@ -181,6 +181,8 @@ p_decode:
                                                                ELSE
                                                                        alu_Action_v := A_CMP;
                                                                END IF;
+                                                               alu_Op1_v := ALU_IN_NOT_REGA;
+                                                               alu_Cin_v := CIN_ONE;
                                                        END IF;
 
                                                WHEN "100" | "101" =>                             -- IT(U) / ITT(U) / ITE(U)
@@ -200,6 +202,8 @@ p_decode:
                                                                condition_raw_v := rD_v(2 downto 0);
                                                                -- IT instruction isn't writing to anything
                                                                wrb_Action_v := NO_WRB;
+                                                               alu_Op1_v := ALU_IN_NOT_REGA;
+                                                               alu_Cin_v := CIN_ONE;
                                                        END IF;
 
                                                WHEN OTHERS =>