Go Down

### Topic: 4 bit adder confusion. (Read 1 time)previous topic - next topic

##### Jul 21, 2012, 07:01 pm
I built a 4-bit Adder Circuit using the 4008 Adder chip (http://www.doctronics.co.uk/4008.htm). The circuit works fine but there is one problem. I thought it would be able to add any 4 bit numbers or smaller, but my circuit can only add 4 bit numbers! It cant seem to add two 3-bit numbers, or 2-bit numbers etc. Why is this?

#### majenko

#1
##### Jul 21, 2012, 07:38 pm
Because it's a 4 bit adder, not a 3 or 2 bit adder?

Just expand your 3 bit numbers out to 4 bit with a 0 as the MSB.

#2
##### Jul 21, 2012, 07:42 pm
Hmmm but for example if i want to input a "4", in binary it would be "100", but i have to input 4 bits right? that means adding a "0" to the "100"? that makes it "1000" and that is "8" in decimal  :|

#### majenko

#3
##### Jul 21, 2012, 07:53 pm
No, you add the 0 to the MSB, not the LSB:

Code: [Select]
`84210100`

#### Tom Carpenter

#4
##### Jul 21, 2012, 07:54 pm
Other end. You would add the 0 as the MSB (Most Significant Bit), so 4 (100) would become 4 (0100).
~Tom~

Go Up