PPT ½½¶óÀ̵å
- Arithmetic Operator (3)
-- ¾Æ·¡ÀÇ Code¿¡ ´ëÇÑ Architecture¸¦ ±×·Á º¸½Ã¿À.
library ieee;
use ieee.std_logic_1164.all;
use ieee.std_logic_unsigned.all;
entity adder is
port (
a,b,c,d : in std_logic_vector(3 downto 0);
y : out std_logic_vector(3 downto 0)
);
end adder;
architecture a_adder of adder is
begin
y <= (a + b) + (c + d);
end a_adder;