Finite State Machine Design

FSM design converts behavioral specifications into finite states and deterministic transitions.

Key formulas & points

Skim these first — then read the full notes below.

  • State diagram to state table to transition logic
  • One-hot encoding simplifies FPGA decode
  • Unused states should go to safe recovery state

Topic details

Introduction

Stallings uses FSM concepts for protocol and controller design. In B.Tech style questions, you are asked to derive state table, assign codes, and implement using D/JK flip-flops.

Key relations & formulas

Formulas (Indian textbook notation)

  • Moore:outputsdependonstateonlyMoore: outputs depend on state only

Formulas (Indian textbook notation)

  • Mealy:outputsdependonstate+inputsMealy: outputs depend on state + inputs

Formulas (Indian textbook notation)

  • stateminimisation:mergeequivalentstatesstate minimisation: merge equivalent states

Notation and sign conventions

Relation 1 —
Moore:outputsdependonstateonlyMoore: outputs depend on state only

Formulas (Indian textbook notation)

  • Moore:outputsdependonstateonlyMoore: outputs depend on state only
Write this relation with symbols exactly as in Digital Design — Morris Mano before substituting numbers. Examiners award partial marks for a correct setup even when arithmetic slips.
Relation 2 —
Mealy:outputsdependonstate+inputsMealy: outputs depend on state + inputs

Formulas (Indian textbook notation)

  • Mealy:outputsdependonstate+inputsMealy: outputs depend on state + inputs
Write this relation with symbols exactly as in Digital Design — Morris Mano before substituting numbers. Examiners award partial marks for a correct setup even when arithmetic slips.
Relation 3 —
stateminimisation:mergeequivalentstatesstate minimisation: merge equivalent states

Formulas (Indian textbook notation)

  • stateminimisation:mergeequivalentstatesstate minimisation: merge equivalent states
Write this relation with symbols exactly as in Digital Design — Morris Mano before substituting numbers. Examiners award partial marks for a correct setup even when arithmetic slips.

Concept in depth

Begin with a state diagram from textual requirements. Minimize equivalent states to reduce hardware, then assign binary or one-hot codes. Derive next-state and output equations from transition table and simplify with K-map. Moore machines are safer for glitch-free outputs, while Mealy machines often use fewer states and respond faster.

Assumptions and validity limits

State assumptions explicitly before using any relation for finite state machine design — steady state, uniform properties, linear elastic material, ideal gas, incompressible flow, etc., as applicable.
Wrong assumptions invalidate the entire solution even when the formula is correct. In Digital Logic Design viva and GATE descriptive questions, listing valid assumptions often earns separate marks.

Step-by-step problem approach

1. Read the question and list given data with SI units (common in Digital Logic Design papers).
2. Draw a neat labelled diagram where applicable — examiners in Indian universities award diagram marks even when arithmetic slips.
3. Identify which relation from this topic applies to finite state machine design.
4. Use equation 1:
Moore:outputsdependonstateonlyMoore: outputs depend on state only
.
5. Use equation 2:
Mealy:outputsdependonstate+inputsMealy: outputs depend on state + inputs
.
6. Substitute values, compute, and verify units and sign (direction).
7. State conclusion in one line — e.g. safe/unsafe, stable/unstable, feasible/infeasible.

Applications & exam relevance

Finite State Machine Design appears in digital hardware and FPGAs. In Indian computer hardware curricula this topic is tested because it connects theory to combinational and sequential logic.
GATE and semester exams often combine finite state machine design with earlier units — revise prerequisites before attempting mixed problems.
Industry interview panels sometimes ask: "Where did you use finite state machine design?" — answer with a lab, mini-project, or plant visit example if possible.

Common mistakes in exams

Many answers skip unreachable states and do not handle invalid transitions. Another mistake is changing state names after minimization without updating equations. Keep one consistent state map.

Quick revision checklist

Before attempting finite state machine design problems, confirm you can:
1. State diagram to state table to transition logic
2. One-hot encoding simplifies FPGA decode
3. Unused states should go to safe recovery state
Revise the solved examples in Digital Design — Morris Mano and one previous-year GATE or university paper for this unit.

Worked examples

Try the problem first — open the solution when you are ready to check.

Guided practice — Finite State Machine Design

Problem

A standard Digital Logic Design numerical on finite state machine design supplies given data in SI units. Using Moore: outputs depend on state only and Mealy: outputs depend on state + inputs, find the unknown quantity and state whether the result is physically reasonable.

Solution

1. List all given quantities with units (convert to SI if needed).
2. Draw a neat labelled diagram — diagram marks are common in Indian B.Tech papers.
3. Select
Moore:outputsdependonstateonlyMoore: outputs depend on state only
and write it symbolically before substitution.
4. Substitute values, compute, and attach correct units.
5. Sanity-check: magnitude, sign, and direction must match combinational and sequential logic.
Cross-check with solved examples in your Digital Logic Design textbook.

Conceptual check — Finite State Machine Design

Problem

In a Digital Logic Design semester or GATE paper you are asked: "State the main assumption, the governing relation, and one practical consequence of finite state machine design." What should a complete answer include?

📖 Standard books (India)

  • Digital DesignMorris Mano

    Read: Syllabus unit

    Logic design and sequential circuits