V
Viswan
Guest
hi,
I have a doubt in VHDL. How could I convert a two's complement vector
to an unsigned vector and vice versa. I was designing a divider which
works only for unsigned vectors, where as all the rest of my hardware
deals with 2's complement numbers. So I planned to convert the 2's
complement vector to unsigned and get the result and convert it back
to 2's complement. Are there any other functions in VHDL that do
these kind of conversions? I know there are conversion from integers
to vectors but I doubt whether there are any conversion functions that
perform the above function.
Any other ideas on designing the above divider are also mostly
welcome.
Thanks
Viswan
I have a doubt in VHDL. How could I convert a two's complement vector
to an unsigned vector and vice versa. I was designing a divider which
works only for unsigned vectors, where as all the rest of my hardware
deals with 2's complement numbers. So I planned to convert the 2's
complement vector to unsigned and get the result and convert it back
to 2's complement. Are there any other functions in VHDL that do
these kind of conversions? I know there are conversion from integers
to vectors but I doubt whether there are any conversion functions that
perform the above function.
Any other ideas on designing the above divider are also mostly
welcome.
Thanks
Viswan