2081 6

CSC116 ยท 2081 ยท 5 marks

Write about D flip flop with necessary circuit, block diagram, characteristic table and equation.

Write about D flip flop with necessary circuit, block diagram, characteristic table and equation. [5]

Digital LogicChapter 6: Synchronous and Asynchronous Sequential LogicFlip-Flops

Quick answer

The D flip flop (Data or Delay flip flop) is a modification of the SR flip flop. It eliminates the ambiguous condition (S=R=1) by ensuring that the two inputs are always complementary. The single input D is connected directly to S and through an inverter to R, so S and R can never be equal simultaneously.

D Flip Flop

Introduction


Circuit Diagram

        +-------+
    D --+---S   |
        |   NOR FF----> Q
    D --[INV]--R|
        |       |-----> Q'
   CLK -+--CLK  |
        +-------+

A more detailed gate-level circuit:

         +-----+
    D -->|     |
         | AND |----> S ---+
CLK ---->|     |           |   +-----+     Q
         +-----+           +-->| NOR |--+---->
                               |     |  |
         +-----+           +-->| NOR |--+----> Q'
    D -->|INV  |--> D' |   |   +-----+
         +-----+   |   |   |
         +-----+   v   |   |
    D'-->|     |       |   |
         | AND |----> R----+
CLK ---->|     |
         +-----+

Key point: The inverter between D and the R-input ensures R = D' and S = D at all times.


Block Diagram

        +-------------+
        |             |
   D -->|   D  FF   Q |----> Q
        |             |
 CLK -->|  CLK    Q'  |----> Q'
        |             |
        +-------------+

Characteristic Table

CLKDQ (next state)Operation
0XQ (no change)Latch (no clock)
100Reset
111Set

X = don't care

When the clock pulse is active (1):

  • If D = 0, output Q becomes 0 (Reset)
  • If D = 1, output Q becomes 1 (Set)

The output simply follows the D input on the active clock edge.


Characteristic Equation

$$Q(t+1) = D$$

This means the next state of the flip flop is exactly equal to the present value of input D, regardless of the current state Q(t).


Excitation Table

Q(t)Q(t+1)D (required)
000
011
100
111

The required D input is simply equal to the desired next state Q(t+1).


Summary

FeatureDetail
InputsD (single data input), CLK
OutputsQ, Q'
Characteristic EquationQ(t+1) = D
AdvantageEliminates invalid state (S=R=1) of SR flip flop
ApplicationData storage, shift registers, counters

The D flip flop is widely used in registers and memory elements because it stores exactly one bit of data and transfers it to the output on each clock pulse.

Short on time? The 1, 5 and 10 mark versions of this answer, flashcards and practice sets come with a program pass.