Seperation to differen execute operations.
[calu.git] / cpu / src / alu.vhd
diff --git a/cpu/src/alu.vhd b/cpu/src/alu.vhd
new file mode 100755 (executable)
index 0000000..b94421a
--- /dev/null
@@ -0,0 +1,26 @@
+library IEEE;\r
+use IEEE.std_logic_1164.all;\r
+use IEEE.numeric_std.all;\r
+\r
+use work.common_pkg.all;\r
+use work.alu_pkg.all;\r
+\r
+entity alu is\r
+       --some modules won't need all inputs\r
+       port(\r
+       --System inputs\r
+       \r
+                       clk : in std_logic;\r
+                       reset : in std_logic;\r
+       --operation inputs\r
+                       condition       :       condition_t;\r
+                       op_group : in op_info_t;\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 alu;\r
+\r