binary to bcd coversion

  • Thread starter Carlos Barberis
  • Start date
C

Carlos Barberis

Guest
Hi I am pretty new to verilog, I am looking for a simple way to take a 16
bit binary word into a BCD converter that would decode four seven segment
digits. I have already figured out how to do the seven segment decoding but
I have not figured out as to how to implement the bcd decoder ahead of the
display driver.

Any sample code would be greatly appreciated.

thank you
 
I'd imagine the algorithm is the tougher part to get your head around. Look
at the circuit-level description of a nice Binary to BCD conversion at
http://www.origin.xilinx.com/bvdocs/appnotes/xapp029.pdf and figure out how
to map those schematic elements to Verilog.

There you go!


"Carlos Barberis" <carlosbarberis@comcast.net> wrote in message
news:11migo6caei5601@news.supernews.com...
Hi I am pretty new to verilog, I am looking for a simple way to take a 16
bit binary word into a BCD converter that would decode four seven segment
digits. I have already figured out how to do the seven segment decoding
but I have not figured out as to how to implement the bcd decoder ahead of
the display driver.

Any sample code would be greatly appreciated.

thank you
 

Welcome to EDABoard.com

Sponsor

Back
Top