Академический Документы
Профессиональный Документы
Культура Документы
Técnicas Digitais
Aula 16
4. Circuitos Combinacionais: o multiplicador
matricial, deslocadores, projeto de uma ULA.
11000
+
1100 3o produto parcial (= multiplicando)
1001000
+
0000 4o produto parcial (= zero)
101101
+
1111 3o produto parcial (= multiplicando)
1101001
+
1111 4o produto parcial (= multiplicando)
0 0 1 1
x x x x
0 1 0 1
0 0 0 1
Generalização
B2 B1 B0 ← multiplicando
x A2 A1 A0 ← multiplicador
A2 B2 A2 B1 A2 B0 - - ← 30 produto parcial
M5 M4 M3 M2 M1 M0 ← resultado
A1 B2 A1 B1 A1 B0
A2 B2 A2 B1 A2 B0 Carry out
Somador de 3 bits
Carry out
Somador de 3 bits
M5 M4 M3 M2 M1 M0
X Y
3 3
*
6
+ A2 B2 A2 B1 A2 B0 carry
out
Somador de 3 bits
9 x custo de um inversor
carry
out Somador de 3 bits
M5 M4 M3 M2 M1 M0
entrada
serial
desloca
0 1 0 1 0 1 0 1
S3 S2 S1 S0
entrada
serial
desloca
1 0 1 0 1 0 1 0
S3 S2 S1 S0
extensor
EL EA EL EA EL EA EL EA
aritmético
x3 y3 x2 y2 x1 y1 x0 y0
c3 c2 c1
c4 SC SC SC SC c0
f3 f2 f1 f0
a3 b3 a2 b2 a1 b1 a0 b0
EL EA EL EA EL EA EL EA
x3 y3 x2 y2 x1 y1 x0 y0
c4 SC c3 SC c2 SC c1 SC c0
f3 f2 f1 f0
a3 b3 a2 b2 a1 b1 a0 b0
Se M=1, yi:
S1 S0 bi yi
0 0 0 1
0 0 1 1
0 1 0 0
EL EA EL EA EL EA EL EA
0 1 1 1
1 0 0 1
x3 y3 x2 y2 x1 y1 x0 y0 1 0 1 0
c4 SC c3 SC c2 SC c1 SC c0 1 1 0 0
1 1 1 0
Se M=0, yi=0
f3 f2 f1 f0
yi = M.S1’.bi + M.S0’.bi’
S0
S1
M
EA
yi
a3 b3 a2 b2 a1 b1 a0 b0
M S1 S0 xi
0 0 0 ai’
EL EA EL EA EL EA EL EA
0 0 1 ai.bi
0 1 0 ai
x3 y3 x2 y2 x1 y1 x0 y0
0 1 1 ai+bi
c4 SC c3 SC c2 SC c1 SC c0 1 ? ? ai
f3 f2 f1 f0
M=0 M=1
S1S0 00 01 11 10 00 01 11 10
ai bi
00 1
01 1 1
11 1 1 1 1 1 1 1
10 1 1 1 1 1 1
S0
S1
EL
xi
S0
S1
EL EA EL EA EL EA EL EA
x3 y3 x2 y2 x1 y1 x0 y0
c3 c2 c1 c0
c4 SC SC SC SC
overflow f3 f2 f1 f0
S0
cout S0
S1
ULA ULA S1
M
cout ou oveflow M
oveflow F F
Descrição do funcionamento
M S1 S0 nome da função
0 0 0 complementa
0 0 1 E
0 1 0 identidade
0 1 1 OU
1 0 0 decrementa
1 0 1 soma
1 1 0 subtrai
1 1 1 incrementa