On 24/11/15 22:28, Paul Koning wrote:

On Nov 24, 2015, at 3:47 PM, René Doß <d...@gmx.de> wrote:

This is not nice.

I write some VHPI interface for a 32 bit engine. Some functions works an
some not. Now I have found out my problem with this two examples.
I need to exchange value c to vhdl and reverse.


I have the range of 32 bit.
My range is 0x00000000 to 0xFFFFFFFF

0...2^32-1

Then you'd need unsigned integers.  Does VHDL have those?

No, VHDL integer types are always signed.

Is it actually critical to interpret those bit patterns as unsigned integers?

That's one solution.
bit_vector could be used too.

Tristan.


_______________________________________________
Ghdl-discuss mailing list
Ghdl-discuss@gna.org
https://mail.gna.org/listinfo/ghdl-discuss

Reply via email to