Professional Documents
Culture Documents
Lab Assignments Lab Assignment 1:: Name: Kamran Suleman Roll no:2017-CE-008
Lab Assignments Lab Assignment 1:: Name: Kamran Suleman Roll no:2017-CE-008
LAB ASSIGNMENTS
Lab Assignment 1:
Design a Half Adder through schematic and verilog module. Also verify the results from truth table
given below.
THEORY
HALF ADDER
In electronics, an adder is a digital circuit that performs addition of numbers. In many computers and other
kind of processors, adders are used not only in the arithmetic logic units, but also in other parts of the
processor where they are used to calculate addresses, table indices and etc.
A B sum Carry
0 0 0 0
0 1 1 0
1 0 1 0
1 1 0 1
Schematic Diagram:
Name: KAMRAN SULEMAN Roll no:2017-CE-008
Waveform:
Lab Assignment 2:
Design a Full Adder through schematic and verilog module. Also verify the results from truth table
given below.
THEORY
FULL ADDER
Name: KAMRAN SULEMAN Roll no:2017-CE-008
A full adder adds binary numbers and accounts for values carried in as well as out. A one-bit full adder
adds three one-bit numbers, often written as A, B and Cin. A and B are the operands and Cin is a bit carried
in. The circuit produces a two bit output, S and Cout. The final sum is 2XCout+S.
0 0 0 0 0
0 0 1 1 0
0 1 0 1 0
0 1 1 0 1
1 0 0 1 0
1 0 1 0 1
1 1 0 0 1
1 1 1 1 1
Truth Table Circuit Diagram
Schematic Diagram:
Name: KAMRAN SULEMAN Roll no:2017-CE-008
Waveform: