Re: Any ideas on how to do this?



48 bytes wrote:

Hi everyone!
First of all, thanks for being such a help for like 5 years now.
However, now I'm a serious trouble.
I have to describe and design a 32 bit binary to 40 bits BCD converter.
I'm using VHDL as it's my class' focus language.
I found a very interesting solution at
http://www.engr.udayton.edu/faculty/jloomis/ece314/notes/devices/binary_to_BCD/bin_to_BCD.html
, but when I upgraded it to 16 bits it didn't work as expected.
And imagine having to instance more than 40 of those adders... Even
using the special replication instruction, it would fill the gate
amount of the Xilinx Spartan-3 S3-200, considering that nearly 60% of
it it's being used and I have to maintain that design (a DLX monocycle
processor... Computer Architecture II, geez).
Please, any help on this problem?

Thanks

J.P. Garcia
AKA 48 bytes

How many clock ticks do you have to do it in?

You can use the old algorithm of successive divides by ten. If you don't mind using lots of clock ticks you can get the logic size down quite a bit.

--

Tim Wescott
Wescott Design Services
http://www.wescottdesign.com

Posting from Google? See http://cfaj.freeshell.org/google/

"Applied Control Theory for Embedded Systems" came out in April.
See details at http://www.wescottdesign.com/actfes/actfes.html
.



Relevant Pages

  • Re: Sony to quit manufacturing AIBO, QRIO
    ... > you never think about is just how difficult it is to engineer such a ... The genetic design is much more profound, I think, than most people ... I have had some trouble with a family of 4 ... it appears the brains are commensurate to the foot. ...
    (comp.ai.philosophy)
  • Re: Anybody having trouble with
    ... Anyone having trouble, please, send me screenshots illustrating them. ... design, and try to make it liquid, not understanding the PHP that goes ... just because of an ASP post. ...
    (alt.smokers.pipes)
  • Re: LibTomMath overflow bug
    ... That any asshole has the right to provoke me but ... For the suggester of those changes it was no trouble for them, it was only trouble and work for me. ... I put the boot on the other foot and asked them, "You have good ideas, when will you make your design and work public." ...
    (sci.crypt)
  • Re: uCOS-II
    ... why a single castable U32? ... looks at all the task tick counters and priority ... is established by running a given task once every n clock ticks. ... the need to think of system design in a task oriented ...
    (comp.arch.embedded)
  • Re: A sign of my very own...
    ... Even if someone owns his own Starbucks franchise and wants a local sign company to make some signs with that trademark, both the sign company and franchisee could get in trouble if the sign company is not on Starbucks' approved vendor list or if the sign company and/or franchisee has the signs produced outside of the colors and graphics standard rules in Starbucks' corporate identity program. ... And then you have to figure the amount of time required to design the sign -or fix what's wrong with a customer provided art file. ...
    (misc.transport.road)