Skip to main content

Edge triggered SR flip-flop

Short answer

An edge-triggered S-R flip-flop changes state only at the active clock edge (e.g., rising edge) via a narrow pulse from an edge detector. At that edge, S=0,R=0 holds, S=0,R=1 resets Q to 0, S=1,R=0 sets Q to 1, and S=1,R=1 is invalid. Q remains unchanged at all other times.

Explain the operation of edge triggered S-R Flip-Flop with timing diagram and truth table.

An edge-triggered S-R flip-flop changes state only at the active edge of the clock (rising edge for positive-edge, falling edge for negative-edge). At all other times, changes on S and R have no effect. It is made of a clocked SR latch with a pulse-transition (edge) detector on the clock input.

Circuit

           +-------------+
S -------->| NAND  NAND  |--+-- Q
           | steering    |  |
CLK-[edge]>| gates latch |  |
  detector | NAND  NAND  |--+-- Q'
R -------->|             |
           +-------------+

Edge detector (positive edge):
CLK --+----------[AND]--> narrow pulse
      +-[NOT]----[   ]
       (delay of NOT gives a short spike)

The NOT gate's delay makes CLKCLK and CLK‾\overline{CLK} both 1 for a few nanoseconds just after the rising edge, so the AND gives a very narrow pulse. Only during this pulse are the steering gates enabled and the latch can change.

Truth table (positive-edge-triggered)

CLKSRQn+1Q_{n+1}Action
0, 1 or fallingXXQnQ_nNo change
Rising edge00QnQ_nNo change
Rising edge010Reset
Rising edge101Set
Rising edge11?Invalid

Timing diagram

edge   1     2     3     4     5
CLK  __|‾‾|__|‾‾|__|‾‾|__|‾‾|__|‾‾|__
S    ‾‾‾‾‾|___________|‾‾‾‾‾‾‾‾‾‾‾‾‾‾
R    _____|‾‾‾‾‾‾‾‾‾‾‾|______________
Q    __|‾‾‾‾‾|___________|‾‾‾‾‾‾‾‾‾‾‾
  • Edge 1: S=1,R=0S=1, R=0: Q sets to 1.
  • Edge 2: S=0,R=1S=0, R=1: Q resets to 0.
  • Edge 3: S=0,R=1S=0, R=1: Q stays 0.
  • Edge 4: S=1,R=0S=1, R=0: Q sets to 1.
  • Edge 5: S=1,R=0S=1, R=0: Q stays 1.

Q changes only just after a rising edge, even though S and R change at other times. This sampling at one instant makes edge-triggered flip-flops suitable for synchronous counters and registers. A negative-edge-triggered SR flip-flop works the same way, but on the falling edge (shown by a bubble with the triangle at CLK).

✓ Answer checked by Claude Opus 5.5 (high effort)

All Digital Logic chapter 6 questions →