AND Gate

Video 1

The Gates

AND Gate

OR Gate

XOR Gate

NOT Gate

Video 2

Videos

AND Gate

The output Q is true if input A AND input B are both true: Q = A AND B

An AND gate can have two or more inputs, its output is true if all inputs are true.

Equation

Q = A AND B

Truth Table

Input A Input B Output Q

0 0 0

0 1 0

1 0 0

1 1 1

OR Gate

The output Q is true if input A OR input B is true (or both of them are true): Q = A OR B An OR gate can have two or more inputs, its output is true if at least one input is true.

Truth Table

Input A Input B Output Q

0 0 0

0 1 1

1 0 1

1 1 1

Equation

Q = A OR B

OR Gate

**Logic Gate**

XOR Gate

The output Q is true if either input A is true OR input B is true, but not when both of them are true: Q = (A AND NOT B) OR (B AND NOT A)

This is like an OR gate but excluding both inputs being true. The output is true if inputs A and B are DIFFERENT. EX-OR gates can only have 2 inputs.

Truth Table

Equation

Input A Input B Output Q

0 0 0

0 1 1

1 0 1

1 1 0

Q = (A AND NOT B) OR (B AND NOT A)

NOT Gate

NOT Gate

The output Q is true when the input A is NOT true, the output is the inverse of the input: Q = NOT A A NOT gate can only have one input. A NOT gate is also called an inverter

Truth Table

Input A Output Q

0 1

1 0

Equation

Q = NOT A

**Eng . Zuher Saeed Al hamoud**

**202323243**

**VP - 8**

Boolean 0 and 1 do not represent actual numbers but instead represent the state, or logic level.

Boolean expression for the Not operation:

x =A

The above expression is read as “x equals A ”

Boolean expression for the AND operation:

x =A * B

The above expression is read as “x equals A AND B”

AND Operation

Boolean expression for the OR operation:

x =A + B

The above expression is read as “x equals A OR B”

OR Operation

Not operation

Boolean expression for the Not operation:

x =A

The above expression is read as “x equals A ”

Logic 0

Logic 1

False

True

Off

On

Low

High

No

Yes

Open switch

Closed switch

Boolean 0 and 1 do not represent actual numbers but instead represent the state, or logic level.

Boolean Constants and Variables

pictuers

Truth Table

Circuit Diagram

Electronic board

Gates Component

AND & OR Gate

All Gates

**OR Gate**

AND Gate

NOT Gate

AND Gate

NOT Gate

Three Basic Logic Operations

Boolean expression for the AND operation:

x =A * B

The above expression is read as “x equals A AND B”

AND Operation

Boolean expression for the OR operation:

x =A + B

The above expression is read as “x equals A OR B”

OR Operation

Not operation

Boolean expression for the Not operation:

x =A

The above expression is read as “x equals A

**Logic Gate**

**Eng . Zuher Saeed Al hamoud**

202323243

202323243