+ All Categories
Home > Documents > 98 Digital Electronics Chap09

98 Digital Electronics Chap09

Date post: 30-Sep-2015
Category:
Upload: abhinaba-mal
View: 238 times
Download: 1 times
Share this document with a friend
80
Asynchronous Sequential Logic Chapter 9
Transcript
  • Asynchronous Sequential LogicChapter 9

    Digital Circuits

    9.1 IntroductionSynchronous sequential circuitsFlip-flops share a single clock

    Asynchronous sequential circuits

    Digital Circuits

    Fig. 9.1Block diagram of an asynchronous sequential circuit

    Digital Circuits

    no clock pulsedifficult to designdelay elements: the propagation delaymust attain a stable state before the input is changed to a new value

    DO NOT use asynchronous sequential circuits unless it is absolutely necessarye.g., in you exam

    Digital Circuits

    9-2. Analysis ProcedureThe procedureDetermine all feedback loopsAssign Yi's (excitation variables), yi's (the secondary variables)Derive the Boolean functions of all Yi'sPlot each Y function in a mapConstruct the state tableCircle the stable states

    Digital Circuits

    Examples

    the excitation variables: Y1 and Y2Y1 = xy1+ x'y2Y2 = xy1' + x'y2Fig. 9.2Example of an asynchronous sequential circuit

    Digital Circuits

    Maps and transition table

    the y variables for the rowsthe external variable for the columnsCircle the stable statesY = yFig. 9.3Maps and transition table for the circuit of Fig. 9.2

    Digital Circuits

    The differencesynchronous design: state transition happens only when the triggering edge of the clockasynchronous design: the internal state can change immediately after a change in the inputThe total statethe internal state + the input valuey: the present stateY: the next state

    Digital Circuits

    The state transition table

    Digital Circuits

    A flow tablea state transition table with its internal state being symbolized with letters

    Fig. 9-4(a) is called a primitive flow table because it has only one stable state in each rowFig. 9.4Example of flow tables

    Digital Circuits

    state assignment derive the logic diagram

    Fig. 9.5Derivation of a circuit specified by the flow table of Fig. 9.4(b)

    Digital Circuits

    Race conditionswhen two or more binary state variables change value00 1100 10 11 or 00 01 11a noncritical raceif they reach the same final stateotherwise, a critical state

    Digital Circuits

    Noncritical raceFig. 9.6Examples of non-critical races

    Digital Circuits

    Critical race

    Fig. 9.7Examples of critical races

    Digital Circuits

    Races may be avoidedrace-free assignment: only one state can change at any one timeinsert intermediate unstable states with a unique state-variable changeA cyclea unique sequence of unstable states

    Digital Circuits

    A cyclea unique sequence of unstable states

    Fig. 9.8Examples of cycles

    Digital Circuits

    Stability Considerationsa square waveform generator?

    Fig. 9.9Example of an unstable circuit

    Digital Circuits

    9-3 Circuits with LatchesAsynchronous sequential circuitswere know and used before synchronous designthe use of SR latches in asynchronous circuits produces a more orderly patternreduce the circuit complexity

    Digital Circuits

    SR latch - two cross-coupled NOR gates

    Fig. 9.10SR latch with NOR gates

    Digital Circuits

    Y = ((S+y)'+R)' = (S+y)R' = SR'+R'ythe state transition tablean unpredictable result when SR: 11 00SR = 0 in operationSR' + SR = S(R'+R) = S Y = S + R'y when SR = 0

    two cross-coupled NAND gateS'R' = 0Y = (S(Ry)')' = S'+ Ry when S'R' = 0 S'R' latch

    Digital Circuits

    Fig. 9.11SR latch with NAND gates

    Digital Circuits

    Analysis exampleFig. 9.12Examples of a circuit with SR latch

    Digital Circuits

    Label each latch output with Yi and its external feedback path with yiDerive the Boolean functions for the Si and RiS1 = x1y2R1 = x'1x'2S2 = x1x2R2 = x'2y1Check whether SR=0 for each NOR latch or whether S'R'=0 for each NAND latchS1R1 = x1y2x'1x'2 = 0S2R2 = x1x2x'2y1 = 0

    Digital Circuits

    Evaluate Y = S +R'y for each NOR latch or Y = S' + Ry for each NAND latchY1 = x1y2 + (x1+x2)y1 = x1y2+x1y1+x2y1Y2 = x1x2 + (x2+y'1)y2 = x1x2+x2y2+y'1y2Construct the state transition tableCircle all stable statesRace example:Let initial state is y1y2x1x2=1101 input x2 is changed to 0 if Y1 change to 0 before Y2 then y1y2x1x2=0100 instead of 0000

    Fig. 9.13Transition table for the circuit of Fig. 9.12

    Digital Circuits

    Analysis procedure:

    Digital Circuits

    Latch Excitation Table For SR latch:

    Digital Circuits

    Implementation ExampleDetermine the Boolean functions for the S and R inputs of each latchGiven a transition table

    From maps: the simplified Boolean functions areNOR latchNAND latch

    Digital Circuits

    Fig. 9.14Derivation of a latch circuit from a transition table

    Digital Circuits

    derive a pair of maps for Si and Riderive the simplified Boolean functions for each Si and RiDO NOT make Si and Ri equal to 1 in the same minterm squaredraw the logic diagramfor NAND latches, use the complemented values of those Si and Ri

    General Procedure for Implementing a Circuit with SR Latches

    Digital Circuits

    Debounce circuitremove the series of pulses that result form a contact bounce and produce a single smooth transition of the binary signal

    TTL: input = logic-1 when openFig. 9.15Debounce circuit

    Digital Circuits

    9-4 Design ProcedureDesign specificationsa gated latchtwo inputs, G (gate) and D (data)one output, QG = 1: Q follows DG = 0 : Q remains unchanged

    Digital Circuits

    All the total statescombinations of the inputs and internal states

    simultaneous transitions of two input variables are not allowed

    Digital Circuits

    Primitive flow table

    dash marks in each row that differs in two or more variables from the input variables associated with the stable statedon't care condition for the next state and outputFig. 9.16Primitive flow table

    Digital Circuits

    Reduction of the primitive flow tabletwo or more rows in the primitive flow table can be merged if there are non-conflicting states and outputs in each of the columns

    Digital Circuits

    Fig. 9.17Reduction of the primitive flow table

    Digital Circuits

    Transition table and logic diagramState assignmentdiscussed in details in Sec. 9-6a:0, b:1

    Fig. 9.18Transition table and output map for gated latch

    Digital Circuits

    the outputlogic diagram

    Fig. 9.19Gated-latch logic diagram

    Digital Circuits

    SR latch implementation

    Fig. 9.20Circuit with SR latch

    Digital Circuits

    Assign outputs to unstable statesthe unstable states have unspecified output valuesno momentary false outputs occur when the circuit switches between stable states

    00: 01 1: 10 1, 1 0: -

    Fig. 9.21Assigning output values to unstable states

    Digital Circuits

    The procedure for making the assignment to outputs associated with unstable states can be summarized follows:

    Digital Circuits

    Summarya primitive flow tablestate reductionstate assignmentoutput assignmentSimplify the Boolean functions of the excitation and output variables and draw the logic diagram

    Digital Circuits

    9-5 Reduction of State and Flow TableEquivalent statesfor each input, two states give exactly the same output and go to the same next states or to equivalent next states

    Digital Circuits

    (a,b) are equivalent if (c,d) are equivalent(a,b) imply (c,d)(c,d) imply (a,b)both pairs are equivalent

    Digital Circuits

    Implication Tablethe checking of each pair of states for possible equivalence

    Digital Circuits

    Fig. 9.22Implication table

    Digital Circuits

    the equivalent states(a,b), (d,e), (d,g), (e,g)the reduced states(a,b), (c), (d,e,g), (f)the state table

    Digital Circuits

    Merging of the flow tableconsider the don't-care conditionscombinations of inputs or input sequences may never occurtwo incompletely specified states that can be combined are said to be compatiblefor each possible input they have the same output whenever specified and their next states are compatible whenever they are specifieddetermine all compatible pairsfind the maximal compatiblesfind a minimal closed covering

    Digital Circuits

    Compatible pairs(a,b) (a,c) (a,d) (b,e) (b,f) (c,d) (e,f)

    Fig. 9.23Flow and implication tables

    Digital Circuits

    Maximal compatiblesa group of compatibles that contains all the possible combinations of compatible statesmerger diagramFig. 9.24Merger diagram

    Digital Circuits

    an isolated dot: a state that is not compatible to any other statea line: a compatible paira triangle: a compatible with three statesan n-state compatible: an n-sided polygon with all its diagonals connectedFig. 9.24Merger diagram

    Digital Circuits

    Closed covering conditioncover all the statesclosedno implied states or the implied states are included within the set(a,c,d) (b,e,f)cover all the statesno implied statesanother example

    Digital Circuits

    Fig. 9.25Choosing a set of compatibles

    Digital Circuits

    (a,b) (c,d,e)cover all the statesbut not closed(b,c) are implied but not included(a,d) (b,c) (c,d,e)cover all the statesclosedimplied states: (b,c) (d,e) (a,d)the same state can be repeated more than once

    Digital Circuits

    9-6 Race-Free State AssignmentTo avoid critical racesonly one variable changes at any given timeThree-row flow-table exampleflow-table and transition diagram example

    Fig. 9.26Three-row flow-table example

    Digital Circuits

    an extra row is addedno stable state in row d

    Fig. 9.27Flow-table with an extra row

    Digital Circuits

    Fig. 9.28Flow-table with an extra rowTransition Table

    Digital Circuits

    Four-row flow-table exampleflow-table and transition diagram

    Fig. 9.29Four-row flow-table example

    Digital Circuits

    add extra rows

    Fig. 9.30Choosing extra rows for the flow table

    Digital Circuits

    the modified flow table

    Fig. 9.31State assignment to modified flow table

    Digital Circuits

    Multiple-row methodless efficientmultiple equivalent states for each state

    Fig. 9.32Multiple-row assignment

    Digital Circuits

    9-7 HazardsUnwanted switching transients at the outputdifferent paths exhibit different propagation delaystemporary false-output value in combinational circuitsmay result in a transition to a wrong stable state in asynchronous sequential circuits

    Digital Circuits

    Hazards in combinational circuitsexamples

    Fig. 9.33Circuits with hazards

    Digital Circuits

    static 1-hazard (sum of products)the removal of static 1-hazard guarantees that no static 0-hazards or dynamic hazards

    Fig. 9.34Types of hazards

    Digital Circuits

    static 0-hazard (product of sum)Y = (x1+x2')(x2+x3)The remedythe circuit moves from one product term to anotheradditional redundant gate

    Fig. 9.35Maps illustrating a hazard and its removal

    Digital Circuits

    Hazard-free circuitFig. 9.36Hazard-free circuit

    Digital Circuits

    Hazards in sequential circuitsin general, no problem for synchronous designan asynchronous exampleFig. 9.37Hazard in a asynchronous sequential circuit

    Digital Circuits

    111 110111 010Implementation with SR latchesa momentary 0 signal at the S or R inputs of NOR latch has no effecta momentary 1 signal at the S or R inputs of NAND latch has no effect

    Digital Circuits

    Implementation with SR latchesFig. 9.38Latch implementation

    Digital Circuits

    Implementation with SR latches For NAND SR latch:

    Digital Circuits

    Essential Hazardsasynchronous sequential circuitsunequal delays along two or more paths that originate from the same inputcannot be corrected by adding redundant gatesthe delay of feedback loops > delays of other signals that originate from the input terminals

    Digital Circuits

    Summary of design procedureState the design spec.Derive the primitive flow tableReduce the flow table by merging the rowsRace-free state assignmentObtain the transition table and output mapObtain the logic diagram using SR latches

    9.8 Design Example

    Digital Circuits

    Design Specification

    Digital Circuits

    Primitive Flow tableFig. 9.39Primitive flow table

    Digital Circuits

    Merging of the Flow TableFig. 9.40Implication table Compatible pairs: Maximal compatible set:

    Digital Circuits

    Merging of the Flow TableFig. 9.41Merger diagram

    Digital Circuits

    Merging of the Flow TableFig. 9.42Reduced flow table

    Digital Circuits

    State Assignment and Transition TableFig. 9.43Transition diagram

    Digital Circuits

    State Assignment and Transition TableFig. 9.44Transition table and output map

    Digital Circuits

    Logic DiagramFig. 9.45Maps for latch inputs

    Digital Circuits

    Logic DiagramFig. 9.46Logic diagram of negative-edge-triggered T flip-flop


Recommended