chapter 02 2.4.2_logic_gate_2016

22
At the end of this topic, students should be able to: a) Identify symbol for logic gate Chapter Two Compu ter Syste m 2.4.2 Logic Gate

Upload: fizaril-amzari-omar

Post on 20-Jan-2017

5.649 views

Category:

Education


0 download

TRANSCRIPT

Page 1: Chapter 02 2.4.2_logic_gate_2016

At the end of this topic, studentsshould be able to:

a) Identify symbol for logic gate

Chapter Two

Computer System2.4.2 Logic Gate

Page 2: Chapter 02 2.4.2_logic_gate_2016

Logic Gates• An electronic circuit operates on one or

more input signals to produce an outputsignal.Gates are digital (two-state) circuits and can•be analyzed withThe circuit whichcalled OR gateThe circuit which

Boolean algebra.• performs OR operation is

• performs AND operationis called AND gate.

2

Page 3: Chapter 02 2.4.2_logic_gate_2016

Electrical Switches• Electrical switches are good examples to

illustrate OR, ANDtheorems.

and many Boolean

• closed = 1, open = 0, ON = 1 and OFF = 0

3

Page 4: Chapter 02 2.4.2_logic_gate_2016

Behaviourparallel

of two switches in

Truth table for OR operation/gate

• 0 (false) and 1 (true)

4

Page 5: Chapter 02 2.4.2_logic_gate_2016

Cont....• When two switches connected in series as

shown below, the lamp will light up whenboth A and B are closed. Table 6 shows thebehaviour of two switches in series circuit.

5

Page 6: Chapter 02 2.4.2_logic_gate_2016

Behaviour of Two Switches in Series

Truth Table for AND gate

• 0 (false) and 1 (true)

6

Page 7: Chapter 02 2.4.2_logic_gate_2016

Definition Boolean Algebra• The basic rules for simplifying and combining logic

gates are called Boolean algebra in honour ofGeorge Boole (1815-1864).

••

has either of two values: true or falseThere are two types of operator:

Unary – NOT Binary – AND, OR

(l or 0).

Eg : Y = A • B, Y = AB, Y = A + B, Y = Ā1 = 1.1 , 1 = 1x1 , 1 = 1+0, 1 = Ō

7

Page 8: Chapter 02 2.4.2_logic_gate_2016

Logic Gates

These gates are:

AND gate OR gate NOT gate

8

Page 9: Chapter 02 2.4.2_logic_gate_2016

Logic Gates

More gates

– Universal gates :

NAND-gate

NOR-gate

9

Page 10: Chapter 02 2.4.2_logic_gate_2016

Truth Table• A truth table is a good way to show the

function of a logic gate.It shows the output states for every possible•combination of inputThe symbols 0 (false)

states.and 1 (true) are used• in

truthFor a

tableslogic gate with n inputs, there are• 2n

entries in the truth table.Example: A logic gate with three inputs, A,• B

23and C will contain = 8 entries.10

Page 11: Chapter 02 2.4.2_logic_gate_2016

AND ( Logicoperation)

Gate , Truth Table, Boolean

11

Page 12: Chapter 02 2.4.2_logic_gate_2016

OR ( Logicoperation)

Gate , Truth Table, Boolean

12

Page 13: Chapter 02 2.4.2_logic_gate_2016

NOT ( Logic Gate , Truthoperation)

Table, Boolean

• The NOT gate has one binaryinput and one binary output.The NOT gate's output is theinverse of its input.~0 = 1 is read as NOT 0equals to 1line over A is pronouncedNOT

• Y = Ā is read as “Y equals NOT

(¬A), (A’),

A”(~A),(Ā)

(!A ),13

Page 14: Chapter 02 2.4.2_logic_gate_2016

NAND Operator

14

Page 15: Chapter 02 2.4.2_logic_gate_2016

NOR Operator

15

Page 16: Chapter 02 2.4.2_logic_gate_2016

Explain the following logic gates:

16

Page 17: Chapter 02 2.4.2_logic_gate_2016

Exercise

Write a boolean expression and draw the truth table to represent thislogic circuit diagram.

17

Page 18: Chapter 02 2.4.2_logic_gate_2016

18

Page 19: Chapter 02 2.4.2_logic_gate_2016

19

Page 20: Chapter 02 2.4.2_logic_gate_2016

20

Page 21: Chapter 02 2.4.2_logic_gate_2016

21

Page 22: Chapter 02 2.4.2_logic_gate_2016

22