L
Lolo
Guest
Dear all,
I have a long unsigned:
o: out unsigned (99 downto 0)
which I want to print in decimal.
I can use the write procedure of the std.textio package, after a conversion to
integer:
write(L, to_integer(o))
But this fails when o >= 2**32.
In std_logic_textio, write is overloaded on std_logic_vector. So
write(L, std_logic_vector(o)) works fine but unfortunately print the
value in binary.
I looked at some contribution packages providing a printf-like feature. But none
is able to handle values > 32 bits.
Do you know of any procedure to print long unsigneds in decimal ? (Hexa would be
okay even if not the perfect solution.)
Thanks in advance.
Laxurexnt.Ardixtix@esterelx-technologiesx.com (non-spammers will remove all 'x')
--
Ce message a ete poste via la plateforme Web club-Internet.fr
This message has been posted by the Web platform club-Internet.fr
http://forums.club-internet.fr/
I have a long unsigned:
o: out unsigned (99 downto 0)
which I want to print in decimal.
I can use the write procedure of the std.textio package, after a conversion to
integer:
write(L, to_integer(o))
But this fails when o >= 2**32.
In std_logic_textio, write is overloaded on std_logic_vector. So
write(L, std_logic_vector(o)) works fine but unfortunately print the
value in binary.
I looked at some contribution packages providing a printf-like feature. But none
is able to handle values > 32 bits.
Do you know of any procedure to print long unsigneds in decimal ? (Hexa would be
okay even if not the perfect solution.)
Thanks in advance.
Laxurexnt.Ardixtix@esterelx-technologiesx.com (non-spammers will remove all 'x')
--
Ce message a ete poste via la plateforme Web club-Internet.fr
This message has been posted by the Web platform club-Internet.fr
http://forums.club-internet.fr/