You are on page 1of 17

University of Education Lahore, Multan

Campus.
Assignment No: 02
Submitted To: Dr. Shehzad Sarwar Bhatti
Submitted By: Hammadur Rehman Tabassum
Roll No: Bsf2105179
Subject: DLD
Department: Information Sciences
Program: BS CS
Semester: 2nd
ANDGate
Components of a AND Gate circuit:
1. AND GATE

2. Two switches

3. +VDD electricity source

4. Red Probe light source

5. Ground

Procedure:
 Open Electronic Work Bench (EWB).
 Drag AND Gate from its toolbars.
 Insert 2 switches.
 Insert a +VDD Electricity source.
 Insert a Red probe light source.
 Connect one side of each switch line with AND
Gate Input.
 And the other side of switches with a battery.
 Connect the Red probe light bulb with the output
of AND Gate.
Observations:
If both switches are closed, Electricity will pass
through the circuit and the bulb will light up.
But
If one switch remains open, electricity will not
pass through the circuit and the bulb will not light up.

Note: Red light bulb Indicates


power on. And the white bulb
indicates power off.
Truth Table:

“0” stands for No (open switch) and “1” stands for Yes
(closed switch).

Mathematical Form:
AxB=A.B
OR Gate
Components of an OR Gate circuit:
 OR GATE

 Two switches

 +VDD electricity source

 Red Probe light source

 Ground
Procedures:
o Open Electronic Work Bench (EWB).
o Drag OR Gate from its toolbars.
o Insert 2 toggle switches.
o Insert a +VDD Electricity source.
o Insert a Red probe light source
o Connect one side of each switch line with OR Gate
Input.
o OR the other side of switches with a battery.
o Connect the Red probe light bulb with the output
of the OR Gate.

Observations:
1. When both Switch A and S are closed electricity
passes through the circuit and the bulb lights up.
2. When Switch A is closed and S is open, the bulb
lights up.
3. When Switch A is open and S is close, the bulb
remains lights up.
4. When Switch A and S are open, the bulb didn’t
light up.
“0” stands for No (open switch) and “1” stands for Yes
(closed switch).

Mathematical Form:
X=A+S
Truth Table:

A S A+S
1 1 1
1 0 1
0 1 1
0 0 0
Not Gate
Observations:
 When Input is OFF (0), the output is (1)
 When Input is ON (1), the output is (0)

Mathematical Form:
X=Ά
Truth Table:

Ά X
0 1
1 0
Buffer
Components:

 Buffer

 Two switches

 +VDD electricity source

 Red Probe light source

 Ground
Procedure:
o Open Electronic Work Bench (EWB).
o Drag Buffer from its toolbars.
o Insert 1toggle switch.
o Insert a +VDD Electricity source.
o Insert a Red probe light source
o Connect buffer with +VDD Electricity source and
with a Red Probe light source.

Observations:

 When Input is ON (1), the output is ON (1).


 When Input is OFF (0), the output is OFF (0).

Mathematical Form:
A=B
Truth Table:

Ά B
1 1
0 0

You might also like