Logic Gates Circuits
Logic Gates Circuits
&
LOGIC CIRCUITS
In this chapter you will learn about:
◈ Logic gates
◈ Truth tables
◈ Logic circuits
◈ Boolean algebra.
2
Logic Gates
■ Logic gates are the basic building blocks of any
digital system.
■ For logic circuits, the number of inputs can be more than 2; for
example three inputs give a possible 23 (8) binary combinations.
5
Gate Symbol
■ The line coming into the gate from the left is the input.
6
Description:
■ If the signal going in is 1, then the signal coming out is 0.
7
Truth Table
Input Output
(A) (A)
1 0
0 1
8
Boolean Algebra
■ A = NOT A (Logic notation)
■ A = A (Boolean notation)
9
AND Gate
■ The AND gate is a circuit that takes two Binary signals and
turns them into one signal.
10
Gate Symbol
■ Two inputs are A and B.
11
Possible States:
■ The four possible inputs for AND gate are –
– A is 0, B is 0
– A is 0, B is 1
– A is 1, B is 0
– A is 1, B is 1
The AND gate will only output 1 if both the inputs are 1.
12
Truth Table
Input Input Output
(A) (B) (X)
0 0 0
0 1 0
1 0 0
1 1 1
13
Boolean Algebra
■ X = A AND B (Logic notation)
■ Otherwise X is False.
14
OR Gate
■ The OR gate is a circuit that takes two Binary signals and
turns them into one signal.
16
Possible States:
■ The four possible inputs for OR gate are –
– A is 0, B is 0
– A is 0, B is 1
– A is 1, B is 0
– A is 1, B is 1
18
Boolean Algebra
■ X = A OR B (Logic notation)
■ Otherwise X is True.
19
Logic Circuits
■ Logic gates can be connected together into a logic circuit.
A AND B
21
Example 2
(A AND B) AND C (A.B).C
A AND B
22
Draw the Truth Table
23
24
Calculate Outputs
■ First fill in the values for D.
■ D is 1 if A and B are 1.
■ Otherwise D is 0
25
26
■ E is the final output of the circuit.
■ E is 1 if either C or D is 1
27
Draw the Truth Table of the following circuit.
28
Truth Table
29
Write the Boolean and logical notation.
Logic Notation
(A AND B) OR (A AND C)
Boolean Notation
(A.B) + (A.C)
30
SUMMARY
31
Logic Gates
■ Computer carries out all operations by the combination of
signals that pass through standard blocks of built-in circuits.
33
34
35