Upload
shashank-kushwah
View
214
Download
0
Embed Size (px)
DESCRIPTION
Exercise with Adders
Citation preview
Indian Institute of Technology, Delhi
EEP 201: Digital Electronic Circuits Laboratory
Experiment 3, July-Dec 2008
Exercise with Adders
Pre-lab exercises:
1. Read the material in full.
2. Evaluate the truth table for a half-adder.
3. Evaluate the truth table for a full-adder.
Experiment:
A half-adder has two inputs, A and B. There are two outputs - thesum, S, and the carry, C. S = XOR(A, B). C = AB.
Implement a half-adder circuit using the schematic entry tools. Simu-late and verify that the half-adder is functioning properly.
A full-adder has three inputs, A, B and the carry-in, Cin. There aretwo outputs - the sum, S, and the carry-out, Cout. S = XOR(XOR(A,B), C). Cout = AB + BCin + ACin.
Implement a full-adder circuit using the schematic entry tools. Simu-late and verify that the full-adder is fully functional.
Arrange four full-adders as shown in the figure. This is a binary 4-bitadder. Implement the 4-bit adder using the schematic entry software.Simulate and verify that the 4-bit adder is working. Set the two 4-bitinputs of the adder to 0111 and 1011 respectively. Explain the observedoutput.
Cin A B
S Cout
FULLADDER
Cin A B
S Cout
FULLADDER
Cin A B
S Cout
FULLADDER
Cin A B
S Cout
FULLADDER
0A0 B0 A1 B1 A2 B2 A3 B3
S0 S1 S2 S3 C4
1