Seperation to differen execute operations.
[calu.git] / cpu / src / exec_op / or_op_b.vhd
diff --git a/cpu/src/exec_op/or_op_b.vhd b/cpu/src/exec_op/or_op_b.vhd
new file mode 100755 (executable)
index 0000000..fbe1ec8
--- /dev/null
@@ -0,0 +1,22 @@
+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
+architecture or_op of exec_op is\r
+begin\r
+\r
+calc: process(left_operand, right_operand, alu_state)\r
+       variable alu_result_v : alu_result_rec;\r
+       \r
+begin\r
+               alu_result_v := alu_state;\r
+               \r
+               alu_result_v.result := left_operand or right_operand;\r
+               \r
+               alu_result <= alu_result_v;\r
+end process; \r
+\r
+end architecture or_op;\r