HDL & Verification
Which set of values makes up the four-state logic used in Verilog simulation?
- A0, 1, X (unknown) and Z (high impedance)
- B0, 1, 2 and 3
- CTrue, false, up and down
Show answer and explanation
Answer: A. 0, 1, X (unknown) and Z (high impedance)
Besides 0 and 1, Verilog signals can be X (unknown) and Z (high impedance, undriven). Uninitialized registers and signals with conflicting drivers become X, while unconnected wires and tri-state lines whose drivers are disabled become Z. Spotting X or Z in simulation is a major clue to finding bugs.
- A. Correct. These represent real circuit conditions.
- B. They are not the numbers 0 to 3.
- C. Those are not logic values.