Escolar Documentos
Profissional Documentos
Cultura Documentos
Circuitos Aritmticos
Circuitos Somadores
1. Meio Somador
l O
meio somador (Half-Adder) possibilita a
soma de 2 nmeros binrios de 1 bit;
l Possui
2 bits de entrada e 2 bits de sada
(soma + Carry).
Somadores
1. Meio Somador
TABELA VERDADE
A B S Cout
0 0 0 0 S=AB+AB=AB
0 1 1 0
1 0 1 0 Cout=AB
1 1 0 1
Somadores
1. Meio Somador
Porta X-OR
A B S
TABELA VERDADE 0 0 0
A B S Cout S 0 1 1
1 0 1
0 0 0 0 1 1 0
0 1 1 0 Porta AND
1 0 1 0
A B S
1 1 0 1 0 0 0
Cout 0 1 0
1 0 0
1 1 1
Somadores
Cout
Somadores
2. Somador Completo
2. Somador Completo
S
A B Cin S Cout Cin 0 1
AB
0 0 0 0 0
00 0 1
0 0 1 1 0
01 1 0
0 1 0 1 0
11 0 1
0 1 1 0 1
1 0 0 1 0 10 1 0
1 0 1 0 1
1 1 0 0 1 S = A B Cin
1 1 1 1 1
Somadores
2. Somador Completo
Cout
A B Cin S Cout AB
Cin 0 1
0 0 0 0 0
00 0 0
0 0 1 1 0
01 0 1
0 1 0 1 0
0 1 1 0 1 11 1 1
1 0 0 1 0 10 0 1
1 0 1 0 1
1 1 0 0 1
Cout = AB + ACin + BCin
1 1 1 1 1
Somadores
2. Somador Completo
Cin
Cout
Somadores
Somador de n Bits
Exemplo: 4 bits
1 1 1 Utiliza-se 4 somadores
completos, um para cada bit;
1 0 0 1
Conecta-se cada Cout no Cin
1 0 1 1+
do prximo bit;
1 0 1 0 0
Para o LSB pode ser utilizado
um meio somador.
Somadores
Somador de n Bits
10 0 1
S=AB S = A B Cin
3. Meio Subtrator
3. Meio Subtrator
TABELA VERDADE
A B S Tout
0 0 0 0 S=AB+AB=AB
0 1 1 1
1 0 1 0 Tout = AB
1 1 0 0
Subtratores
Tout
Subtratores
4. Subtrator Completo
4. Subtrator Completo
S
A B Tin S Tout Tin 0 1
AB
0 0 0 0 0
0 0 1 1 1 00 0 1
0 1 0 1 1 01 1 0
0 1 1 0 1 11 0 1
1 0 0 1 0 10 1 0
1 0 1 0 0
1 1 0 0 0 S = A B Tin
1 1 1 1 1
Subtratores
4. Subtrator Completo
Tout
A B Tin S Tout Tin 0 1
AB
0 0 0 0 0
0 0 1 1 1 00 0 1
0 1 0 1 1 01 1 1
0 1 1 0 1 11 0 1
1 0 0 1 0 10 0 0
1 0 1 0 0
1 1 0 0 0
Tout = AB + ATin + BTin
1 1 1 1 1
Subtratores
4. Subtrator Completo
Tin
Tout
Subtratores
Subtrator de n Bits
Exemplo: 4 bits
Utiliza-se 4 subtratores completos,
um para cada bit;
1 0 0 1
0 0 1 1- Conecta-se cada Tout no Tin do
prximo bit;
0 1 1 0
Para o LSB pode ser utilizado um
meio subtrator.
Subtratores
Subtrator de n Bits
10 0 0
S=AB S = A B Tin
5. Circuito Somador/Subtrator
S = A B Cin S = A B Cin
Somadores e Subtratores
5. Circuito Somador/Subtrator
S = A B Cin S = A B Cin
TABELA VERDADE
A B S
0 0 0
0 1 1 S=AB
1 0 1
1 1 0
Somadores e Subtratores
5. Circuito Somador/Subtrator
T/Cin
T/Cout
M=0 soma
M=1 subtrao
Somadores e Subtratores
5. Circuito Somador/Subtrator
6. Operao SOMA
0
Somadores
Somador Paralelo de 4 bits
Desconsiderado
Inversores
Somadores
Somador Paralelo de 4 bits
B3 B2 B1 B0
M
Inversor Controlado
A3 A2 A1 A0
Soma Subtrao
74283 A0 ... A3 parcela minuendo
C0
C4 B0 ... B3 parcela subtraendo
M=0 soma
S3 S2 S1 S0 M = 1 subtrao
Desconsiderado
na Subtrao
ALU
l Circuitos
digitais que efetuam operaes lgicas
e operaes aritmticas entre dois nmeros
binrios;