0% found this document useful (0 votes)
75 views14 pages

Unit Ii Arithmetic Operations

The document discusses the arithmetic logical unit (ALU) which performs arithmetic and logical operations in a CPU. It describes how the ALU allows operations like addition, subtraction, multiplication, and logical AND/OR. The ALU is composed of basic logic gates and components like adders and uses those to perform operations on binary numbers. It can perform operations on data and send the results to the accumulator in a CPU.

Uploaded by

Aruna Aruchami
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
75 views14 pages

Unit Ii Arithmetic Operations

The document discusses the arithmetic logical unit (ALU) which performs arithmetic and logical operations in a CPU. It describes how the ALU allows operations like addition, subtraction, multiplication, and logical AND/OR. The ALU is composed of basic logic gates and components like adders and uses those to perform operations on binary numbers. It can perform operations on data and send the results to the accumulator in a CPU.

Uploaded by

Aruna Aruchami
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 14

CS6303 COMPUTER ARCHITECTURE

UNIT II
ARITHMETIC OPERATIONS

ALU - Addition and subtraction – Multiplication –


Division – Floating Point operations – Subword
parallelism.

Arithmetic and Logical Unit


CS6303 COMPUTER ARCHITECTURE

Recall the Prior Knowledge


2/14

Instruction Register (IR) Program Counter (PC) RAM

1
Control Unit 2
(CU)
ALU 3

4
CPU
5
Status Register (FLAG) Accumulator (ACC)
.
A.Aruna / CS6303 / Arithmetic Logical Unit 1/7/2018
CS6303 COMPUTER ARCHITECTURE

Introduction
3/14

Basic Arithmetic Operation Logical Operation

Representation

A.Aruna / CS6303 / Arithmetic Logical Unit 1/7/2018


CS6303 COMPUTER ARCHITECTURE

What’s ALU?
4/14

 Stands for Arithmetic and Logic Unit


 Performs Arithmetic (Add, Sub, . . .) and Logical
(AND, OR, NOT) operations.
 John Von Neumann proposed the ALU in 1945
when he was working on EDVAC (electronic
discrete variable automatic computer)

A.Aruna / CS6303 / Arithmetic Logical Unit 1/7/2018


CS6303 COMPUTER ARCHITECTURE

Arithmetic and Logical Unit


5/14

Operations Circuit Design


Combinational
Sequential Logic
Logic
Circuit
Circuit

A.Aruna / CS6303 / Arithmetic Logical Unit 1/7/2018


CS6303 COMPUTER ARCHITECTURE

Typical Schematic Symbol of an ALU


6/14

Basic Hardware Components

AND Gates
OR Gates
Inverters
Multiplexers

A.Aruna / CS6303 / Arithmetic Logical Unit 1/7/2018


CS6303 COMPUTER ARCHITECTURE

1 Bit ALU
7/14

Data line and control Line

A.Aruna / CS6303 / Arithmetic Logical Unit 1/7/2018


CS6303 COMPUTER ARCHITECTURE

Adder Circuit in 1 Bit ALU


8/14

A.Aruna / CS6303 / Arithmetic Logical Unit 1/7/2018


CS6303 COMPUTER ARCHITECTURE

32 BIT ALU
9/14

EXECUTION & OPERATION


INSIDE PROCESSOR

A.Aruna / CS6303 / Arithmetic Logical Unit 1/7/2018


CS6303 COMPUTER ARCHITECTURE

10/14

A.Aruna / CS6303 / Arithmetic Logical Unit 1/7/2018


CS6303 COMPUTER ARCHITECTURE

Assessment
11/14

A.Aruna / CS6303 / Arithmetic Logical Unit 1/7/2018


CS6303 COMPUTER ARCHITECTURE

Assessment
12/14

Carryout = (b.CarryIn)+(a.CarryIn) +(a.b)


Sum = (a.b’.CarryIn’)+ (a’.b.CarryIn’)+ (a’.b’.CarryIn)+ (a.b.CarryIn)
A.Aruna / CS6303 / Arithmetic Logical Unit 1/7/2018
CS6303 COMPUTER ARCHITECTURE

Upcoming
13/14

A.Aruna / CS6303 / Arithmetic Logical Unit 1/7/2018


CS6303 COMPUTER ARCHITECTURE

14/14

A.Aruna / CS6303 / Arithmetic Logical Unit 1/7/2018

You might also like