CodiodeCodiode
Home
Problem Solving
Skill Tracks
My Assignments
Contests
Leaderboard
Community
Settings
Codiode/Problems/Combinational Logic

Debug Sequential: Missing State Machine Reset

MediumLogic CircuitDebug

A control state machine manages operational phases and must initialize to a known idle state upon power up.

Expected behavior:

| rst | en | Current Q1 Q0 | Next Q1 Q0 | |-------|------|-----------------|--------------| | 1 | 0 | X X | 0 0 | | 1 | 1 | X X | 0 0 | | 0 | 0 | Q1 Q0 | Q1 Q0 | | 0 | 1 | 0 0 | 0 1 | | 0 | 1 | 0 1 | 1 0 | | 0 | 1 | 1 0 | 1 1 | | 0 | 1 | 1 1 | 0 0 |

Simulation shows the initialization test fails. When rst = 1 is applied at startup, the state outputs do not transition to Q1 = 0 and Q0 = 0. The state machine powers up in an invalid state and deadlocks. Inspect the circuit and correct the fault.

Constraints

  • Do not modify the combinational next-state logic.
  • Do not add new flip-flops or remove existing ones.
  • Only add or modify routing for the reset network.

Topics

FSMDebuggingSequential LogicReset

Solve this problem

Place the gates, wire them up and watch the signals settle. Every submission runs on the same simulation engine that grades it.

This problem is part of Codiode Pro. The statement above is free to read.

Sign in to solveSee what Pro unlocks

The circuit builder and code editor need a desktop screen. On a phone, read the problem here and open it on a laptop to solve.

Related problems

  • Binary to HexEasy
  • 1-to-4 Demultiplexer from AND and NOT GatesEasy
  • 2-to-4 Line Decoder with Active-High EnableEasy
  • Full Adder from Half AddersEasy
  • Odd Parity Bit Generator for 3-bit DataEasy
  • Hex Nibble to BinaryEasy
  • Extract Expression from a Two-Level AND-OR Circuit with Fan-OutEasy
  • The Two Zeros Problem in Sign-MagnitudeEasy

Browse all problems · Learning tracks