You are on page 1of 4

TEJ2O1: Digital Logic

Cameron Lin

Go to the following website: www.neuroproductions.be/logic-lab/


1. Scroll to the bottom, and click on LOGIC PORTS to examine circuits
illustrating the gates that we have learned about. Turn the switches on and off,
and observe what happens.
a) Under what condition(s) does the light turn on for the AND gate?
When both switches are ON
b) Under what condition(s) does the light turn on for the OR gate?
When either or both switches are ON
c) Under what condition(s) does the light turn on for the NOT gate?
When the switch is OFF
d) Under what condition(s) does the light turn on for the NAND gate?
When either or both switches are OFF
e) Under what condition(s) does the light turn on for the NOR gate?
When both switches are OFF
f) Under what condition(s) does the light turn on for the XOR gate?
When both switches inputs are different (1 OFF, 1 ON)

2. Clear the stage by clicking on


Create the circuits listed below, and answer the following questions. Take a
screenshot of the circuit and paste it into the answer space to the right.
a)

One input flowing straight to a red light bulb.


What happens when the switch is turned ON?
The light turns ON
What happens when the switch is turned OFF?
The light turns OFF

TEJ2O1: Digital Logic

b)

Cameron Lin

Two inputs flowing to an OR gate (but one flows through a NOT gate first), and the
output goes into a light bulb.
You will notice that there are many conditions under
which the light bulb will be ON. What is the only
scenario in which the light bulb will be OFF?
When the switch with the NOT gate is ON and the other is
OFF.

c)

Two inputs flowing to an XOR gate, and the fan as the output.
What happens when one switch is ON?
Fan turns ON
What happens when both switches are ON?
Fan turns OFF
What happens when both switches are OFF?
Fan turns OFF

d)

Two inputs flowing to an AND gate and then that output flows through a NOT gate,
and into a light bulb.
Under what conditions does the light bulb turn OFF?
When both switches are ON
Describe what is happening under this condition.
(i.e. follow the flow through the circuit)
It is essentially a NAND gate. In an AND gate, the only way the gate is ON is when
both inputs are ON, and the NOT gate reverses the current into OFF.

TEJ2O1: Digital Logic

e)

Cameron Lin

Two inputs flowing to a NAND gate and then that output flows through a NOT gate,
and into a light bulb.
Under what conditions does the light bulb turn ON?
When both inputs are ON

Describe what is happening under this condition.


(i.e. follow the flow through the circuit)
Since both inputs are ON, the output through the NAND gate comes out as OFF.
Then, the current goes through the NOT gate, which inverts the OFF current to ON.

f)

Two inputs flowing to a NOR gate and then that output flows (along with a third
input) to an AND gate.
Under what conditions does the light bulb turn ON?
When both inputs to the NOR gate (A and B) are OFF
and the third input is ON. (C)
Describe what is happening under this condition.
(i.e. follow the flow through the circuit)
The NOR gate makes the current ON, and goes to the
AND gate where the third input is also ON, causing the light to turn ON.

TEJ2O1: Digital Logic

Cameron Lin

You might also like