S
spartan
Guest
Hi all;
I use the "numeric_std". how can I conver an "unsigned 8 bit" to a "signed
9-bit".
a :unsigned(7 down to 0);
aa, b,c :signed(8 down to 0);
if i write:
aa<= to_signed(a,9);
then i got wrong result for
c<= aa-b;
when aa is negative.
thanks.
I use the "numeric_std". how can I conver an "unsigned 8 bit" to a "signed
9-bit".
a :unsigned(7 down to 0);
aa, b,c :signed(8 down to 0);
if i write:
aa<= to_signed(a,9);
then i got wrong result for
c<= aa-b;
when aa is negative.
thanks.