**Multiple Select: Incomplete Sensitivity List Traps** Consider the follo…
**Multiple Select: Incomplete Sensitivity List Traps** Consider the following combinational block: always @(a) begin out = a & b; end Which of the following statements are **TRUE**? *(Select all that apply)*
- The block will infer a latch during hardware synthesis in standard synthesis tools.
- In simulation, out will not update if b changes while a remains constant.
- A simulation-synthesis mismatch will occur.
- The code produces a fatal syntax error during compilation.
Correct answer
B. In simulation, out will not update if b changes while a remains constant.; C. A simulation-synthesis mismatch will occur.
Explanation
Because b is omitted from the sensitivity list, simulation updates out only when a transitions. Synthesis tools, however, synthesize an AND gate from out = a & b regardless of missing sensitivity signals, causing a simulation-synthesis mismatch. A latch is not inferred here because out is unconditionally assigned.