SlideShare a Scribd company logo
3
Most read
19
Most read
20
Most read
- M.Senthil Kumar, AP/CSE
CS6303 – COMPUTER
ARCHITECTURE
(Regulation 2013)
UNIT II – Arithmetic
Operations
Unit – II Syllabus
CA by M.Senthil Kumar
5.1. ALU
5.2. Addition and subtraction (BB)
5.3. Multiplication
5.4. Division
5.5. Floating Point operations
5.6. Sub word parallelism
5.1. ALU Design
CA by M.Senthil Kumar home
An Arithmetic Logic Unit (ALU) is a digital
electronic circuit that performs arithmetic
and bitwise logical operations on integer
binary numbers.
It is a fundamental building block of the
CPU in all computers.
The inputs to an ALU are the data to be
operated on and a code indicating the
operation to be performed.
ALU – How it works in computer?
5.1. ALU (Contd..)
CA by M.Senthil Kumar home
5.3. Multiplication
CA by M.Senthil Kumar
Normal Multiplication is done as:
home
5.3.Multiplication (H/W)
CA by M.Senthil Kumar
home
5.3.Multiplication (H/W)
CA by M.Senthil Kumar
home
5.3. Multiplication (Booth’s)
CA by M.Senthil Kumar
Booths Multiplication Recoding table:
home
5.3. Multiplication (Booth’s)
CA by M.Senthil Kumar home
5.4. Division
CA by M.Senthil Kumar
home
5.4. Division
CA by M.Senthil Kumar
home
5.4. Division (Restoring Algm)
CA by M.Senthil Kumar
home
5.4. Division (Restoring Algm)
CA by M.Senthil Kumar home
5.4 Division (Non-Restoring Algm)
CA by M.Senthil Kumar home
5.5. Floating point Operations
CA by M.Senthil Kumar
home
5.5. Floating point Operations
CA by M.Senthil Kumar home
 Going beyond signed and unsigned integers, programming
languages support numbers with fractions, which are called
real's in mathematics.
 Eg:0.000000001ten or 1.0ten x10-9
 Notice that in the last case, the number didn’t represent a
small fraction, but it was bigger than we could represent
with a 32-bit signed integer.
 The alternative notation for the last two numbers is called
scientific notation, which has a single digit to the left of
the decimal point. A number in scientific notation that has no
leading 0s is called a normalized number, which is the
usual way to write it. For example, 1.0ten × 10-9 is in
normalized scientific notation, but 0.1ten × 10-8 and 10.0ten
× 10 -10 are not.
5.5. Floating point Operations
(Contd..) A designer of a floating-point representation must find
a compromise between the size of the fraction and
the size of the exponent, because a fixed word
size means you must take a bit from one to add a bit
to the other.
 This tradeoff is between precision and range:
increasing the size of the fraction enhances the
precision of the fraction, while increasing the size of
the exponent increases the range of numbers that
can be represented.
 Floating-point numbers are usually a multiple of the
size of a word.
CA by M.Senthil Kumar home
5.5. Floating point Operations
(Contd..)
 F involves the value in the fraction field;
 E involves the value in the exponent field;
CA by M.Senthil Kumar home
5.5. Floating point Operations
CA by M.Senthil Kumar
home
5.6. Sub Word Parallelism
 It's another name for SIMD-Within-A-Register (SWAR), or register-
sized vector operations.
 The idea is that if you have registers which can hold machine words
of multiple times of your data type size, you can pack several data
elements into them, and make single instructions affect all of those
simultaneously.
 A 128-bit register, for instance, can hold two 64-bit floating point
values; as long as your 'multiply' instruction is aware that the register
is split in the middle, you can get 2 multiplications out of 1
operation.
 A sub word is a lower precision unit of data contained within a word.
 In sub word parallelism, we pack multiple subwords into a word and
then process whole words.
CA by M.Senthil Kumar
home
5.6. Sub Word Parallelism (Contd..)
 It is possible to apply subword parallelism to
noncontiguous subwords of different sizes
within a word.
 however, implementations are much simpler if
we allow only a few subword sizes and if a
single instruction operates on contiguous
subwords that are all the same size.
 One key advantage of subword parallelism is
that it allows general-purpose processors to
exploit wider word sizes even when not
processing high-precision data.CA by M.Senthil Kumar home

More Related Content

PPTX
Chapter 03 arithmetic for computers
PPTX
Datapath Design of Computer Architecture
PPTX
General register organization (computer organization)
PPTX
Instruction Set Architecture
PPS
Virtual memory
PPTX
Instruction codes
PPTX
Chapter 02 instructions language of the computer
PPTX
CISC & RISC Architecture
Chapter 03 arithmetic for computers
Datapath Design of Computer Architecture
General register organization (computer organization)
Instruction Set Architecture
Virtual memory
Instruction codes
Chapter 02 instructions language of the computer
CISC & RISC Architecture

What's hot (20)

PPT
Computer architecture pipelining
PPTX
Addressing modes
PPT
Addition and subtraction with signed magnitude data (mano
PDF
Memory management
PPTX
Computer architecture instruction formats
PDF
Intermediate code generation in Compiler Design
PPTX
Processor organization & register organization
PPTX
Harvard architecture
PPT
Data transfer and manipulation
PPT
Memory Addressing
PPTX
Signed Addition And Subtraction
PPT
Program control
PPTX
Computer architecture addressing modes and formats
PPT
mano.ppt
PPTX
Register transfer and micro-operation
PPT
Instruction format
PPT
Pipeline hazard
PPTX
Linear Block Codes
PPT
Microprocessor 80386
PPTX
Memory hierarchy
Computer architecture pipelining
Addressing modes
Addition and subtraction with signed magnitude data (mano
Memory management
Computer architecture instruction formats
Intermediate code generation in Compiler Design
Processor organization & register organization
Harvard architecture
Data transfer and manipulation
Memory Addressing
Signed Addition And Subtraction
Program control
Computer architecture addressing modes and formats
mano.ppt
Register transfer and micro-operation
Instruction format
Pipeline hazard
Linear Block Codes
Microprocessor 80386
Memory hierarchy
Ad

Similar to Cs6303 unit2 (20)

PDF
International Journal of Engineering Research and Development
PDF
computer system organization and architecture
PDF
CS6303 Computer Architecture.pdf
PDF
Design and implementation of complex floating point processor using fpga
PPTX
UNIT-1.pptx python for engineering first year students
PDF
Lesson 26. Optimization of 64-bit programs
PDF
At36276280
PDF
Review on 32 bit single precision Floating point unit (FPU) Based on IEEE 754...
PPT
3 algorithm-and-flowchart
DOC
Advance data structure
PDF
Analyzing algorithms
PDF
Data representation computer architecture
PDF
The Role Of Software And Hardware As A Common Part Of The...
PDF
DESIGN OF DOUBLE PRECISION FLOATING POINT MULTIPLICATION ALGORITHM WITH VECTO...
PDF
Interview questions_mod.pdf
PDF
Interview questions
PDF
Interview questions
PDF
Comparative study of single precision floating point division using differen...
PPTX
Bit-Manipulation for competitive programming
International Journal of Engineering Research and Development
computer system organization and architecture
CS6303 Computer Architecture.pdf
Design and implementation of complex floating point processor using fpga
UNIT-1.pptx python for engineering first year students
Lesson 26. Optimization of 64-bit programs
At36276280
Review on 32 bit single precision Floating point unit (FPU) Based on IEEE 754...
3 algorithm-and-flowchart
Advance data structure
Analyzing algorithms
Data representation computer architecture
The Role Of Software And Hardware As A Common Part Of The...
DESIGN OF DOUBLE PRECISION FLOATING POINT MULTIPLICATION ALGORITHM WITH VECTO...
Interview questions_mod.pdf
Interview questions
Interview questions
Comparative study of single precision floating point division using differen...
Bit-Manipulation for competitive programming
Ad

More from Sree sowdambika College of Engineering (17)

PPTX
Taguchi quality loss function
PPTX
PPT
Quality function deployment
PDF
GE6757 - TQM - Unit 4 - TOOLS & TECHNIQUES II
PDF
Ge6757 tqm tools and techniques i
PPTX
CS6303 - Computer Architecture
PDF
Ge6757 - Total Quality Management
PPTX
GE6757 - TOTAL QUALITY MANAGEMENT

Recently uploaded (20)

PPTX
PPH.pptx obstetrics and gynecology in nursing
PDF
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PDF
Anesthesia in Laparoscopic Surgery in India
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PDF
Sports Quiz easy sports quiz sports quiz
PPTX
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
PDF
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PDF
Microbial disease of the cardiovascular and lymphatic systems
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PDF
VCE English Exam - Section C Student Revision Booklet
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PDF
01-Introduction-to-Information-Management.pdf
PDF
Insiders guide to clinical Medicine.pdf
PDF
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
PPH.pptx obstetrics and gynecology in nursing
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
Pharmacology of Heart Failure /Pharmacotherapy of CHF
Anesthesia in Laparoscopic Surgery in India
Module 4: Burden of Disease Tutorial Slides S2 2025
Sports Quiz easy sports quiz sports quiz
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
human mycosis Human fungal infections are called human mycosis..pptx
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
FourierSeries-QuestionsWithAnswers(Part-A).pdf
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
2.FourierTransform-ShortQuestionswithAnswers.pdf
Microbial disease of the cardiovascular and lymphatic systems
Final Presentation General Medicine 03-08-2024.pptx
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
VCE English Exam - Section C Student Revision Booklet
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
01-Introduction-to-Information-Management.pdf
Insiders guide to clinical Medicine.pdf
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf

Cs6303 unit2

  • 1. - M.Senthil Kumar, AP/CSE CS6303 – COMPUTER ARCHITECTURE (Regulation 2013) UNIT II – Arithmetic Operations
  • 2. Unit – II Syllabus CA by M.Senthil Kumar 5.1. ALU 5.2. Addition and subtraction (BB) 5.3. Multiplication 5.4. Division 5.5. Floating Point operations 5.6. Sub word parallelism
  • 3. 5.1. ALU Design CA by M.Senthil Kumar home
  • 4. An Arithmetic Logic Unit (ALU) is a digital electronic circuit that performs arithmetic and bitwise logical operations on integer binary numbers. It is a fundamental building block of the CPU in all computers. The inputs to an ALU are the data to be operated on and a code indicating the operation to be performed. ALU – How it works in computer? 5.1. ALU (Contd..) CA by M.Senthil Kumar home
  • 5. 5.3. Multiplication CA by M.Senthil Kumar Normal Multiplication is done as: home
  • 6. 5.3.Multiplication (H/W) CA by M.Senthil Kumar home
  • 7. 5.3.Multiplication (H/W) CA by M.Senthil Kumar home
  • 8. 5.3. Multiplication (Booth’s) CA by M.Senthil Kumar Booths Multiplication Recoding table: home
  • 9. 5.3. Multiplication (Booth’s) CA by M.Senthil Kumar home
  • 10. 5.4. Division CA by M.Senthil Kumar home
  • 11. 5.4. Division CA by M.Senthil Kumar home
  • 12. 5.4. Division (Restoring Algm) CA by M.Senthil Kumar home
  • 13. 5.4. Division (Restoring Algm) CA by M.Senthil Kumar home
  • 14. 5.4 Division (Non-Restoring Algm) CA by M.Senthil Kumar home
  • 15. 5.5. Floating point Operations CA by M.Senthil Kumar home
  • 16. 5.5. Floating point Operations CA by M.Senthil Kumar home  Going beyond signed and unsigned integers, programming languages support numbers with fractions, which are called real's in mathematics.  Eg:0.000000001ten or 1.0ten x10-9  Notice that in the last case, the number didn’t represent a small fraction, but it was bigger than we could represent with a 32-bit signed integer.  The alternative notation for the last two numbers is called scientific notation, which has a single digit to the left of the decimal point. A number in scientific notation that has no leading 0s is called a normalized number, which is the usual way to write it. For example, 1.0ten × 10-9 is in normalized scientific notation, but 0.1ten × 10-8 and 10.0ten × 10 -10 are not.
  • 17. 5.5. Floating point Operations (Contd..) A designer of a floating-point representation must find a compromise between the size of the fraction and the size of the exponent, because a fixed word size means you must take a bit from one to add a bit to the other.  This tradeoff is between precision and range: increasing the size of the fraction enhances the precision of the fraction, while increasing the size of the exponent increases the range of numbers that can be represented.  Floating-point numbers are usually a multiple of the size of a word. CA by M.Senthil Kumar home
  • 18. 5.5. Floating point Operations (Contd..)  F involves the value in the fraction field;  E involves the value in the exponent field; CA by M.Senthil Kumar home
  • 19. 5.5. Floating point Operations CA by M.Senthil Kumar home
  • 20. 5.6. Sub Word Parallelism  It's another name for SIMD-Within-A-Register (SWAR), or register- sized vector operations.  The idea is that if you have registers which can hold machine words of multiple times of your data type size, you can pack several data elements into them, and make single instructions affect all of those simultaneously.  A 128-bit register, for instance, can hold two 64-bit floating point values; as long as your 'multiply' instruction is aware that the register is split in the middle, you can get 2 multiplications out of 1 operation.  A sub word is a lower precision unit of data contained within a word.  In sub word parallelism, we pack multiple subwords into a word and then process whole words. CA by M.Senthil Kumar home
  • 21. 5.6. Sub Word Parallelism (Contd..)  It is possible to apply subword parallelism to noncontiguous subwords of different sizes within a word.  however, implementations are much simpler if we allow only a few subword sizes and if a single instruction operates on contiguous subwords that are all the same size.  One key advantage of subword parallelism is that it allows general-purpose processors to exploit wider word sizes even when not processing high-precision data.CA by M.Senthil Kumar home