DR T WALINGO LECTURE 7
UNIVERSITY OF KWAZULU-NATAL
DESIGN PROCEDURE
STEPS Obtain a primitive flow table from the given specification. Reduce the flow table by merging rows in the primitive flow table. (STATE REDUCTION) Assign binary states variables to each row of the reduced flow table to obtain the transition table. (STATE ASSIGNMENT) Assign output values to the dashes associated with the unstable states to obtain the output maps. Simplify the Boolean functions of the excitation and output variables and draw the logic diagram. SUMMARY OF STEPS A. From the specification obtain the primitive table. B. From the primitive table obtain the transition and output table. C. Implement your circuit.
UNIVERSITY OF KWAZULU-NATAL 2 DIGITAL ELECTRONICS SERIES
UNDERSTANDING QUESTION
Principle of operation - Input D, Gate G D goes through when G is High In memory when G is low
Step 1: Primitive Flow Table A primitive flow table is a flow table with only one stable total state in each row. The total state consists of the internal state combined with the input. To derive the primitive flow table, first a table with all possible total states in the system is needed. Identify and circle the stable states and add the information (other states) to retain memory. Note that the one input changes at a time DG= 01 to 10 & 11 to 00 not allowed There are other ways but will be discussed with other examples
UNIVERSITY OF KWAZULU-NATAL
Q 0 0 0 1 1 1
d,1
x,x d,x
b,x
b,x x,x
x,x
e,1 e,x DG
f,x
f,x f,1
1
1 1
a b c d e f
01 b,x b,0 x,x b,x b,x x,x 01 b,x b,0 x,x b,x b,x x,x
11 x,x e,x e,x x,x e,1 e,x 11 x,x e,x e,x x,x e,1 e,x
10 c,x x,x c,0 f,x f,x f,1 10 c,x x,x c,0 f,x f,x f,1
a b c d e f
UNIVERSITY OF KWAZULU-NATAL
DG
a
b c d e f
01 b,0 b,x
11 e,x e,1
10 c,0 f,1
00 a b a,0 b,1
01 a,0 a,x
11 b,x b,1
10 a,0 b,1
UNIVERSITY OF KWAZULU-NATAL
UNIVERSITY OF KWAZULU-NATAL
UNIVERSITY OF KWAZULU-NATAL
10
UNIVERSITY OF KWAZULU-NATAL
11
UNIVERSITY OF KWAZULU-NATAL
12
in one group
no implied states
UNIVERSITY OF KWAZULU-NATAL
13
UNIVERSITY OF KWAZULU-NATAL
14
UNIVERSITY OF KWAZULU-NATAL
15
UNIVERSITY OF KWAZULU-NATAL
16
UNIVERSITY OF KWAZULU-NATAL
17
UNIVERSITY OF KWAZULU-NATAL
18
HAZARDS
In the design of asynchronous sequential circuit, the circuit must be operated in fundamental mode with only one input changing at any time, and must be free of critical races. Hazards: unwanted switching transients at the output because different paths exhibit different propagation delays. May cause the circuit to malfunction. in combinational circuits: may cause temporary falseoutput value. in asynchronous sequential circuits: may result in a transition to a wrong stable state. Need to check for possible hazards and determine whether causing improper operations.
UNIVERSITY OF KWAZULU-NATAL 19 DIGITAL ELECTRONICS SERIES
HAZARDS
UNIVERSITY OF KWAZULU-NATAL
20
HAZARD TYPES
UNIVERSITY OF KWAZULU-NATAL
21
HAZARDS
UNIVERSITY OF KWAZULU-NATAL
22
HAZARDS
Draw final circuit
Hazard exists whenever 2 adjacent 1s in a K-map are not covered by a single product. To remove all static hazards, find a cover that includes each pair of adjacent 1s.
UNIVERSITY OF KWAZULU-NATAL 23 DIGITAL ELECTRONICS SERIES
HAZARDS - ELIMINATION
UNIVERSITY OF KWAZULU-NATAL
24
ESSENTIAL HAZARDS
An essential hazard is the result of the effects of a single input variable change reaching one feedback path before another feedback path. Essential hazards cannot be corrected by adding redundant gates as in static hazards. They can always be eliminated in a realization by the insertion of sufficient delays in the feedback paths. Facility in doing this comes only with experience.
UNIVERSITY OF KWAZULU-NATAL
25
...
UNIVERSITY OF KWAZULU-NATAL
26
UNIVERSITY OF KWAZULU-NATAL
27
CLASS EXERCISE
1. Design a latch circuit with one input T and one output Q. The latch is a memory element that toggles the value of Q when T = 1 and retains this value after T goes to 0. 2. Design a negative edge triggered T FF.
UNIVERSITY OF KWAZULU-NATAL
28
Obtaining the primitive flow table. Determine all the possible states. For every input combination how many outputs would you have. Table 1 Name the primitive stable states. Table 2. Fill in the next temporary states observing the rules. Table 3 E.g. From (a,0) when input changes by 1, The circuit will toggle to an output of zero and hence the best next state is (d,0). Note that the operation is in the fundamental mode.
UNIVERSITY OF KWAZULU-NATAL
29
Step2: State Reduction No further state reduction Step 3: State assignment T
a
00 T
01
0
00,0 00,x 11,1 11,x
1
10,x 01,0 01x 10,1
1 d,x b,0
00 00 11
b,x
10
11
c,x
d,1
10
0
x 1 x
x
0 x 1
11
10
11
10
Y1 T y1 T y2
UNIVERSITY OF KWAZULU-NATAL
Y2 T y1 Ty2
30
Z y1
Checking carefully we identify a hazards in the first and second term and adjust it. Our final equations are
Y1 T y1 T y2 y1 y2
Y2 T y1 Ty2 y1 y2
Z y1
UNIVERSITY OF KWAZULU-NATAL
31
UNIVERSITY OF KWAZULU-NATAL
32