Hardware interview practice
Diagnose storage from an incomplete always_comb block
An always_comb block assigns y only when enable is high and has neither a default assignment nor an else branch. What hardware behavior does that incomplete assignment imply?
Starting point
Question code
always_comb begin
if (enable)
y = data;
endChoose one
Answer choices
- A. A level-sensitive latch
- B. A flip-flop
- C. A tri-state output
- D. A compile-time constant
