R
romi
Guest
In the expression below, I'm wondering if 'a' is supposed to be
expanded to 32 bits before the ~ is applied to 'a' or after. I
thought that the parenthesis would force the ~ to be done on the 1 bit
value prior to the expansion to 32 bit for the equality.
logic a,b;
assign b = (~a) == 1;
If a=0, should be b be 0 or 1?
Thanks
expanded to 32 bits before the ~ is applied to 'a' or after. I
thought that the parenthesis would force the ~ to be done on the 1 bit
value prior to the expansion to 32 bit for the equality.
logic a,b;
assign b = (~a) == 1;
If a=0, should be b be 0 or 1?
Thanks