0% found this document useful (0 votes)
75 views

Chapter 2 - Arithmetic and Logic 2.3

This document discusses data representation in computer memory and boolean algebra operations. It describes the basic logic gates - NOT, AND, OR, NOR, NAND, exclusive OR, and exclusive NOR. For each gate, it provides the logic symbol, explains the operation, and includes a truth table. The goal is for students to understand how boolean algebra is used to analyze and design digital circuits using these basic logic operations.

Uploaded by

ganeswaran
Copyright
© © All Rights Reserved
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
75 views

Chapter 2 - Arithmetic and Logic 2.3

This document discusses data representation in computer memory and boolean algebra operations. It describes the basic logic gates - NOT, AND, OR, NOR, NAND, exclusive OR, and exclusive NOR. For each gate, it provides the logic symbol, explains the operation, and includes a truth table. The goal is for students to understand how boolean algebra is used to analyze and design digital circuits using these basic logic operations.

Uploaded by

ganeswaran
Copyright
© © All Rights Reserved
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 25

DATA

REPRESENTATION IN
COMPUTER MEMORY
Previous Lesson

∗ Describe the coding system:


 Sign and magnitude
 1’s Complement and 2’s Complement
 Binary Coded Decimal (BCD system)
 ASCII and EBCDIC
LESSON LEARNING OUTCOME

By the end of topic, the students should know:


∗ Perform operations with Boolean Algebra
 Define logic gates.
 Explain the operation of logic gates
 Draw the logic symbols for the following logic gates : NOT,
AND, OR, NOR, NAND, Exclusive –OR and Exclusive –NOR
 Construct truth table of logic gates.
Logic Gates

∗ Digital (logic) circuits operate in the binary mode


where each input and output voltage is either 0 or 1.
∗ This characteristic of logic circuits allow us to use
Boolean Algebra as a tool for the analysis and design of
digital systems.
∗ The input are considered logic variables whose logic
levels at any time determine the output levels.
∗ In our work to follow, we shall use letter symbols to
represent logic variables. For example , the letter A
might represent a certain digital circuit input or output,
and any time we must have either A= 0 or A=1; if not one,
then the other.
Logic Gates

∗ In Boolean Algebra, there are only 3 basic operations :


OR, AND, NOT (logic operations)
∗ Digital circuits called logic gates can be constructed
from diodes, transistors, and resistors connected in
such a way that the circuit output is the result of a
basic logic operation
Gates NOT

∗ Can be performed on a single input variable


∗ Example : if the variable A is subjected to the NOT
operation , the result x can be expressed as
X=A

A Y
A Y Presence of
small circle
0 1 always denotes
inversion
1 0
Truth Table
Gates AND

∗ The AND gate output is equal to the AND product of


the logic input, that is x=AB.
∗ In other words, the AND gate is a circuit operates in
such way that its output is HIGH only when all its
input are HIGH.
Gates AND

A Y
B

A B Y
0 0 0
0 1 0
1 0 0
1 1 1

Truth Table
Gates AND

Summary of the AND operation


∗ The AND operation is performed the same as ordinary
multiplication of 1 and 0
∗ An AND gate is logic circuit that performs the AND
operation on the circuit’s inputs
∗ An AND gate output will be 1 only for the case when
all inputs are 1, for all other cases the output will be 0
∗ The expression x=AB is read as ‘x equals A AND B’
Gates OR

∗ Circuit that has two or more inputs and whose output


is equal to the OR combination of the inputs.
∗ The OR gate operates in such a way that its output is
HIGH (logic 1) if either input A and B or both are at
logic 1 level.
Gates OR

A Y
B
A B Y

0 0 0
0 1 1
1 0 1
1 1 1

Truth Table
Gates OR

Summary of the OR operation


∗ The OR operation produces a result (ouput) of 1
whenever any input is a 1.Otherwise the output is 0.
∗ An OR gate is logic circuit that performs an OR
operation on the circuit’s inputs
∗ The expression x = A+B is read as ‘x equals A or B’
Summary of Boolean Operations

OR AND NOT
0+0= 0 0.0 = 0 0 =1
0+1= 1 0.1= 0 1 =0
1+0= 1 1.0= 0
1+1 = 1 1.1= 1
 Gates NOR
 Gates NAND
 Gates Exclusive –OR
 Gates Exclusive –NOR
Gates NOR

∗ NOR gate is a combination of the OR gate and NOT


gate.
∗ It works as an inverted OR gate. It is the same as OR
gate symbol except it has a small circle on the output.
∗ This small circle represents inversion operations. This
gate will give an inverted output of the OR gate.
Input Output
A B Y
0 0 1
0 1 0
1 0 0
1 1 0
Gates NAND
A Y
B

∗ NAND gate is a combination of AND gates and NOT


gates.
∗ Its function is to invert the output of AND gate. It is
the same as AND gate symbol except for the small
circle on the output.
∗ Once again the circle marks the inverse operation.
∗ Thus, the NAND gate operates as an AND gate
followed by an inverter.
INPUT OUTPUT
A B Y
0 0 1
0 1 1
1 0 1
1 1 0
Gates EXCLUSIVE-OR

∗ Two special logic circuit that normally found in digital


systems are circuit-Or and Exclusive Exclusive-Nor.
∗ Get Exclusive-Or is a combination of the three basic
gates gates NOT, AND and OR.
∗ Get Exclusive-or also known as EX-OR.
INPUT OUTPUT
A B Y
0 0 0
0 1 1
1 0 1
1 1 0
Gates EXCLUSIVE-NOR

∗ Exclusive-Nor gate operations (summarized: EX-NOR)


is operating contrary to the Exclusive-Or.
∗ Symbol for EX-NOR obtained simply by adding a small
circle at the output of the EX-OR symbols.
INPUT OUTPUT
A B Y
0 0 1
0 1 0
1 0 0
1 1 1
∗THANK YOU

∗ TO BE CONTINUED….

You might also like