**Replication Factor of Zero** What does the Verilog compiler do with {0{…
**Replication Factor of Zero** What does the Verilog compiler do with {0{a}} ?
- Evaluates to a 1-bit zero ( 1'b0 ).
- Produces a compilation syntax error.
- Evaluates to an empty vector without error.
- Evaluates to high-impedance ( 1'bz ).
Correct answer
B. Produces a compilation syntax error.
Explanation
The IEEE 1364 Verilog specification requires the replication constant to be a non-zero, positive integer constant. A replication factor of zero is illegal and triggers a compilation error.