Zawar Hassan BCS07183056 Lab No 4 26 Nov 2019

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 14

Lab No 4

Task No 1

Tool: Used Logic.Ly

Logic Gates

Truth Table

XYZ+XY’Z+XY

X Y Z Y’ XYZ XY’Z XY XYZ+XY’Z+XY


0 0 0 1 0 0 0 0
0 0 1 1 0 0 0 0
0 1 0 0 0 0 0 0
0 1 1 0 0 0 0 0
1 0 0 1 0 0 0 0
1 0 1 1 0 1 0 1
1 1 0 0 0 0 1 1
1 1 1 0 1 0 1 1

Combination (0,0,0)
Combination (0,0,1)

Combination (0,1,0)
Combination (0,1,1)

Combination (1,0.0)
Combination (1,0.1)

Combination (1,1.0)
Combination (1,1.1)
Lab no 4

Task no 2

Tool used logic.ly

Logic gates

Truth table

(AB)+CD

A B C D AB CD AB+CD
0 0 0 0 0 0 0
0 0 0 1 0 0 0
0 0 1 0 0 0 0
0 0 1 1 0 1 1
0 1 0 0 1 0 1
0 1 0 1 1 0 1
0 1 1 0 1 0 1
0 1 1 1 1 1 1
1 0 0 0 1 0 1
1 0 0 1 1 0 1
1 0 1 0 1 0 1
1 0 1 1 1 1 1
1 1 0 0 0 0 0
1 1 0 1 0 0 0
1 1 1 0 0 0 0
1 1 1 1 0 1 1

Combination (0,0,0,0)
Combination (0,0,0,1)

Combination (0,0,1,0)
Combination (0,0,1,1)

Combination (0,1,0,0)
Combination (0,1,0,1)

Combination (0,1,1,0)
Combination (0,1,1,1)

Combination (1,0,0,0)
Combination (1,0,0,1)

Combination (1,0,1,0)
Combination (1,0,1,1)

Combination (1,1,0,0)
Combination (1,1,0,1)

Combination (1,1,1,0)
Combination (1,1,1,1)

You might also like