E&CE 223 Digital Circuits & Systems: Major Topics
E&CE 223 Digital Circuits & Systems: Major Topics
E&CE 223
Digital Circuits & Systems
Lecture Transparencies
(Asynchronous Sequential Circuits)
M. Sachdev
216 of 243
Department of Electrical & Computer Engineering, University of Waterloo
E & C E 2 2 3
Section 5
■ Major topics
❍ Secondary variables
❍ Excitation table
❍ Transition table
❍ Race hazard
❍ Cycle and stability
❍ Primitive flow table
❍ Merged flow table
❍ Hazards
217 of 243
Department of Electrical & Computer Engineering, University of Waterloo
E & C E 2 2 3
Introduction
218 of 243
Department of Electrical & Computer Engineering, University of Waterloo
E & C E 2 2 3
Definitions
■ Design restrictions
❍ Normally requires that inputs do not change simultaneously
(i.e., within the settling time of the circuit after an input change)
❍ Hence, input changes only in stable states
■ Excitation table
❍ K map of Yi and outputs in terms of yi and inputs
219 of 243
Department of Electrical & Computer Engineering, University of Waterloo
E & C E 2 2 3
■ Transition table
❍ Excitation table for Yi with stable states marked
x’
2
■ Flow table x1
❍ Y1 = x’ 2x1 +x2y1
❍ x’
2
x
1
Y
2
x2
y1
Delay1
y
2
Delay2
220 of 243
Department of Electrical & Computer Engineering, University of Waterloo
E & C E 2 2 3
Y2Y1
221 of 243
Department of Electrical & Computer Engineering, University of Waterloo
E & C E 2 2 3
222 of 243
Department of Electrical & Computer Engineering, University of Waterloo
E & C E 2 2 3
Flow Table
■ Let 00 = a; 01 = b; 11 = c; 01 = d
❍ 00 = a x2x1
❍ 01 = b 00 01 11 10
present
❍ 11 = c state
a a b a d
❍ 01 = d
The resulting flow table is
b a c
b b
a c c b
c
d a c a d
next state
223 of 243
Department of Electrical & Computer Engineering, University of Waterloo
E & C E 2 2 3
Race Conditions
10 11 10 10
224 of 243
Department of Electrical & Computer Engineering, University of Waterloo
E & C E 2 2 3
Stability Consideration
x x
1 2
00 01 11 10
y
y 0 1 1 0
0
x1 Y
1 0 1 0 0
x
2
225 of 243
Department of Electrical & Computer Engineering, University of Waterloo
E & C E 2 2 3
0 0 1 0
0 1 0 1
Q’
0 0 0 1
S 1 1 0 0
SR
Y 00 01 11 10
R y
0 0 0 0 1
1 1 0 0 1
S
y Delay Y = S + R’y
226 of 243
Department of Electrical & Computer Engineering, University of Waterloo
E & C E 2 2 3
1 0 0 1
1 1 0 1 (after SR = 10)
0 1 1 0
R 1 1 1 0 (after SR = 01)
0 0 1 1
Delay
SR
00 01 11 10
y
y 1 1 0 0
0
Y
R
1 1 1 1 0
S
Y= S’ + Ry
227 of 243
Department of Electrical & Computer Engineering, University of Waterloo
E & C E 2 2 3
Analysis Example
x1
R1
Y1
S1
y
2
y Y
1 2
R2
S2
x2
228 of 243
Department of Electrical & Computer Engineering, University of Waterloo
E & C E 2 2 3
01 01 01 11 11
00 11 11 10
11
10 00 10 11 10
Implementation: Example
x1x2 x1x2
y 00 01 11 10 y 00 01 11 10
0 0 0 0 1 0 X X X 0
1 0 0 X X 1 1 1 0 0
S = x1x’2 R = x’1
230 of 243
Department of Electrical & Computer Engineering, University of Waterloo
E & C E 2 2 3
Implementation: Procedure
231 of 243
Department of Electrical & Computer Engineering, University of Waterloo
E & C E 2 2 3
Design Example
232 of 243
Department of Electrical & Computer Engineering, University of Waterloo
E & C E 2 2 3
b -, - a, - b, 1 e, -
c c, 0 a, - -, - d, -
d c, - -, - b, - d, 0
e f, - -, - b, - e, 1
f f, 1 a, - -, - e, -
❍ The primitive flow table has only one stable state in each row
233 of 243
Department of Electrical & Computer Engineering, University of Waterloo
E & C E 2 2 3
a c, - a, 0 b, - -, - b -, - a, - b, 1 e, -
c c, 0 a, - -, - d, - e f, - -, - b, - e, 1
d c, - -, - b, - d, 0
f f, 1 a, - -, - e, -
DG
00 01 11 10
a, c, d c, 0 a, 0 b, - d, 0
b, e, f f, 1 a, - b, 1 e, 1
234 of 243
Department of Electrical & Computer Engineering, University of Waterloo
E & C E 2 2 3
0 0 0 1 0 D
1 1 0 1 1
y
Y = DG +G’y
235 of 243
Department of Electrical & Computer Engineering, University of Waterloo
E & C E 2 2 3
Unstable States
a a, 0 b, - 0 0
b c, - b, 0 X 0
c c, 1 d, - 1 1
d a, - d, 1 X 1
236 of 243
Department of Electrical & Computer Engineering, University of Waterloo
E & C E 2 2 3
237 of 243
Department of Electrical & Computer Engineering, University of Waterloo
E & C E 2 2 3
■ Two techniques:
❍ (i) Implications table, and
❍ (ii) Merger diagram
■ Implication table
❍ Tabulation of possible equivalent states (rows)
❍ Tick for equivalent, and X for not equivalent
❍ Two states, a, b are equivalent iff
(i) outputs are equivalent
(ii) transfers to the same (or equivalent state(s) for given input
sequence
238 of 243
Department of Electrical & Computer Engineering, University of Waterloo
E & C E 2 2 3
239 of 243
Department of Electrical & Computer Engineering, University of Waterloo
E & C E 2 2 3
c X X
d X X X
e X X X
c,e X
f c,d X X X X
a,b
g X X X d,e d,e X
a b c d e f
240 of 243
Department of Electrical & Computer Engineering, University of Waterloo
E & C E 2 2 3
■ Reduced table
Present Next Output
state state
X=0 X=1 X=0 X=1
a d a 0 0
c d f 0 1
d a d 1 0
f c a 0 0
241 of 243
Department of Electrical & Computer Engineering, University of Waterloo
E & C E 2 2 3
Hazards
G
a Y
Q
X G
b b
Y G’
❍ Static 1 hazard
242 of 243
Department of Electrical & Computer Engineering, University of Waterloo
E & C E 2 2 3
■ Dynamic hazards
❍ the output changes multiple times instead of 0 -->1 or 1 --> 0
transition
243 of 243
Department of Electrical & Computer Engineering, University of Waterloo