**Reduction NOR Operator** What is the value of result ? reg [3:0] a; reg…
**Reduction NOR Operator** What is the value of result ? reg [3:0] a; reg result; initial begin a = 4'b0000; result = ~|a; end
- 1'b0
- 1'b1
- 1'bx
- 1'bz
Correct answer
B. 1'b1
Explanation
The reduction NOR operator ( ~| ) computes the bitwise NOR across the entire vector: $\sim(0 \lor 0 \lor 0 \lor 0) = \sim(0) = 1$.