Hardware interview practice
Choose Blocking and Nonblocking Assignments by Process Type
A two-register pipeline and its combinational next-value calculation are being coded in SystemVerilog. Which coding rule best preserves intended simulation and hardware behavior?
Choose one
Answer choices
- A. Use nonblocking assignments for state updated in `always_ff`, and blocking assignments for ordered temporary calculations in `always_comb`, with every combinational output assigned on every path.
- B. Use nonblocking assignments everywhere; that alone prevents combinational latches and races.
- C. Assignment choice determines whether synthesis creates combinational or sequential hardware, regardless of the event control.
- D. Use blocking assignments in `always_ff` so the second pipeline register immediately sees the newly written first register.
