Thursday, February 5, 2009

Digital Lab: Expt Num 3- Half/Full Adder using NAND only

Half Adder using NAND gate only



fig 3.1




Full Adder using NAND gate only

To construct a full adder circuit, we'll need three inputs and two outputs. Since we'll have both an input carry and an output carry, we'll designate them as CIN and COUT. At the same time, we'll use S to designate the final Sum output. The resulting truth table is shown to the right.

Hmmm. This is looking a bit messy. It looks as if COUT may be either an AND or an OR function, depending on the value of A, and S is either an XOR or an XNOR, again depending on the value of A. Looking a little more closely, however, we can note that the S output is actually an XOR between the A input and the half-adder SUM output with B and CIN inputs. Also, the output carry will be true if any two or all three inputs are logic 1.

What this suggests is also intuitively logical: we can use two half-adder circuits. The first will add A and B to produce a partial Sum, while the second will add CIN to that Sum to produce the final S output. If either half-adder produces a carry, there will be an output carry. Thus, COUT will be an OR function of the half-adder Carry outputs. The resulting full adder circuit is shown here ( fig 3.2).



fig 3.2



INPUTS OUTPUTS
A B CIN COUT S
0 0 0 0 0
0 0 1 0 1
0 1 0 0 1
0 1 1 1 0
1 0 0 0 1
1 0 1 1 0
1 1 0 1 0
1 1 1 1 1







fig 3.3

Using only NAND gates



Digital Lab Cycle S4

1. Realization of logic circuits using basic gates
2. Realization of logic circuits using universal gates
3. Half adder and Full adder-----àUsing NAND gates only and using NAND gate and EX-OR gate
4. 4 bit adder/Substracter
5. Single bit BCD adder
6. Flipflops using gates
7. Multiplexers and Demultiplexers
8. Decimal to BCD encoder and BCD to decimal decoder
9. 4 bit ripple counter and decade counter
10. Synchronous 3 bit UP/DOWN counter
11. MOD 5- counter
12. Ring counter and Johnson counter
13. Self starting counter for a sequence 0,2,4,5,0,2,4,5
14. BCD to 7-segment decoder
15. Astable and Monostable multivibrator using gates.

Welcome

Welcome to this virtual classroom