blob: 9b269bfae38f8e10b1c9f2000b6d85b390c7ff31 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
LIBRARY IEEE;
USE IEEE.STD_LOGIC_1164.ALL;
USE IEEE.STD_LOGIC_UNSIGNED.ALL;
entity full_adder_1 is
port (A, B, CI:in std_logic; S, CO: out std_logic);
end full_adder_1;
architecture behavior of full_adder_1 is
begin
S <= (A XOR B) XOR CI;
CO <= (A AND B) OR (B AND CI) OR (CI AND A);
end architecture;
|