Professional Documents
Culture Documents
E1.2 Digital Electronics I 10.1 Nov 2007 E1.2 Digital Electronics I 10.2 Nov 2007
– labels in the circles to show the state number and the associated – an input of S=1, R=0 causes a transition to state 2
output for that state – any other input leaves the circuit in state 1
– an arrow for each possible transition between states – (an input of S=R=1 is not allowed for RS flip-flops)
– labels on the arrows to show the required conditions to transit • In state 2
between states – 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.3 Nov 2007 E1.2 Digital Electronics I 10.4 Nov 2007
State Table of RS-Flip-Flop
E1.2 Digital Electronics I 10.5 Nov 2007 E1.2 Digital Electronics I 10.6 Nov 2007
Q\SR 00 01 11 10
• The output of the circuits is 1; the inputs are S=1, R=0.
What is the next output? 0 0 0 X 1
– 1 1 1 0 X 1
E1.2 Digital Electronics I 10.7 Nov 2007 E1.2 Digital Electronics I 10.8 Nov 2007
Q\SR 00 01 11 10 Implementation from Characteristic Equations
0 0 0 X 1
1 1 0 X 1 • The flip-flop can be implemented using gates
• It is common to re-write using NAND gates only
• The Boolean expression is then obtained by grouping
terms as usual
S
1
+ &
Q
Q = QR + S
Q + = QS + R Q + = (QR ). S
&
R Q
• Such equations are called characteristic equations Q + = (QS ) R 1
Asynchronous RS Flip-flop
E1.2 Digital Electronics I 10.9 Nov 2007 E1.2 Digital Electronics I 10.10 Nov 2007
JK State Implementation
• Moore Model State Diagram • Similar principles to Moore model but different labelling
• State circles are labelled only with state numbers
1
0 1/0 2/1 1
• Outputs are written next to inputs on the arrows
0 • E.g. JK Flip-flop
Inputs J and K
• Assigned State Table Characteristic Equation Output
E1.2 Digital Electronics I 10.13 Nov 2007 E1.2 Digital Electronics I 10.14 Nov 2007
Cascaded Flip-flops
Timing Parameters of Flip-flops
• For correct operation of flip-flops • Hold time of a flip-flop is always less than the
– data inputs must not change either just before or just after propagation delay between CLOCK and Q
clock pulses • Rising edge of CLOCK causes the data at A to go to B
• If data changes near the clock the flip-flop might and data at B to go to C in example below
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:
A 1D B 1D C
– setup and hold times
– defined by the manufacturer
C1 C1
CLOCK
CLOCK
DATA
t t
setup hold
E1.2 Digital Electronics I 10.15 Nov 2007 E1.2 Digital Electronics I 10.16 Nov 2007
• What data does C end up with?
– B doesn't change immediately because of the propagation delay
– The input to the second flip-flop is value of B just before the
CLOCK rising edge i.e. B->C; A->B
• Hence
– This circuit shifts the data one position to the right on each clock
pulse