Hi in Verilog what is the significance of this operation:
wire signal_A = |signal_B;
Is this possible with other logic operators?
Hi in Verilog what is the significance of this operation:
wire signal_A = |signal_B;
Is this possible with other logic operators?
I should have been more explicit in the question.
But the answer is that this is used for logic on 2 varying width signals
wire signal_A;
wire [N:0] signal_B;
assign signal_A = |signal_B;
This is equivalent to
assign signal_A = signal_B[0] | ... | signal_B[N];
So not as verbose and explicit as VHDL, but quicker.