Lab 1 Basic Logical Functions and Gates
Lab 1 Basic Logical Functions and Gates
Engineering Faculty
Department of Computer Engineering
Fall 2017
ECOM 2013
Lamia Z. Shu'shaa Khaleel I. Shaheen
Laboratory Manual
Experiment #1
• To study Basic logic gates: INV, AND, OR, NAND, NOR, XOR, XNOR
• To study Logic Diagrams, Boolean Functions, Truth Tables and Boolean algebra of
these gates.
Prelab
Use Logisim Software to simulate the functions of the basic gates as shown in figures below.
Theoretical Background
• Truth Table
Input Output
0 1
1 0
• Boolean Expression
F = A'
• Pin Diagram
2
2. AND Gate
• Logic Diagram
• Truth Table
Input1 Input2 Output
0 0 0
0 1 0
1 0 0
1 1 1
• Boolean Expression
F = AB = A . B
• Pin Diagram
3. OR Gate
• Logic Diagram
3
• Truth Table
Input1 Input2 Output
0 0 0
0 1 1
1 0 1
1 1 1
• Boolean Expression
F=A+B
• Pin Diagram
4. NAND Gate
• Logic Diagram
• Truth Table
Input1 Input2 Output
0 0 1
0 1 1
1 0 1
1 1 0
4
• Boolean Expression
F = (AB)' = A' + B'
• Pin Diagram
5. NOR Gate
• Logic Diagram
• Truth Table
Input1 Input2 Output
0 0 1
0 1 0
1 0 0
1 1 0
• Boolean Expression
F = (A + B)' = A'B'
• Pin Diagram
5
6. XOR Gate
• Logic Diagram
• Truth Table
Input1 Input2 Output
0 0 0
0 1 1
1 0 1
1 1 0
• Boolean Expression
F = A B = A'B + AB'
• Pin Diagram
6
7. XNOR Gate
• Logic Diagram
• Truth Table
Input1 Input2 Output
0 0 1
0 1 0
1 0 0
1 1 1
• Boolean Expression
F = (A B)' = (A + B')(A' + B)
F = AB' + C
Solution:
7
Example 2: Write Boolean expression describing the output of the circuit described by the
logic diagram in the Figure below
Solution:
F = (AB + C)' D
DE Morgan's Theorem
• (X + Y)' = X'Y'
8
Lab Work
Equipment’s required:
Basic Gates
• Connect the 74LS08 to the breadboard, connect +5V to pin 14 and 0V (ground) to
pin 7, connect one AND gate inputs to data switches, SW1 and SW2 TTL level and
output to LED L0 of the trainer kit, and record down its truth table.
• Repeat previous part for all other gates.
Exercises
u + w(xyz)'
2. Write Boolean expression and construct the truth table describing the output of the
circuit described by the logic diagram in the Figure below.