Professional Documents
Culture Documents
10.1
Nov 2007
10.2
Nov 2007
State Diagrams
There are two ways to draw state diagrams:
Moore model and Mealy model we will look first at the Moore model using the Reset-Set (RS) flip-flop as an example
10 2/1
00 10
In state 1
labels in the circles to show the state number and the associated output for that state an arrow for each possible transition between states labels on the arrows to show the required conditions to transit between states
Q output = 0 an input of S=1, R=0 causes a transition to state 2 any other input leaves the circuit in state 1 (an input of S=R=1 is not allowed for RS flip-flops)
State Number
Associated Q Output
In state 2
Q output = 1 an input of S=0, R=1 causes a transition to state 1 any other input leaves the circuit in state 2
E1.2 Digital Electronics I 10.4 Nov 2007
10.3
Nov 2007
Example
Present State 00 1 2 1 2 Next state inputs: SR 01 1 1 11 X X 10 2 2
Shows the next state which will be entered for all possible combinations of inputs The ordering of the inputs is same as for Karnaugh map
The circuits is in state 2; the inputs are S=1, R=0. What is the next state?
state 2
10.5
Nov 2007
10.6
Nov 2007
The output of the circuits is 1; the inputs are S=1, R=0. What is the next output?
1
10.7
Nov 2007
10.8
Nov 2007
Q\SR 0 1
00 0 1
01 0 0
11 X X
10 1 1
&
Q + = (QR ). S Q + = (QS ) R
R 1 & Q
Asynchronous RS Flip-flop
10.9
Nov 2007
10.10
Nov 2007
JK State Implementation
Moore Model State Diagram
10 11 00 01 1/0 01 11 2/1 00 10
Characteristic Equation
Q + = J Q + KQ = J Q. KQ
when J=1, K=0 then Q+ = Q+Q = 1 when J=0, K=1 then Q+ = 0 when J=1, K=1, then Q+ = Q (toggle)
Present Output 00 0 1
E1.2 Digital Electronics I
11 1 0
10 1 1
Nov 2007
Note that the JK is not normally implemented directly from this equation A master-slave configuration is used instead
0 1
10.12
Nov 2007
D-type Implementation
Moore Model State Diagram
1 0 1/0 0 2/1 1
Characteristic Equation
00/0 01/0
10/1, 11/1
1 1 1
10.13
Q =D
0 0
Nov 2007
10.14
Nov 2007
Cascaded Flip-flops
Hold time of a flip-flop is always less than the propagation delay between CLOCK and Q Rising edge of CLOCK causes the data at A to go to B and data at B to go to C in example below
If data changes near the clock the flip-flop might enter a metastable state
neither 0 nor 1
The amount of time before and after the clock pulse in which data transitions are not allowed are called:
setup and hold times defined by the manufacturer
CLOCK DATA t
E1.2 Digital Electronics I
1D C1
1D C1
CLOCK
t
setup
hold
Nov 2007 E1.2 Digital Electronics I 10.16 Nov 2007
10.15
Hence
This circuit shifts the data one position to the right on each clock pulse
10.17
Nov 2007