Professional Documents
Culture Documents
Su Mad or Completo 2 Bits
Su Mad or Completo 2 Bits
Su Mad or Completo 2 Bits
FACULTAD DE INGENERIA
DOCENTE
ING. VILDOZO ZAMBRANO MARIA ELENA
ALUMNO
CANDIDO MOLANES MIOVICH
CURSO
CIRCUITOS DIGITALES II
TACNA - PERU
AO
2015
1. MEDIO SUMADOR
A
0
0
1
1
B
0
1
0
1
S
0
1
1
0
Co
0
0
0
1
Co = AB
2. CODIGO
--Carry1
entity cout is
Port ( a : in STD_LOGIC;
b : in STD_LOGIC;
cout : out STD_LOGIC);
end cout;
architecture Behavioral of cout is
begin
cout <= a and b;
end Behavioral;
--Suma1
entity sum is
Port ( a : in STD_LOGIC;
b : in STD_LOGIC;
s : out STD_LOGIC);
end sum;
architecture Behavioral of sum is
begin
s <= a xor b;
end Behavioral;
-- Instanciamos 1 medio sumador llamando las funciones sum y cout
entity medio_sumador1 is
Port ( A : in STD_LOGIC;
B : in STD_LOGIC;
C : out STD_LOGIC;
S : out STD_LOGIC);
end medio_sumador1;
architecture Behavioral of medio_sumador1 is
component sum is
Port ( a : in STD_LOGIC;
b : in STD_LOGIC;
s : out STD_LOGIC);
end component;
component cout is
Port (a : in STD_LOGIC;
b : in STD_LOGIC;
cout : out STD_LOGIC);
end component;
begin
3. TA BLA DE OPRACION
A0
0
0
0
0
1
1
1
B0
1
0
0
1
0
0
1
Cin
0
0
1
0
1
0
1
A1
0
0
0
0
0
1
1
B1
0
1
1
0
1
1
1
So
1
0
1
0
0
1
1
S1
0
1
1
0
0
0
1
C1
0
0
0
1
1
1
1
4. SIMUACION