Skip to the selected question
ASIC.FYI

ASIC Question Bank

1,000+ hardware interview questions
DescriptionQ095
Page ↗
Q095DVASIC interview problem

FIFO Returns the Wrong Head Entry

TechniquesDVWaveform DebuggingFIFO
DifficultyEasy
TopicWaveform Debugging
LanguageSystemVerilog
Format4 choices
01

Problem

Each column is one rising clock edge. A legal pop is accepted at C2 while the pre-pop FIFO head is 0x31. By C3 the live head has advanced to 0x47, but the response to the C2 pop must still return the captured pre-pop value 0x31. Instead, actual_data at C3 is 0x47. Rule to apply: A pop response must use the pre-update rd_ptr and head value from its acceptance edge, not the live head after the pointer advances. Which signal should be traced next to test whether the wrong entry was addressed?

Waveform for FIFO Returns the Wrong Head Entry. A pop is accepted at C2 while the pre-pop head is 0x31. At C3 the live head has advanced to 0x47, and actual_data incorrectly returns that current value instead of the captured C2 head. Signals: pop, pop_allowed, expected_data, actual_data. Numbered markers identify sampled columns.
Read the sampled columns from left to right, then test each choice against the stated timing rule.
02

Answer choices (4)