Overflow detector

Discussion in 'VHDL' started by Lilmiss, Aug 2, 2005.

  1. Lilmiss

    Lilmiss Guest

    I am designing a BCD adder must be capable of adding two six-digit BCD
    numbers to produce a six-digit sum. In essence, the adder should work as
    both an adder and a subtractor (taking into account negative numbers).
    What I need to know is how to code the one bit overflow output signal that
    would be 1 if the addition results in an overflow (a magnitude that is too
    big to be represented with 6 BCD digits) and 0 otherwise.
     
    Lilmiss, Aug 2, 2005
    #1
    1. Advertising

  2. Lilmiss wrote:

    > I am designing a BCD adder ...

    ....
    > What I need to know is how to code the one bit overflow output signal that
    > would be 1 if the addition results in an overflow (a magnitude that is too
    > big to be represented with 6 BCD digits) and 0 otherwise.


    If I do not miss something, the final carry-out should be the same as
    the carry-out between every BCD-digit (4-bit binary group).
    http://www2.ele.ufes.br/~ailson/digital2/cld/chapter5/chapter05.doc4.html

    Ralf
     
    Ralf Hildebrandt, Aug 2, 2005
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Andrew Thompson
    Replies:
    4
    Views:
    397
    Andrew Thompson
    Nov 8, 2004
  2. Replies:
    1
    Views:
    4,926
    Alan Moore
    May 6, 2005
  3. Gremlin

    Re: Infinite Loop Detector

    Gremlin, Feb 28, 2004, in forum: C++
    Replies:
    1
    Views:
    353
    Mike Wahler
    Feb 28, 2004
  4. John Cochran

    Re: Infinite Loop Detector

    John Cochran, Feb 28, 2004, in forum: C++
    Replies:
    7
    Views:
    641
    anon luker
    Feb 28, 2004
  5. Johannes Bauer

    Re: Infinite Loop Detector

    Johannes Bauer, Feb 28, 2004, in forum: C++
    Replies:
    3
    Views:
    387
    Karl Heinz Buchegger
    Mar 1, 2004
Loading...

Share This Page