HDL & Verification
In simulation, a register without reset starts as X. What happens in the real chip?
- AAt power-on it becomes either 0 or 1, but which one is not determined
- BIt stays stuck at a voltage midway between 0 and 1
- CIt is always 0 in the real chip
Show answer and explanation
Answer: A. At power-on it becomes either 0 or 1, but which one is not determined
A real flip-flop settles to a stable 0 or 1 at power-on, but which one varies with the chip, location, temperature and so on and is not determined. The X in simulation represents "unknown which". If that value affects circuit behavior, it must be set by reset. Registers in data paths that are always written before use sometimes omit reset.
- A. Correct. That is why reset or initialization matters.
- B. A flip-flop settles to either 0 or 1.
- C. It is not guaranteed to be 0.