VHDL Code For Arithmetic and Logic Unit
VHDL Code For Arithmetic and Logic Unit
library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
use IEEE.STD_LOGIC_ARITH.ALL;
use IEEE.STD_LOGIC_UNSIGNED.ALL;
entity alu is
end alu;
begin
a or b when "10",
a and b when others;
end Behavioral;
(a)
(b)