<p> ES210L, Digital Circuits and Logic Design Lab </p><p>Reporter Name: Date: Partner Names Group No.: Lab 6: Half-Adder and Full-Adder A. Objectives 1. Learn what a half adder is and its operation. 2. Implement the half-adder on the protoboard. 3. Build the Verilog design and test bench programs for a half-adder and simulate it for the input and output waveforms. B. Introduction A half-adder is used to add two bits that can result in a sum bit and sometimes a carry bit that represents the most significant bit. Below is the truth table for the half-adder.</p><p>A B Sum Carry 0 0 0 0 0 1 1 0 1 0 1 0 1 1 0 1</p><p>When more bits are added together the carry from each position will add to the bits in the next position. In that case we need to use a full-adder (see the textbook). C. Parts needed</p><p> A Digital Multimeter One 7408 Quad 2-input AND gates A +5 V power supply One 7483, 4-Bit Binary Adder with Fast Carry A breadboard/protoboard One 7486 Quad XOR gates Wires Datasheets of the gates from the Internet</p><p>D. Procedure 1. Use table above to express a half-adder in terms of its inputs A and B and outputs S (Sum) and C (Carry) using AND and XOR gates. Draw the diagram in your logbook and below. Show your design on paper to the instructor.</p><p>Express Sum and Carry in Half-Adder Diagram for Half-Adder</p><p>2. Implement the binary half-adder on the bread/protoboard using the AND and XOR gates. Use switches for the inputs and LEDs to display the outputs. Show the results in the following table.</p><p>VA VB VSum in V LEDsum VCarry in V LEDcarry 0.0 V 0.0 V 0.0 V 5.0 V 5.0 V 0.0 V 5.0 V 5.0 V 3. a. Refer to IC 7483 datasheet and explain in detail what it does. b. Explain what fast carry does.</p><p>Dr. Ali Kujoory 4/9/2018 1 c. How many gates ANDs NANDs ORs NORs NOTs Buffer XORs Total are in 7483?</p><p>4. a. In 7483 express Sum1 for A1 and B1 inputs with C0=0 in terms of minterms of A and B. b. Let A=B=1001, what are the Sum bits and C4 bits at 7483 outputs?</p><p>5. Set up a 7483 IC, 4-Bit Full-Adder circuit on the protoboard. Connect C0 (input carry) of the IC to ground. Use the eight switches to enter A4, A3, A2, A1, B4, B3, B2, B1, and five LEDs to represent C4, S4 (Sum4), S3, S2, S1, respectively. Set the following values to the switches, observe the LEDs, and complete the following table.</p><p>Input Switches Output LEDs A4 A3 A2 A1 B4 B3 B2 B1 C4 S4 S3 S2 S1 0 0 1 1 0 0 1 1 0 1 0 0 0 1 0 0 0 1 1 1 0 1 1 1 1 0 0 0 0 1 1 1 1 0 0 1 1 0 0 1</p><p>6. Write a Verilog design program in the table below to simulate a half-adder and compile it to assure it is error-free. 7. Then, write the corresponding Verilog test bench program in the table below and compile it to assure it is error-free. Include all combinations for A and B with 50 ms delay between each combination entry in the program for 200ms duration. 8. Simulate the program to display the waveforms of the inputs and outputs (S and C) and copy the display in the table below. Each group member should do and show to instructor the Verilog section separately to make sure that you can do the Verilog on your own.</p><p>//half_adder.v program module //half_adder_tb.v program module</p><p>Waveforms of inputs and outputs</p><p>E. Feedback/Comments (your comments will help improving this lab) Was the instruction clear enough? Any error? How difficult was it for you? Do you have any observations to make?</p><p>F. Report Insert the answers and the display of waveforms you obtained in the tables above and submit. </p><p>Dr. Ali Kujoory 4/9/2018 2 </p>
Details
-
File Typepdf
-
Upload Time-
-
Content LanguagesEnglish
-
Upload UserAnonymous/Not logged-in
-
File Pages2 Page
-
File Size-