Академический Документы
Профессиональный Документы
Культура Документы
DR T WALINGO LECTURE 6
UNIVERSITY OF KWAZULU-NATAL
UNIVERSITY OF KWAZULU-NATAL
SYNCHRONOUS VS ASYNCHRONOUS
UNIVERSITY OF KWAZULU-NATAL
Fundamental mode of operation: Only one input variable may change at a time. The time between input changes is greater than the time required to reach a steady state.
UNIVERSITY OF KWAZULU-NATAL DIGITAL ELECTRONICS SERIES
PROCEDURE: Determine all feedback loops. Assign Yi's (excitation variables), yi's (the secondary variables). Derive the Boolean functions of all Yi's. Plot each Y function in a map. Construct the state table. Circle the stable states. May plot a flow table.
UNIVERSITY OF KWAZULU-NATAL
EXAMPLE 1
UNIVERSITY OF KWAZULU-NATAL
EXAMPLE 1: ANALYSIS
The state changes through the unstable states until it reaches a stable state where it can only change with an input change.
UNIVERSITY OF KWAZULU-NATAL
x1 x2 y1y2 Y1Y2
UNIVERSITY OF KWAZULU-NATAL
Transition table
x1 x2 y
0 1
00
0 1
01
0 0
11
0 1
10
1 1
a=0 b=1
x1 x2 z
0 1
00
0 1
01
0 0
11
0 1
10
Flow table
1 1
No outputs on unstable states
Output table
UNIVERSITY OF KWAZULU-NATAL 9 DIGITAL ELECTRONICS SERIES
FLOW TABLE
Flow table: a transition table in which states are named by letter symbols instead of specific binary values.
The flow table also includes the output values of the circuit for each stable state. Primitive flow table: one that has only one stable state in each row. E.g Fig. a) Fig b) has more than one stable state in the same row. It has two inputs, two states, one output. Behavior of Fig b) With x1 = 0, Circuit state = a If x1 goes to 1 while x2 = 0, the circuit goes to state b
With x1x2 = 11, state may be at a or b depending upon its previous state State b is maintained if x1x2 change from 10 to 11 State a is maintained if x1x2 change from 01 to 11 Why not talk of 00 to 11 Fundamental mode.
z = 1, if the state is b and x1x2 = 11, z = 0, otherwise
UNIVERSITY OF KWAZULU-NATAL DIGITAL ELECTRONICS SERIES
UNIVERSITY OF KWAZULU-NATAL
RACE CONDITION
Occurs when two or more binary variables change value in response to a change in an input variable. When unequal delays are encountered, a race condition may cause the state variables to change in an unpredictable manner. Example to change from 00 11, due to unequal delay we can have
00 10 11 00 01 11
The order by which the state variables change may not be known in advance. Two types: Noncritical race: The final stable state the circuit reached does not depend on the order in which the state variables change. Critical race: End up in two or more different stable states depending on the order in which the state variables change.
UNIVERSITY OF KWAZULU-NATAL
NON-CRITICAL RACES
Race condition: Y1Y2: 0011 two variable changes in response to x, 01. Three possible transitions in each case shown as indicated in the diagram. They eventually lead to a stable state. Non critical race condition: The final stable state is the same irrespective of the order of the change of the state variables.
UNIVERSITY OF KWAZULU-NATAL
CRITICAL RACES
Race condition: Y1Y2: 0011 two variable changes in response to x, 01. Three possible transitions in each case shown as indicated in the diagram. They eventually lead to a stable state. Critical race condition: Different transitions lead to different final states, hence critical race.
Final total state in Fig 9.6a is y1y2x = 111 or 011 or 101. Different states. Fig. 9.6b is y1y2x = 111 or 101. Different states. Critical race condition Should be avoided for proper operation.
UNIVERSITY OF KWAZULU-NATAL DIGITAL ELECTRONICS SERIES
CYCLES
Races can be avoided by making a proper binary assignment to the state variables such that only one state can change at any one time. Intermediate unstable states with a unique state variable change are inserted to avoid races. Cycle: a unique sequence of unstable states that the circuit goes through before the final state. It is a way of avoiding critical races. When state is 00 and input changes x 01 Fig 9-8 a) Final total stable state is y1y2x=101. Fig 9-8 b) Final total stable state is y1y2x=111. Fig 9-8 c) the cycle does not terminate in a stable state, but keeps going from one unstable state to another as shown.
UNIVERSITY OF KWAZULU-NATAL
STABILITY CONSIDERATIONS
An asynchronous sequential circuit may become unstable and oscillate between unstable states because of the presence of feedback.
Behavior of circuit for input x1x2 X1x2=00 Y goes to stable state 0 X1x2=01 Y goes to stable state 1 X1x2=10 Y goes to stable state 0 Column 11 has no stable state. X1x2=11 when Y=0 it goes to 1 when Y=1 it goes to 0 Y oscillates between 1 and 0 and is a square wave. An Unstable state Care must be taken to ensure the circuit does not go to an unstable state.
UNIVERSITY OF KWAZULU-NATAL DIGITAL ELECTRONICS SERIES
Condition to be avoided S=R=1 since Q=Q not acceptable. Possibility of a race condition. becomes Solution SR=0. Since SR= SR+SR(0)=S(R+R)=S
UNIVERSITY OF KWAZULU-NATAL DIGITAL ELECTRONICS SERIES
UNIVERSITY OF KWAZULU-NATAL
Critical race condition when the circuit is initially in total state y1y2x1x2 = 1101 and x2 changes from 1 to 0. If Y1 changes to 0 before Y2, the circuit goes to total state 0100 instead of 0000
UNIVERSITY OF KWAZULU-NATAL DIGITAL ELECTRONICS SERIES
Logic circuit transition table/map 1. Label each latch output with Yi and its external feedback path (if any) with yi for i = 1, 2, , k 2. Derive the Boolean functions for Si and Ri inputs in each latch 3. Check whether SR=0 for each NOR latch or whether SR=0 for each NAND latch
If not satisfied, its possible that the circuit may not operate properly
5. Construct a map with the ys representing the rows and the x inputs representing the columns 6. Plot the value of Y=Y1Y2Yk in the map 7. Circle all stable states where Y=y. The resulting map is then the transition table
UNIVERSITY OF KWAZULU-NATAL
20
UNIVERSITY OF KWAZULU-NATAL
21