Convert decimal number in binary number

M

makok

Guest
Hello,

is there a function in vhdl to convert a decimal in to a BCD? Or have I to
do this manual ? And if this is the only way, how can I do this?

Martin
 
makok wrote:

Hello,

is there a function in vhdl to convert a decimal in to a BCD? Or have I to
do this manual ? And if this is the only way, how can I do this?
This might work. I haven't looked at it, I just googled for 2 secs, but
it looks like it's what you want.

http://www.vhdl-online.de/model_lib_patras/vhdl_sources/special/special.htm#bin_bcdN

-- Anders
 

Welcome to EDABoard.com

Sponsor

Back
Top