Logic 6
Logic 6
Logic 6
Objectives
To be familiar and be able to create arithmetic and logic circuits To apply the function of logic circuit in arithmetic for combinational and sequential logic circuit
II.
III.
Procedures
1. Research the following: definition, circuit diagram a) b) c) d) e) f) g) h) Half adder Half adder using nand gates Full adder Full adder using nand gates Half subtractor Half subtractor using nand gates Full subtractor Full subtractor using nand gates
2. Create their respective truth table and Karnaugh map to obtain their circuits. 3. Wire the circuit obtained.
IV.
Breadboard Layout
V.
A B 0 0 0 1 1 0 1 1
A B C 0 0 0 0 0 1 0 1 0 0 1 1 1 0 0 1 0 1 1 1 0 1 1 1
Borrow 0 1 1 1 0 0 0 1
SUM HALF ADDER FULL ADDER : : AB + AB ABC + ABC + ABC + ABC DIFFERENCE HALF SUBTRACTOR FULL SUBTRACTOR : : AB + AB ABC + ABC + ABC + ABC
CARRY AB AB + BC + AC BORROW AB AB + AC + BC
VI.
Data Analysis
The combinational circuits I constructed were the half and full adder and the half and full subtractor. Half adder is a combinational circuit that performs addition of two bits, as addends, while the full adder adds three bit, the two significant bits and a previous carry. On the other hand, half subtractor performs subtraction of two bits, the minuend and the subtrahend, while the full subtractor operates in three inputs, the minuend and subtrahend and a previous borrow. Their outputs are shown on the previous truth tables. Using those truth tables, their resulting circuits are obtained through Karnaugh mapping. Just like the previous experiments and knowing the principles of Karnaugh mapping, I came up with the minimized circuits.
: : : :
SUM AB + AB ABC + ABC + ABC + ABC DIFFERENCE AB + AB ABC + ABC + ABC + ABC
CARRY AB AB + BC + AC BORROW AB AB + AC + BC
VII.
VIII.
Conclusion
After doing the experiment, I became familiar with the combinational circuits we used here such as the half adder, full adder, half subtractor, and the full subtractor. Aside from familiarizing myself to them, I was able to create and use them for arithmetic operation, addition and subtraction, of two-three bits.
IX.
Research
HALF ADDER & FULL ADDER THEORY: The most basic arithmetic operation is the addition of two binary digits. There are four possible elementary operations, namely, 0+0=0 0+1=1 1+0=1 1 + 1 = 102 The first three operations produce a sum of whose length is one digit, but when the last operation is performed the sum is two digits. The higher significant bit of this result is called a carry and lower significant bit is called the sum. HALF ADDER: A combinational circuit which performs the addition of two bits is called half adder. The input variables designate the augend and the addend bit, whereas the output variables produce the sum and carry bits. FULL ADDER: A combinational circuit which performs the arithmetic sum of three input bits is called full adder. The three input bits include two significant bits and a previous carry bit. A full adder circuit can be implemented with two half adders and one OR gate. HALF ADDER TRUTH TABLE: S.No 1. 2. 3. 4. INPUT A 0 0 1 1 OUTPUT S 0 1 1 0
B 0 1 0 1
C 0 0 0 1
CIRCUIT DIAGRAM:
B 0 0 1 1 0 0 1 1
C 0 1 0 1 0 1 0 1
CARRY 0 0 0 1 0 1 1 1
DESIGN: From the truth table the expression for sum and carry bits of the output can be obtained as, SUM = ABC + ABC + ABC + ABC CARRY = ABC + ABC + ABC +ABC Using Karnaugh maps the reduced expression for the output bits can be obtained as, SUM
CARRY = AB + AC + BC
CIRCUIT DIAGRAM:
HALF SUBTRACTOR & FULL SUBTRACTOR THEORY: The arithmetic operation, subtraction of two binary digits has four possible elementary operations, namely, 0-0=0 0 - 1 = 1 with 1 borrow 1-0=1 1-1=0 In all operations, each subtrahend bit is subtracted from the minuend bit. In case of the second operation the minuend bit is smaller than the subtrahend bit, hence 1 is borrowed. HALF SUBTRACTOR: A combinational circuit which performs the subtraction of two bits is called half subtractor. The input variables designate the minuend and the subtrahend bit, whereas the output variables produce the difference and borrow bits. FULL SUBTRACTOR: A combinational circuit which performs the subtraction of three input bits is called full subtractor. The three input bits include two significant bits and a previous borrow bit. A full subtractor circuit can be implemented with two half subtractors and one OR gate.
B 0 1 0 1
BORR 0 1 0 0
CIRCUIT DIAGRAM:
INPUT S.No A 1. 2. 3. 4. 5. 6. 7. 8. 0 0 0 0 1 1 1 1 B 0 0 1 1 0 0 1 1 C 0 1 0 1 0 1 0 1
DESIGN: From the truth table the expression for difference and borrow bits of the output can be obtained as, Difference, DIFF= ABC + ABC + ABC + ABC Borrow, BORR = ABC + ABC + ABC +ABC Using Karnaugh maps the reduced expression for the output bits can be obtained as, DIFFERENCE