Hardware interview practice
Identify a specification-based negative test
A FIFO specification says that a write while full must be rejected, must set overflow_error, and must not change stored data. Which option is a negative test?
Choose one
Answer choices
- A. Compile the testbench with a syntax error.
- B. Write one item into an empty FIFO and read it back.
- C. Attempt a write while full, then check rejection, overflow_error, and unchanged stored data.
- D. Run an arbitrary constrained-random seed without targeting or checking invalid behavior.
