6 Synchronous And Asynchronous Sequential Logic

Digital Logic · Unit 6 · 10 hrs

Synchronous and Asynchronous Sequential Logic

Exam-focused notes for Synchronous and Asynchronous Sequential Logic (Digital Logic, CSC116): what the TU syllabus asks and how it has actually been tested, with 10 solved past questions from this unit.

Synchronous and Asynchronous Sequential Logic in short

This chapter introduces sequential logic, in which a circuit's output depends not only on its present input but also on its present state, held in one or more flip-flops. It covers the standard flip-flop types and how they are triggered, how an existing clocked circuit is analyzed, how a new one is designed from a state description, the difference between synchronous and asynchronous operation, and the latch circuits that flip-flops are themselves built from.

Synchronous and Asynchronous Sequential Logic: notes

Flip-Flops

A flip-flop is the basic memory element of a sequential circuit, capable of storing one bit of information. It has two outputs, $Q$ and $\overline{Q}$, which are always complementary, and exactly two stable states: the set state ($Q=1$) and the reset state ($Q=0$). Once in either state, a flip-flop remains there indefinitely until an external signal directs it to change, which is what allows it to hold information across time rather than reacting only to the instantaneous input.

The SR flip-flop has a set input $S$ and a reset input $R$:

$S$$R$$Q_{next}$
00$Q$ (no change)
010
101
11undefined

The $S=R=1$ condition is undefined because it asks the circuit to be set and reset at the same time, which the other flip-flop types are built to avoid.

The D flip-flop has a single data input $D$ and simply transfers that value to the output on every clock pulse, $Q_{next}=D$, which removes the SR flip-flop's undefined condition entirely at the cost of being unable to hold a "no change, no matter what" state independent of the input.

The JK flip-flop refines the SR flip-flop by resolving its ambiguous case: inputs $J$ and $K$ behave exactly like $S$ and $R$ except that $J=K=1$ is now well defined, causing the output to complement (toggle):

$J$$K$$Q_{next}$
00$Q$
010
101
11$\overline{Q}$ (toggle)

The T flip-flop is obtained by tying the $J$ and $K$ inputs of a JK flip-flop together into a single toggle input $T$:

$T$$Q_{next}$
0$Q$
1$\overline{Q}$

Because $T=1$ always complements the present state, the T flip-flop is the natural building block for binary counters, where every stage must toggle on the appropriate clock edge.

Triggering of flip-flops

The momentary change that causes a flip-flop to switch state is called a trigger. Flip-flops built directly from cross-coupled gates, without a clock, respond as soon as their $S$/$R$ inputs change level, and that level must return to its inactive value before a second trigger can be applied. Clocked flip-flops instead respond to a clock pulse, a periodic signal that rises from 0 to 1 (the positive edge) and, after a short interval, falls back from 1 to 0 (the negative edge).

A level-triggered flip-flop accepts new input throughout the entire interval that the clock is at its active level, which means its output can in principle change more than once within a single pulse if the data inputs themselves change while the clock is still active. An edge-triggered flip-flop avoids this by sampling its inputs only at the instant of one specific clock transition, either the positive or the negative edge (the latter usually marked on a logic diagram by a small circle at the clock input), and ignoring any further input changes until the next active edge arrives.

An older way of achieving reliable, single-transition behaviour is the master-slave flip-flop, built from two cascaded clocked latches. The first, "master" stage is enabled and follows its input while the clock is at one level; the second, "slave" stage is enabled only while the clock is at the opposite level, and copies whatever the master last held. Since the two stages are never transparent to new input at the same time, the combined circuit's output changes in a single, well-defined step per clock pulse, even though it is built entirely from simpler level-triggered parts.

What this unit covers

  • Flip-Flops
  • Triggering of flip-flops
  • Analysis of clocked sequential circuits
  • Design with state equations and state reduction table
  • Introduction to Asynchronous circuits
  • Circuits with latches

Flip-Flops

2081 · 5 marks

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

Show solved answer

D Flip Flop

Introduction

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.


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.

Open this answer on its own page →

2080 · 5 marks

What is drawback of RS Flipflop? Explain D Flip Flop in detail with Logic Diagram, characteristics table and Characteristics equation. [5]

--- The major drawback of the RS Flip Flop is the forbidden/undefined state. When both inputs S = 1 and R = 1 are applied simultaneously, the output becomes unpredictable or indeterminate (i.e., Q and Q' both try to become 1 at the same time, which is a contradiction since Q and Q' must always be...

Open this answer on its own page →

Design with state equations and state reduction table

2081 · 5 marks

Explain state diagram, state table, state reduction and state assignment with suitable example. [5]

--- A state diagram is a graphical representation of a sequential circuit that shows all possible states, transitions between states, inputs, and outputs. Conventions: - Each circle represents a state (labeled with binary number inside) - Directed lines (arrows) show transitions from one state to...

Open this answer on its own page →

2079 · 10 marks

Design the sequential circuit with respect to the following state diagram using T flip flops.[10]

Critical issue: The actual state diagram image is NOT provided in the question. No states, transitions, inputs, or outputs can be read from the prompt. Missing data: - Number of states - State labels and encoding - State transitions (present → next) - Presence/absence of external input(s) - Outpu...

Open this answer on its own page →

2078 · 10 marks

Design the sequential circuit with respect to the following state diagram using J-K Flip flops.[10]

Problem statement: Design a sequential circuit for a given state diagram using J-K flip-flops. Critical issue - Missing data: The actual state diagram is not provided in the question. The following required information is unreadable/missing: - The number of states - The state transitions (present...

Open this answer on its own page →

2077 · 10 marks

Design sequential circuit specified by the following state diagram using T flip-flops.[10]

The actual state diagram image is not provided in this question. The specific states, transitions, inputs, and outputs cannot be read. Any answer therefore depends entirely on assuming a particular state diagram. The working below assumes a 3-bit binary up-counter (000 - 001 - ... - 111 - 000) wi...

Open this answer on its own page →

2077 · 5 marks

Write short notes on (Any two): RTL, State Reduction, POS [5]

Show solved answer

Short Notes (Any Two)


1. RTL (Register Transfer Level)

RTL (Register Transfer Level) is a design abstraction used to describe the operation of a digital circuit in terms of the flow of data between registers and the logical operations performed on that data.

Key Points:

  • RTL describes how data moves from one register to another through combinational logic.
  • It is used in the design and synthesis of digital systems such as processors and controllers.
  • RTL operations are described using Register Transfer Notation, for example:
R2 ← R1 + R3    (Add contents of R1 and R3, store in R2)
R1 ← R2         (Transfer contents of R2 to R1)
  • A register is a group of flip-flops capable of storing binary information.
  • RTL forms the basis of Hardware Description Languages (HDLs) like VHDL and Verilog.
  • The three basic components in RTL design are:
    • Registers -- for storing data
    • Combinational Logic -- for performing operations
    • Control Logic -- for determining when transfers occur

2. State Reduction

State Reduction is the process of minimizing the number of states in a sequential circuit (finite state machine) without changing its input/output behavior.

Why State Reduction?

  • Fewer states means fewer flip-flops required.
  • Leads to a simpler and more economical circuit design.

Method -- Identifying Equivalent States:

Two states are said to be equivalent if:

  1. For every possible input, they produce the same output, AND
  2. For every possible input, they transition to the same next state (or equivalent states).

Example:

Present StateInput = 0Input = 1Output
ABC0
BAD0
CBC1
DAD0
  • States B and D produce the same output (0) and go to the same next states (A and D respectively -- check equivalence iteratively).
  • If B and D are found equivalent, they can be merged into one state, reducing the total number of states.

Steps:

  1. List all states and their transitions.
  2. Identify pairs of states with the same output.
  3. Check if next states are also equivalent.
  4. Merge equivalent states and redraw the reduced state table.

3. POS (Product of Sums)

Product of Sums (POS) is a standard form of representing a Boolean function as a product (AND) of sum (OR) terms, where each sum term is called a maxterm.

Definition:

A maxterm is a sum (OR) of all variables in the function, each appearing either in complemented or uncomplemented form.

For n variables, there are 2^n possible maxterms.

Standard POS (Canonical POS / Maxterm Canonical Form):

Any Boolean function can be expressed as a product of maxterms. This is called the maxterm canonical form or standard POS form.

Example: F = (x+y+z)(x+y'+z)(x+y+z') = M₀ · M₂ · M₄ = ∏(0, 2, 4)

Example:

For a 2-variable function F(x, y):

RowxyMaxtermSymbol
000x + yM₀
101x + y'M₁
210x' + yM₂
311x' + y'M₃

If F = 0 for rows 1 and 3:

F = M₁ · M₃ = (x + y')(x' + y') = ∏(1, 3)

Key Points:

  • POS is the dual of SOP (Sum of Products).
  • In a K-map, POS is obtained by grouping the 0s (as opposed to 1s for SOP).
  • We write 0's in the square that correspond to the product of the sum.
  • POS minimization using K-map gives a simplified product of sums expression.

Open this answer on its own page →

2075 · 4 marks

Design clocked sequential circuit of the following state diagram by using JK flip-flop.[4]

The problem asks to design a clocked sequential circuit from a state diagram using JK flip-flops. Critical issue: The actual state diagram is not provided in the question. The diagram (states, transitions, inputs, outputs) is essential to solve this problem and cannot be read. No numeric or struc...

Open this answer on its own page →

Triggering of flip-flops

2080 · 5 marks

How race condition in JK flip flop can be resolved? Explain. [5]

In a JK flip flop, the inputs are: - J (acts like Set) - K (acts like Reset) The truth table of JK flip flop includes the condition: J K Q (next state) ---------------------- 0 0 Q (No change) 0 1 0 (Reset) 1 0 1 (Set) 1 1 Q' (Toggle) When J = 1 and K = 1, the output is supposed to toggle (comple...

Open this answer on its own page →

2077 · 5 marks

Explain negative-edge triggered D flip flop with necessary logic diagram and truth table. [5]

An edge-triggered flip flop is a flip flop that synchronises its state changes during the clock pulse transition. The output transition occurs at a specific level of the clock pulse. When the pulse input level exceeds this level, the inputs are locked out and the flip flop becomes unresponsive to...

Open this answer on its own page →