Yahoo Answers: Answers and Comments for Is there any integrated circuit that takes an 8 bit input and outputs a 3 bit sum of those inputs? [Engineering]
Copyright © Yahoo! Inc. All rights reserved.
https://sg.answers.yahoo.com/question/index?qid=20190525115617AAOYyzl
From Ivan
enSG
Sat, 25 May 2019 11:56:17 +0000
3
Yahoo Answers: Answers and Comments for Is there any integrated circuit that takes an 8 bit input and outputs a 3 bit sum of those inputs? [Engineering]
292
38
https://sg.answers.yahoo.com/question/index?qid=20190525115617AAOYyzl
https://s.yimg.com/zz/combo?images/emaillogosg.png

From Lisa A: Is this a trick exam question? They want you t...
https://sg.answers.yahoo.com/question/index?qid=20190525115617AAOYyzl
https://sg.answers.yahoo.com/question/index?qid=20190525115617AAOYyzl
Sat, 25 May 2019 17:06:58 +0000
Is this a trick exam question? They want you to try and fail to design it, and realize why you can't. Because the sum of 8 binary numbers ranges from 0 to 8 decimal. Which is from 0000 to 1000 binary. So you need 4 bits of output, not 3. It isn't possible for the circuit that you describe to exist, because you can't design such a thing, logically.

From Dixon: You actually need a four bit output because th...
https://sg.answers.yahoo.com/question/index?qid=20190525115617AAOYyzl
https://sg.answers.yahoo.com/question/index?qid=20190525115617AAOYyzl
Sat, 25 May 2019 16:28:24 +0000
You actually need a four bit output because there are 9 possible sums; zero and 1 to 8.
I don't know if this circuit has a name and I can't remember ever seeing one as a stand alone IC but I've done it a few times in VHDL. For myself, I call it a "tally to n". So in this case it would be a tally to 8 adder.
In hardware you would do that with a pyramid off adders. Roughly described below  hope I didn't go off the rails tho...
The first stage would be 4 half adders, each one adding up pairs of bits from the input and giving a two bit output . We treat the sum and carry as a single two bit bus representing the sum. This is the jump from a tally to weighted numbers but we now have four weighted numbers to add together.
The next stage would be adding up pairs of the first stage output busses. Each pair would be added together with a 2 bit adder (3 bit output)
Similarly, the final stage adds the two previous stage outputs using a 3 bit adder, to give a four bit result.

From Morningfox: Do you mean a count of how many of those input...
https://sg.answers.yahoo.com/question/index?qid=20190525115617AAOYyzl
https://sg.answers.yahoo.com/question/index?qid=20190525115617AAOYyzl
Sat, 25 May 2019 13:50:05 +0000
Do you mean a count of how many of those inputs have a logic "1" value? If all of the inputs were "1", that would be an output value of "1000", so you need 4 bit output, not 3. I would consider using a EPROM with a lookup table.

From daniel g: Sure, Shifting 8 bit input, counting the 1s do...
https://sg.answers.yahoo.com/question/index?qid=20190525115617AAOYyzl
https://sg.answers.yahoo.com/question/index?qid=20190525115617AAOYyzl
Sun, 26 May 2019 09:29:49 +0000
Sure, Shifting 8 bit input, counting the 1s does nicely. Overflow would get dropped, hence an error. 4 bit can count that high.
Piece of cake for an 8 bit Upc