Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
#3
Pulse
Narrowing
Circuit
#1
En
#2
#4
Q
Gated S-R Latch
The moment C goes from 0 to 1, a pulse is generated (EN=1) and the state of S and R cause a
change firstly in gates #3 and #4 and then in gates #1 and #2. At all other times, EN = 0 and
the flip-flop holds its current state regardless of the states of S and R. This can be seen from
the timing diagram shown below.
EN
On the rising edge of each clock pulse the output Q will change depending on the control
inputs S and R. Since the rising or positive transition of the clock results in triggering of the
flip-flop, the flip-flop is said to be positive edge-triggered. If the clock signal was inverted
before applying to the pulse transition detector circuit (pulse narrowing circuit), the flip-flop
would be negative edge-triggered.
The summary symbol for an S-R flip-flop is as follows. The triangle on the clock input
indicates that the flip-flop changes state only on the edge of a clock pulse.
S
Q
C
Q
A method of edge triggering - Pulse Transition Detector Circuit (Pulse narrowing circuit)
t1 t2
t2- t1
There is a small delay through the inverter on one input to the NAND gate. This implies that
the inverted clock pulse arrives at the NAND gate a few nanoseconds after the non-inverted
clock pulse. This produces an output spike with a time duration of a few nanoseconds (the
gate delay of an inverter).
D Type Flip-Flop
A D type or Data flip-flop is in effect a 1-bit memory. The D Type flip-flop is constructed by
connecting the S input and the R input of an S-R flip-flop via an inverter, as shown below.
S
Q
CLK
C
Q
The summary symbol for this (positive edge-triggered) D-type flip-flop is given below.
D
Q
C
Q
D
Q
C
Q
The truth table for a D flip-flop is given below. Note that there are only two states possible,
D=0 (S=0 and R=1) or D=1 (S=1 and R=0).
D
CLK
Comments
Reset (stores a 0)
Set (stores a 1)
An example of a timing diagram for a positive edge triggered D flip-flop is given below.
PRE
Q
C
Q
R
CLR
It is good design practice to use these asynchronous inputs only for initialisation of the
system to a know state.
J
C
Comments
Q0
Q0
Q0
Q0
J
Q
C
Q
NO
Q
J
Pulse
Narrowing
Circuit
En
CLR
Edge-triggered J-K flip-flop with active-low preset and clear inputs
PRE
Q
C
Q
K
CLR
Toggle Flip-Flop
A T (or Toggle) flip-flop is constructed by connecting the J-input and the K-input of a J-K
flip-flop together.
T
J
Q
C
Q
Comments
Q0
Q0
Q0
Q0
Ex 1: What is the output Q if the T input is set to 1 ? Assume that Q is preset to 1. Fill in Q
and Q on the timing diagram. Comment on the result.
Master-Slave flip-flops
Master-slave flip-flops are a class of flip-flop, which has largely been replaced by the edgetriggered devices. However, they may still be encountered in some existing equipment.
As an example, consider the master-slave D flip-flop. It consists of two D-latches connected
together as follows.
D
EN
Q1
Q2
EN
Q1
Master latch
Q2
Slave latch
With this arrangement, the transfer of data from the input to the output of the flip-flop occurs
on the rising edge of the clock pulse. This means that the flip-flop is positive edge triggered.
Q1
Q2
The summary symbol for the above circuit is the same as before.
D
Q
C
Q
10