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.
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 answerHide 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
| CLK | D | Q (next state) | Operation |
|---|---|---|---|
| 0 | X | Q (no change) | Latch (no clock) |
| 1 | 0 | 0 | Reset |
| 1 | 1 | 1 | Set |
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) |
|---|---|---|
| 0 | 0 | 0 |
| 0 | 1 | 1 |
| 1 | 0 | 0 |
| 1 | 1 | 1 |
The required D input is simply equal to the desired next state Q(t+1).
Summary
| Feature | Detail |
|---|---|
| Inputs | D (single data input), CLK |
| Outputs | Q, Q' |
| Characteristic Equation | Q(t+1) = D |
| Advantage | Eliminates invalid state (S=R=1) of SR flip flop |
| Application | Data 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.
2080 · 5 marks
What is drawback of RS Flipflop? Explain D Flip Flop in detail with Logic Diagram, characteristics table and Characteristics equation. [5]
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]
2079 · 10 marks
Design the sequential circuit with respect to the following state diagram using T flip flops.[10]
2078 · 10 marks
Design the sequential circuit with respect to the following state diagram using J-K Flip flops.[10]
2077 · 10 marks
Design sequential circuit specified by the following state diagram using T flip-flops.[10]
2077 · 5 marks
Write short notes on (Any two): RTL, State Reduction, POS [5]
Show solved answerHide 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:
- For every possible input, they produce the same output, AND
- For every possible input, they transition to the same next state (or equivalent states).
Example:
| Present State | Input = 0 | Input = 1 | Output |
|---|---|---|---|
| A | B | C | 0 |
| B | A | D | 0 |
| C | B | C | 1 |
| D | A | D | 0 |
- 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:
- List all states and their transitions.
- Identify pairs of states with the same output.
- Check if next states are also equivalent.
- 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):
| Row | x | y | Maxterm | Symbol |
|---|---|---|---|---|
| 0 | 0 | 0 | x + y | M₀ |
| 1 | 0 | 1 | x + y' | M₁ |
| 2 | 1 | 0 | x' + y | M₂ |
| 3 | 1 | 1 | x' + 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.
2075 · 4 marks
Design clocked sequential circuit of the following state diagram by using JK flip-flop.[4]
Triggering of flip-flops
2080 · 5 marks
How race condition in JK flip flop can be resolved? Explain. [5]
2077 · 5 marks
Explain negative-edge triggered D flip flop with necessary logic diagram and truth table. [5]
Make Unit 6 stick
Practice CSC116 with flashcards & quizzes