Combinational Logic Circuits: Prof. David Márquez Viloria
Combinational Logic Circuits: Prof. David Márquez Viloria
Combinational Logic Circuits: Prof. David Márquez Viloria
entity full_adder_vhdl_code is
Port ( A : in STD_LOGIC;
B : in STD_LOGIC;
Cin : in STD_LOGIC;
S : out STD_LOGIC;
Cout : out STD_LOGIC);
end full_adder_vhdl_code;
ENTITY sumador4bits IS
PORT ( a,b :IN std_logic_vector(3 downto 0); -- entradas a sumar
cin : IN std_logic; -- acarreo en la entrada
cout: OUTstd_logic; -- acarreo de salida
suma : OUT std_logic_vector(3 downto 0) --resultado );
END sumador4bits;
begin
end Behavioral;