Hi,
Suppose I have a signed data type say int a;
is i do a size casting i.e, 3’(a), will it generate a signed truncated bit or not.
LRM doesnt talk about this.
Hi,
Suppose I have a signed data type say int a;
is i do a size casting i.e, 3’(a), will it generate a signed truncated bit or not.
LRM doesnt talk about this.
In reply to rakesh reddy:
When changing the size, the cast shall return the value that a packed array type with a single [n-1:0] dimension would hold after being assigned the expression, where n is the cast size. The signedness shall pass through unchanged
6.24.1 Cast operator