International Electronics and Technology Forum
May 17, 2012, 04:06:46 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: STILL don't understand full-adders? Help?  (Read 226 times)
Drew
Newbie
*
Posts: 9


« on: July 18, 2011, 10:29:13 PM »

I'm trying to figure out how to create a basic calculator, using only logic gates as the brain. I've tried online resources, and I even bought a textbook(Introduction to Logic Design) on the matter. Neither helped. Here is an example of what I want to know:

A full-adder has 3 inputs: A,B, and Cin(carry from previous adder). And it has 2 outputs: S(sum) and Cout(carry out from the adder, in to the next) Let's say I wanted to add 2+2. In binary, 2 is 10. Two 2-bit numbers would mean I have 4 inputs, and need 2 full-adders connected(Cout of the first connected to Cin of the second) right? So if I input 1 into A, and 0 into B of both of the adders, from what I understand, this should add 2, and 2(10, and 10 in binary) thus resulting in 100(which is 4 in decimal format). Am I understanding it correctly?
Logged
Chris_Feilbach
Newbie
*
Posts: 6


« Reply #1 on: July 18, 2011, 10:44:37 PM »

Firstly, in unsigned binary, 10 is 2.

You are correct, the COUT of the 0th bit full adder is connected to the CIN of the 1st bit full adder.  The CIN of the 0th bit is connected to ground.

Your answer is correct.  You two SUM outputs of the two full adders are 0.  The COUT of the 1st bit full adder is '1' because you only have two bits to work with for your sum, and the largest unsigned binary number two bits can hold is 3.

A 4-bit unit, called a nibble, is the standard size for computers.  Everything is a multiple of 4 bits.  

Also recall that
SUM <= A xor B xor CIN
COUT <= AB or BC or AC

My specialty area is computer architecture, which is the design of CPUs and the various systems needed to interface them with other computer components.  Let me know if you need any more help.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.13 | SMF © 2006-2011, Simple Machines LLC | Privacy Policy Valid XHTML 1.0! Valid CSS!