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

System Level Debug: The Integration Failure

HardLogic CircuitDebug

A system controller integrates a sequence detector FSM with a datapath register to capture incoming data upon detecting a specific preamble.

Expected behavior: The FSM asserts the Match signal when the input sequence 1011 is detected on Seq_In. The datapath register must capture the value of Data_Bus on the exact clock cycle that Match goes high.

System-level simulation shows a timing mismatch. When the sequence 1011 is applied, the Match signal goes high correctly, but the register latches the value of Data_Bus one clock cycle too late. The output Captured_Data reflects the data bus state from the cycle after the match instead of the match cycle. Inspect the circuit and correct the fault.

Constraints

  • Do not modify the internal logic of the sequence detector FSM or the datapath register.
  • Fix the synchronization issue using exactly one additional sequential element.
  • Only modify the interface routing between the two submodules.

Topics

FSMDebugTimingIntegration

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
  • Hex Nibble to BinaryEasy
  • Odd Parity Bit Generator for 3-bit DataEasy
  • Full Adder from Half AddersEasy
  • Modulo ArithmeticMedium
  • Two's Complement: Encode a Negative DecimalEasy

Browse all problems · Learning tracks