Albert Teen
powered by
Albert logo

YOU ARE LEARNING:

pointer
Logic Gates
lessonMenuButton

Logic Gates

lesson introduction

Logic Gates

This lesson looks at the different types of logic gates, including the action of NOT, AND, OR, NAND and NOR gates.

A digital signal operates at two levels, high or low. What else can we call them?

hint button

A logic gate is a digital electronic component that gives a particular output, depending on the input. We will look at this in more detail in this lesson.

Let's look at the output of logic gates first. What do you think 1 means?

hint button
1

So depending on what you put into a logic gate, you will get a different output.

If the output is that the logic gate produces a signal, it is known as a 1. If the output is that the logic gate does not produce a signal, it is known as a 0.

block image

There are different types of logic gates: NOT, AND, OR, NAND, and NOR. Let's first have a look at what we actually mean when we say "not", "and" and "or".

1

Have a look at this sentence: "I have a cat AND a dog." Pick all the options that are true if this sentence is true.

hint button

You can select multiple answers

2

Have a look at this sentence: "It is NOT the case that I have a dog." Pick all the options that are true if this sentence is true.

hint button

You can select multiple answers

3

Have a look at this sentence: "My cousin has a cat OR a dog." Pick all the options that could be true.

hint button

You can select multiple answers

4

Look at this sentence again: "My cousin has a cat OR a dog." Is the sentence true if the cousin owns both a cat AND a dog?

hint button
1

So if we say NOT...

we are only talking about 1 input, for example "dog". If it's NOT a dog, then it's true. Otherwise it's false.

block image
2

If we say AND...

we are talking about 2 inputs, for example "cat' and 'dog". If it's BOTH a cat and a dog, then it's true. Otherwise it's false.

block image
3

If we say OR...

we are talking about 2 inputs, for example "cat" and "dog". If just one of them is a cat or a dog or if there is both a cat and a dog, then it's true. Otherwise, it's false.

block image
1

Logic gates work in the same way. This logic gate only gives the output 1 if both inputs are 1. Which logic gate is that?

A) NOT gate B) AND gate C) OR gate

hint button
block image
2

AND logic gates...

only give the output 1 if both input 1 AND input 2 are both 1s.

block image
3

This logic gate only gives the output 1 if the input is 0. Which logic gate is that?

A) NOT gate B) AND gate C) OR gate

hint button
block image
4

NOT logic gates...

only give the output 1 if the input is NOT 1 (so only if the input is 0).

block image
5

This logic gate gives the output 1 as long as just one of the inputs is 1. Which logic gate is that?

A) NOT gate B) AND gate C) OR gate

hint button
block image
6

OR logic gates...

give the output 1 as long as the first OR the second input is 1.

block image

NAND is also a type of logic gate. What do you think NAND might mean?

hint button
1

NAND gates are the opposite of AND gates. What does that mean? Pick the most correct option.

A) NAND gates give output 1 if both inputs are 0. B) NAND gates give output 1 if 1 input is 1. C) NAND gates give output 1 if both inputs are not 1.

hint button
block image
2

NOR gates mean NOT OR and they are the opposite of OR gates. What does that mean? Pick the most correct option.

A) NOR gates give output 1 if both inputs are 0. B) NOR gates give output 1 if 1 input is 0. C) NOR gates give output 1 if 1 input is 1.

hint button
block image
3

To sum up!

NAND gates will give output 1 whenever an AND gate would give output 0, and NOR gates will give output 1 whenever an OR gate would give output 0.

block image

Which logic gate has a single input and will output a signal if the input is not 1?

hint button
1

Which logic gate is this?

hint button
block image

Which logic gate has two inputs and will output a signal as long as at least one input is not 1?

hint button

Which logic gate has two inputs and will output a signal as long as both inputs are 0?

hint button
1

Which logic gate is this?

hint button
block image