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

Data Changing Before Acknowledge Received

MediumLogic CircuitDebug

A clock domain crossing source interface must hold data stable on the bus until the destination domain acknowledges receipt.

Expected behavior:

When Send is asserted, the interface latches DataIn to DataOut and asserts Req. The DataOut bus must remain locked to this latched value until Ack is asserted, even if DataIn changes. Once Ack is received, Req deasserts.

Simulation shows DataOut changing while Req is high. Specifically, when Send triggers a transfer of DataIn = 5 and DataIn changes to 9 in the next cycle before Ack arrives, DataOut updates to 9. The data bus is not properly locked during the request phase. Inspect the circuit and correct the fault.

Constraints

  • DataOut must be driven by a register that only updates when a new transfer is initiated.
  • Req must remain asserted continuously until Ack is sampled high.

Topics

Clock Domain CrossingDebugState Machines

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

  • 3-bit Ripple Counter from Toggle Flip-FlopsEasy
  • D Latch from a 2:1 MUXEasy
  • 2-bit Ring CounterEasy
  • T Flip-Flop from a D Flip-FlopEasy
  • Handshake Deadlock Due to Early ResetHard
  • Reconvergence of Individually Synchronized BitsHard
  • Debug: Asynchronous Clear GlitchHard
  • Clock Gate Enable Crossing DomainsHard

Browse all problems · Learning tracks