Asynchronous Circuits PDF
Asynchronous Circuits PDF
9-1
Outline
Asynchronous Sequential Circuits Analysis Procedure Circuits with Latches Design Procedure Reduction of State and Flow Tables Race-Free State Assignment Hazards Design Example
9-2
Sequential Circuits
Consist of a combinational circuit to which storage elements are connected to form a feedback path Specified by a time sequence of inputs, outputs, and internal states Two types of sequential circuits:
Synchronous Asynchronous
primary difference
9-3
change in the input variables No clock signal is required Have better performance but hard to design due to timing problems
Synchronized by a periodic train of clock pulses Much easier to design (preferred design style) 9-4
Response quickly without waiting for a clock pulse Only a few components are required
Used when the input signals may change independently of internal clock
Asynchronous in nature
Used in the communication between two units that have their own independent clocks
Only a short term memory May not really exist due to original gate delay Current state (small y) Next state (big Y) Have some delay in response to input changes
9-6
Secondary variable:
Excitation variable:
Operational Mode
Steady-state condition:
Current states and next states are the same Difference between Y and y will cause a transition No simultaneous changes of two or more variables The time between two input changes must be longer than the time it takes the circuit to a stable state The input signals change one at a time and only when the circuit is in a stable condition
Fundamental mode:
9-7
Outline
Asynchronous Sequential Circuits Analysis Procedure Circuits with Latches Design Procedure Reduction of State and Flow Tables Race-Free State Assignment Hazards Design Example
9-8
Transition Table
Transition table is useful to analyze an asynchronous circuit from the circuit diagram Procedure to obtain transition table:
1. Determine all feedback loops in the circuits 2. Mark the input (yi) and output (Yi) of each feedback loop 3. Derive the Boolean functions of all Ys 4. Plot each Y function in a map and combine all maps into one table 5. Circle those values of Y in each square that are equal to the value of y in the same row
9-9
Y = Y1Y2
stable !!
9-10
State Table
Y changes to 01 unstable y becomes 01 after a short delay stable at the second row The next state is Y=01
Each row must have at least one stable state Analyze each state in this way can obtain its state table
Present State 0 0 1 1 0 1 0 1 0 1 0 1 Next State X=0 0 1 0 1 0 0 1 1 X=1 1 1 0 0
Flow Table
Similar to a transition table except the states are represented by letter symbols Can also include the output values Suitable to obtain the logic diagram from it Primitive flow table: only one stable state in each row (ex: 9-4(a))
Assign to each state a distinct binary value (convert to a transition table) Obtain circuits from the map The binary state assignment (to avoid race) The output assigned to the unstable states
Two difficulties:
9-13
Race Conditions
Race condition:
two or more binary state variables will change value when one input variable changes Cannot predict state sequence if unequal delay is encountered
The final stable state does not depend on the change order of state variables The change order of state variables will result in different stable states Should be avoided !!
Non-critical race:
Critical race:
9-14
Direct the circuit through intermediate unstable states with a unique state-variable change It is said to have a cycle
Stability Check
Asynchronous sequential circuits may oscillate between unstable states due to the feedback
Must check for stability to ensure proper operations Any column has no stable states unstable Ex: when x1x2=11 in Fig. 9-9(b), Y and y are never the same
Y = x1x2 + x2y
9-16
Outline
Asynchronous Sequential Circuits Analysis Procedure Circuits with Latches Design Procedure Reduction of State and Flow Tables Race-Free State Assignment Hazards Design Example
9-17
The traditional configuration of asynchronous circuits is using one or more feedback loops
Produce an orderly pattern in the logic diagram with the memory elements clearly visible Will be analyzed first using the method for asynchronous circuits
9-18
feedback
S=1, R=1 (SR = 1) should not be used SR = 0 is normal mode * should be carefully checked first 9-19
feedback
S=0, R=0 (SR = 1) should not be used SR = 0 is normal mode * should be carefully checked first 9-20
10
Analysis Procedure
Analysis Example
S1=x1y2 R1=x1x2 S1R1 = x1y2x1x2 = 0 (OK) S2=x1x2 R2=x2y1 S2R2 = x1x2x2y1 = 0 (OK)
Y1=S1 + R1y1 =x1y2 + (x1+x2)y1 =x1y2+x1y1+x2y1 Y2=S2 + R2y2 =x1x2 + (x2+y1)y2 =x1x2+x2y2+y1y2
feedback
critical race !!
9-22
11
Implementation Procedure
3. Draw the logic diagram using k latches together with the gates required to generate the S and R
(for NAND latch, use the complemented values in step 2)
9-23
Implementation Example
Excitation table: list the required S and R for each possible transition from y to Y
9-24
12
Debounce Circuit
Mechanical switches are often used to generate binary signals to a digital circuit
It may vibrate or bounce several times before going to a final rest Cause the signal to oscillate between 1 and 0
A debounce circuit can remove the series of pulses from a contact bounce and produce a single smooth transition
Position A (SR=01) bouncing (SR=11) Position B (SR=10) Q = 1 (set) Q = 1 (no change) Q = 0 (reset)
9-25
Outline
Asynchronous Sequential Circuits Analysis Procedure Circuits with Latches Design Procedure Reduction of State and Flow Tables Race-Free State Assignment Hazards Design Example
9-26
13
Design Procedure
1. Obtain a primitive flow table from the given design specifications 2. Reduce the flow table by merging rows in the primitive flow table 3. Assign binary state variables to each row of the reduced flow to obtain the transition table 4. Assign output values to the dashes associated with the unstable states to obtain the output map 5. Simplify the Boolean functions of the excitation and output variables and draw the logic diagram
9-27
Accept the value of D when G=1 Retain this value after G goes to 0 (D has no effects now) Dash marks are given when both inputs change simultaneously Outputs of unstable states are dont care
Input D G 0 1 1 1 0 0 1 0 1 0 0 0 Output Q 0 1 0 0 1 1 Comments D=Q because G=1 D=Q because G=1 After states a or d After state c After states b or f After state e
State a b c d e f
9-28
14
Two or more rows can be merged into one row if there are non-conflicting states and outputs in every columns After merged into one row:
Dont care entries are overwritten Stable states and output values are included A common symbol is given to the merged row
Directly use the simplified Boolean function for the excitation variable Y
9-30
15
Listed according to the transition table and the excitation table of SR latch
9-31
Objective: no momentary false outputs occur when the circuit switches between stable states If the output value is not changed, the intermediate unstable state must have the same output value
If the output value changed, the intermediate outputs are dont care
16
Outline
Asynchronous Sequential Circuits Analysis Procedure Circuits with Latches Design Procedure Reduction of State and Flow Tables Race-Free State Assignment Hazards Design Example
9-33
State Reduction
Two states are equivalent if they have the same output and go to the same (equivalent) next states for each possible input
State reduction procedure is similar in both sync. & async. sequential circuits
For completely specified state tables: use implication table For incompletely specified state tables: use compatible pairs
9-34
17
9-35
Step 2: delete the node with unsatisfied conditions Step 3: repeat Step 2 until equivalent states found
af because cd bf because ce equivalent states : (a,b) (d,e) (d,g) (e,g) d == e == g Present Next State Output 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 *Reduced State Table*
9-36
18
Some next states and outputs are dont care Several synchronous circuits also have this property Instead, we are going to find compatible states Two states are compatible if they have the same output and compatible next states whenever specified Determine all compatible pairs Find the maximal compatibles Find a minimal closed collection of compatibles
9-37
Compatible Pairs
We can adjust the dashes to fit any desired condition Must have no conflict in the output values to be merged
compatible pairs : (a,b) (a,c) (a,d) (b,e) (b,f) (c,d) (e,f)
output conflict !
output conflict !
9-38
19
Maximal Compatibles
A group of compatibles that contains all the possible combinations of compatible states
Obtained from a merger diagram A line in the diagram represents that two states are compatible All its diagonals connected
The set of chosen compatibles must cover all the states and must be closed
Closed covering There are no implied states The implied states are included within the set (a,c,d) (b,e,f) are left in the set All six states are still included No implied states according to its implication table 9-23(b)
9-40
20
*(a,b) (c,d,e) (X) implied (b,c) is not included in the set * better choice: (a,d) (b,c) (c,d,e) all implied states are included 9-41
Outline
Asynchronous Sequential Circuits Analysis Procedure Circuits with Latches Design Procedure Reduction of State and Flow Tables Race-Free State Assignment Hazards Design Example
9-42
21
Only one variable can change at any given time when a state transition occurs States between which transitions occur will be given adjacent assignments
Two binary values are said to be adjacent if they differ in only one variable
To ensure that a transition table has no critical races, every possible state transition should be checked
A tedious work when the flow table is large Only 3-row and 4-row examples are demonstrated
9-43
Three states require two binary variables Outputs are omitted for simplicity Adjacent info. are represented by a transition diagram a and c are still not adjacent in such an assignment !!
b has a transition to c
9-44
22
A race-free assignment can be obtained if we add an extra row to the flow table
Only provide a race-free transition between the stable states 00 10 11 (no race condition)
9-45
Sometimes, just one extra row may not be sufficient to prevent critical races
With one or two diagonal transitions, there is no way of using two binary variables that satisfy all adjacency
9-46
23
9-47
Multiple-Row Method
24
Outline
Asynchronous Sequential Circuits Analysis Procedure Circuits with Latches Design Procedure Reduction of State and Flow Tables Race-Free State Assignment Hazards Design Example
9-49
Hazards
Due to different propagation delay in different paths Cause temporary false-output values in combinational circuits Cause a transition to a wrong state in asynchronous circuits Not a concern to synchronous sequential circuits
9-50
25
Static hazard: a momentary output change when no output change should occur If implemented in sum of products:
9-51
Hazard-Free Circuit
Hazard can be detected by inspecting the map The change of input results in a change of covered product term Hazard exists
To eliminate the hazard, enclose the two minterms in another product term
Redundant !!
9-52
26
Implement the asynchronous circuit with SR latches can also remove static hazards
A momentary 0 has no effects to the S and R inputs of a NOR latch A momentary 1 has no effects to the S and R inputs of a NAND latch Replaced by a latch
Hazards exist !!
9-53
Given:
S = AB + CD R = AC
Merged !!
9-54
27
Essential Hazards
Besides static and dynamic hazards, another type of hazard in asynchronous circuits is called
essential hazard
Caused by unequal delays along two or more paths that originate from the same input Cannot be corrected by adding redundant gates Can only be corrected by adjusting the amount of delay in the affected path
Outline
Asynchronous Sequential Circuits Analysis Procedure Circuits with Latches Design Procedure Reduction of State and Flow Tables Race-Free State Assignment Hazards Design Example
9-56
28
One output: Q
Comments Initial output is 0 After state a Initial output is 1 After state c After states d or f After states e or a After states b or h After states g or c
State a b c d e f g h
9-58
29
9-59
9-60
30
Logic Diagram
9-61
31