Chapter 43 - Adders and D-type flip-flops Flashcards
Is it possible to output the results of a binary addition or subtraction?
» Yes with the right combination of gates
What is a half adder?
» An adder performs binary addition and subtraction
What is the purpose of a half adder?
» Performs addition of 2bits
How many inputs and outputs does a half adder produce?
» Takes an input of 2 bits of A and B and outputs results S and carry C
What gates does a half-adder consist of?
» XOR gate
» AND gate
What does S represent?
» The sum and is equal to A XOR B
What does C represent?
» Represents the Carry and is equal to A AND B
What are the disadvantages of a half adder?
» Can only add one bit
» No third input so cannot use the carry from a previous addition to add n bit numbers
If A and B was both 1, what is the value of S and C in a half adder?
» S = 0
» C = 1
What is a full adder?
» Consists of 2 half adders to add three bits together including the inputs A and B and a Carry bit
How many inputs and output does a full adder have?
» Has 3 inputs, A, B, and C(in)
» 2 outputs, the SUM(S) and C(out)
What gates does the full adder consist of?
» 2 XOR GATES
» 2 AND GATES
» 1 OR GATE
» 2 half adders and 1 OR
What is the boolean logic of S and C(out) in a full adder?
» S = (A XOR B) XOR C(in)
» C(out) = ((A XOR B) AND C ) OR ( A AND B)
What does concatenating full adders do?
» Can be connected to make n full adders
» Can input the carry bit into a subsequent adder along with the 2 new inputs
How can you simply add the adders together?
» Draw a diagram, with A0, B0, S0 and so on
» Then simply add the values and where appropriate carry a single bit