Forum Discussion
Altera_Forum
Honored Contributor
15 years agoBinary to Binary coded deicmal help
Hi guys, I'm having trouble implementing a double dabble algorithm in verilog. These modules are supposed to produce 8bit BCD output from 5bit binary input. However, it seems like the binary ...
Altera_Forum
Honored Contributor
15 years ago --- Quote Start --- I checked one example (dec 22 / hex 16, should give hex 22), and it was wrong. --- Quote End --- TENS|ONES|22 0000|0000|10110 0000|0101|10 (third shift) ones>4 so +3 0000|1000|10 (fourth shift) 0001|0001| (shift 5) 0010|0010| It works. I didn't invent double dabble.