I was looking through some SystemVerilog code, and I came across this expression for testing if all the bits in a packed array were set.
logic [SIZE-1:0] array;
// Bool we are evaluating:
array == '1;
Can someone explain to me how this works? From what I have read, the '1 is treated as a signed integer, so perhaps it is sign extended to be all 1's? Just trying to make sense of this code snippet in my head.