Skip to the selected question
ASIC.FYI

ASIC Question Bank

1,000+ hardware interview questions
DescriptionQ011
Page ↗
Q011DVASIC interview problem

Check hold while stalled

TechniquesHandshakeProtocolFour-state logic
DifficultyEasy
TopicTemporal Checks
LanguageSystemVerilog
Requirements3 checkpoints
01

Problem

Given the previous cycle's ready/valid state and the current valid and payload values, return 1 when the transfer obeys the stall rule. After a stalled cycle, valid must remain asserted and the payload must stay unchanged.

Two sampled ready-valid edges showing a stalled transfer creating an obligation to hold valid and the payload at the next edge.
Read the obligation from the previous sampled edge, then check valid and payload at the current edge.

Example input and output

Use this case to check your interpretation
Input
previous cycle: valid=1, ready=0, payload=0x55; current cycle: valid=1, ready=1, payload=0x56
Output
legal=0
Explanation

The previous cycle created a hold obligation. The payload must remain 0x55 on the next sample even though ready is now high.

02

Requirements (3)

  • Use the previous cycle to decide whether a hold obligation exists.
  • Require current valid and use case equality for the four-state payload.
  • Return legal when the previous cycle was not stalled.