problem to convert integer to ascii chars for LCD in vhdl

K

Kenneth

Guest
Hi,

I'm currently having problem to convert integer value (i.e. 1000 in
decimal) to ascii characters so that I could display on the LCD using
vhdl code. Could anyone has any recommendation in solving this as im
still very new to vhdl code, certain syntax im still learning. I need
this part urgently, it is for my school project. Thanks alots.

regards
Kenneth
 
In 1993 an attibute is added to the VHDL language.
If int is an integer value the following will give the string:
integer'image(int)

Another solution is to use a package "image_pb.vhd"
see: http://members.aol.com/vhdlcohen/vhdl/Models.html

Egbert Molenkamp


"Kenneth" <k_ahg@hotmail.com> wrote in message
news:b493f523.0308200558.76563257@posting.google.com...
Hi,

I'm currently having problem to convert integer value (i.e. 1000 in
decimal) to ascii characters so that I could display on the LCD using
vhdl code. Could anyone has any recommendation in solving this as im
still very new to vhdl code, certain syntax im still learning. I need
this part urgently, it is for my school project. Thanks alots.

regards
Kenneth
 

Welcome to EDABoard.com

Sponsor

Back
Top