Animated Slides For Implimentation
Animated Slides For Implimentation
F = ab + ab
Q: Convert to equation
a 0 0 0 0 1 1 1 1 b 0 0 1 1 0 0 1 1 c 0 1 0 1 0 1 0 1 F
0 0 0 0 0 1 1 1
a 0 0 1 1
b 0 1 0 1
Decoder Example
New Years Eve Countdown Display
Microprocessor counts from 59 down to 0 in binary on 6-bit output Want illuminate one of 60 lights for each binary number Use 6x64 decoder
4 outputs unused
210
0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0
i0 i1 i2 i3 i4 i5 d0 d1 d2 d3
21 0
0 0 1 0 0 1 0 0 1 0 0 0
0 1 2 3
essor c o r op r ic M e
0 0 0 0 0 0
58 59
b
Combinational n1 logic n0 s1 s0
FSM outputs
3
FSM inputs
outpu FSM
a
clk
State register
FSM outputs
FSM inputs
b
Combinational n1 logic n0 s1 s0 clk
State register
b
Combinational n1 logic n0 s1 s0 clk
State register
n1 = s1s0b + s1s0b + s1s0b + s1s0b n1 = s1s0 + s1s0 n0 = s1s0b + s1s0b + s1s0b n0 = s1s0b + s1s0
Digital Design Copyright 2006 Frank Vahid
b
b
Combinational Logic x
FSM outputs
FSM ou
a
x
Combinational n1 logic n0 s1 s0
FSM inputs
clk
n1
State register
n0
s1 clk
s0
State register
0010 1
Save 3 pounds 2 Present weight b clk
load
I3 I2 I1 I0 Q3 Q2 Q1 Q0
0011
0111+0001
(answer should be 01000)
a b ci F A co 1 s 0
(b) 000
a b ci F A co 0 s 0
101 0
a b ci F A co s 1 co2 0 10 1
101
a b ci F A co 1 (c) s 0 101
1 1
a b ci F A co 1 s
a
0 1 1 0
0 00 1
a b ci F A
co s
a b ci F A
co 1 s 0
a b ci F A
co 1 (d) s 0
a b ci F A
co 1 s 0 Output after 8ns (4 FA delays)
Magnitude Comparator
How does it work?
1011 = 1001 ?
1 = 1 a3 b3 0 0 a2 b2 1 0 a1 b1 a b 1 1 a0 b0 a b AgtB AeqB AltB
a b a b 0 0 Igt in_gt out_gt in_gt out_gt 1 1 Ieq in_eq out_eq in_eq out_eq 0 0 in_lt out_lt in_lt out_lt Ilt S tage3 S tage2 (a) 0 = 0 a2 b2 a b
1 0 a1 b1
a b 0 in_gt out_gt in_gt out_gt 1 in_eq out_eq in_eq out_eq 0 in_lt out_lt in_lt out_lt
S tage3
S tage2
(b)
S tage1
S tage0
Magnitude Comparator
1011 = 1001 ?
1 1 0 0 1 > 0 a1 b1 1 a0 1 b0 a3 b3 a2 b2 a Igt 0 in_gt in_lt 1 Ieq 0 Ilt b out_gt out_lt a in_gt in_lt b out_gt out_lt a in_gt b out_gt 1 a b
in_eq out_eq
in_eq out_eq
in_gt out_gt 0 in_eq out_eq in_eq out_eq 0 in_lt out_lt in_lt out_lt S tage1 (c) S tage0
S tage3
S tage2
1 a0
1 b0
a3 b3
a2 b2
a1 b1
a Igt 0
b out_gt out_lt
a in_gt in_lt
b out_gt out_lt
a in_gt in_lt
b out_gt out_lt
a in_gt
b out_gt 1
Final answer appears on the right AgtB Takes time for AeqB answer to AltB ripple from left to right Thus called carry-ripple style after the carry-ripple adder
Even though theres no carry involved
10
1 Ieq 0 Ilt
in_gt in_lt
in_eq out_eq
in_eq out_eq
in_eq out_eq
S tage2 (d)
S tage1
cnt
0 0 1 0 0 1
i2 i1 i0
3x 8 dcd
d7 d6 d5 d4 d3 d2 d1 d0
a
lig hts
11
rd
32
32
Datapath
Bus interface D
12
S1
S2
S3
S0
S1
S2
13
S1
S2
S3
x=0 x=1
S0
S1
S2
14
A 00 0001
D 11 1000
B 01 0010 x=1
C 10 0100 x=1
Fewer gates and only one level of logic less delay than two levels, so faster clock frequency
n1
x x
8 binary 6 4 one-hot 2
Digital Design Copyright 2006 Frank Vahid
s2
s1
s0
State register n0 n1
n2
1 2 3 4 delay (gate-delays)
n3
15