Seperation to differen execute operations.
[calu.git] / cpu / src / exec_op.vhd
index b3ef75b8978eeebb04f6554235ca6a6b06c40872..0c2b8bd352d689d7e43ff8756ae15921f3a85b10 100755 (executable)
@@ -2,24 +2,22 @@ library IEEE;
 use IEEE.std_logic_1164.all;\r
 use IEEE.numeric_std.all;\r
 \r
-entity exec_op is\r
+use work.common_pkg.all;\r
+use work.alu_pkg.all;\r
 \r
-       generic (\r
-                       -- active reset value\r
-                       RESET_VALUE : std_logic;\r
-                       -- active logic value\r
-                       LOGIC_ACT : std_logic\r
-                       \r
-                       );\r
+entity exec_op is\r
+       --some modules won't need all inputs\r
        port(\r
-               --System inputs\r
+       --System inputs\r
+       \r
                        clk : in std_logic;\r
                        reset : in std_logic;\r
-               --\r
-                       \r
-                       \r
-                       alu_state : in alu_result_rec;\r
-                       alu_state_out : out alu_result_rec\r
+       --operation inputs\r
+                       left_operand : in gp_register_t;\r
+                       right_operand : in gp_register_t;\r
+                       op_detail  : in op_opt_t;\r
+                       alu_state  : in alu_result_rec;\r
+                       alu_result : out alu_result_rec\r
                );\r
                \r
-end execute_stage;\r
+end exec_op;\r