SlideShare a Scribd company logo
1 of 18
CS304PC:Computer
Organization and Architecture
(R18 II(I sem))
Department of computer science and
engineering (AI/ML)
Session 23
by
Asst.Prof.M.Gokilavani
VITS
2/18/2023 Department of CSE (AI/ML) 1
TEXTBOOK:
• 1. Computer System Architecture – M. Moris Mano,
Third Edition, Pearson/PHI.
REFERENCES:
• Computer Organization – Car Hamacher, Zvonks
Vranesic, Safea Zaky, Vth Edition, McGraw Hill.
• Computer Organization and Architecture – William
Stallings Sixth Edition, Pearson/PHI.
• Structured Computer Organization – Andrew S.
Tanenbaum, 4th Edition, PHI/Pearson.
2/18/2023 Department of CSE (AI/ML) 2
Unit III
Data Representation: Data types
,Complements, fixed point Representations,
Floating point representation.
Computer Arithmetic: Addition and
subtraction, multiplication Algorithms, Division
Algorithms, Floating-point Arithmetic
operations, Decimal Arithmetic unit, Decimal
Arithmetic operations.
2/18/2023 Department of CSE (AI/ML) 3
Topics covered in session 23
2/18/2023 Department of CSE (AI/ML) 4
• Addition and subtraction
• Multiplication Algorithms
• Division Algorithms
• Floating-point Arithmetic operations
• Decimal Arithmetic unit
• Decimal Arithmetic operations.
Decimal Arithmetic unit
• A CPU with an arithmetic logic unit can perform
arithmetic microoperations with binary data.
• A decimal arithmetic unit is a digital function that
performs decimal microoperations.
• It can add or subtract decimal numbers, usually by
forming the 9’s or 10’s complements of the
subtrahend.
• The unit accepts coded decimal numbers and
generates results in the same adopted binary code.
2/18/2023 5
Department of CSE (AI/ML)
2/18/2023 Department of CSE (AI/ML) 6
2/18/2023 Department of CSE (AI/ML) 7
BCD Subtraction
• Subtraction is carried out by adding the ten’s complement
negative of the subtrahend to the minuend.
• Ten’s complement negative of subtrahend is obtained by
adding 1 to the nine’s complement negative of the subtrahend.
• In ten’s complement the number is positive if the left
most digit is between 0 and 4 and negative otherwise.
• The BCD of 4 and 5 are 0100 and 0101 both have 0 in
leftmost, 4 indicate positive number and 5 indicate
negative number.
• In an excess 3 encoding for each digit the left most bit
will indicate the sign
2/18/2023 Department of CSE (AI/ML) 8
Decimal Arithmetic operations
• Decimal Arithmetic Unit is a digital function that performs
decimal microoperations.
• can add or subtract decimal numbers, usually by forming
the 9's or 10's complement of the subtrahend.
• The unit accepts coded decimal numbers and generate
• A single-stage decimal arithmetic unit consists of:
– nine binary input variables
– five binary output variables ( since a minimum of four
bits is required to represent each coded decimal digit)
• Each stage must have four inputs for the augends digit, four
inputs for the addend digit, and an input-carry. s results in
the same adopted binary code.
• The outputs include four terminals for the sum digit and one
for the output-carry.
2/18/2023 9
Department of CSE (AI/ML)
2/18/2023 Department of CSE (AI/ML) 10
2/18/2023 Department of CSE (AI/ML) 11
Addition and Subtraction
• Addition
– Parallel decimal adder
– Digit-serial. Bit-parallel decimal addition
– All serial decimal addition
2/18/2023 12
Department of CSE (AI/ML)
2/18/2023 Department of CSE (AI/ML) 13
2/18/2023 Department of CSE (AI/ML) 14
Multiplication
2/18/2023 Department of CSE (AI/ML) 15
2/18/2023 Department of CSE (AI/ML) 16
Division
•Ae-to accommodate
overflow(adding the
multiplicand to the
partial product)
•Be-to form the 9’s
complement of the
divisor when
subtracted from the
partial remainder.
2/18/2023 Department of CSE (AI/ML) 17
Topics to be covered in next session 24
• Input Output Interface
2/18/2023 Department of CSE (AI/ML) 18
Thank you!!!

More Related Content

What's hot

Decimal arithematic operation
Decimal arithematic operationDecimal arithematic operation
Decimal arithematic operationPadmapriyaG
 
Register transfer language
Register transfer languageRegister transfer language
Register transfer languageSanjeev Patel
 
Booth’s algorithm.(a014& a015)
Booth’s algorithm.(a014& a015)Booth’s algorithm.(a014& a015)
Booth’s algorithm.(a014& a015)Piyush Rochwani
 
Register organization, stack
Register organization, stackRegister organization, stack
Register organization, stackAsif Iqbal
 
Floating point representation
Floating point representationFloating point representation
Floating point representationmissstevenson01
 
Multiplication algorithm
Multiplication algorithmMultiplication algorithm
Multiplication algorithmGaurav Subham
 
Computer architecture data representation
Computer architecture  data representationComputer architecture  data representation
Computer architecture data representationAnil Pokhrel
 
Microprogram Control
Microprogram Control Microprogram Control
Microprogram Control Anuj Modi
 
11 instruction sets addressing modes
11  instruction sets addressing modes 11  instruction sets addressing modes
11 instruction sets addressing modes Sher Shah Merkhel
 
Multiplication algorithm, hardware and flowchart
Multiplication algorithm, hardware and flowchartMultiplication algorithm, hardware and flowchart
Multiplication algorithm, hardware and flowchartTanjarul Islam Mishu
 
Logical and shift micro operations
Logical and shift micro operationsLogical and shift micro operations
Logical and shift micro operationsSanjeev Patel
 
Integer Representation
Integer RepresentationInteger Representation
Integer Representationgavhays
 
Chapter 03 arithmetic for computers
Chapter 03   arithmetic for computersChapter 03   arithmetic for computers
Chapter 03 arithmetic for computersBảo Hoang
 

What's hot (20)

Decimal arithematic operation
Decimal arithematic operationDecimal arithematic operation
Decimal arithematic operation
 
Register transfer language
Register transfer languageRegister transfer language
Register transfer language
 
Booth’s algorithm.(a014& a015)
Booth’s algorithm.(a014& a015)Booth’s algorithm.(a014& a015)
Booth’s algorithm.(a014& a015)
 
Register organization, stack
Register organization, stackRegister organization, stack
Register organization, stack
 
Floating point representation
Floating point representationFloating point representation
Floating point representation
 
Binary arithmetic
Binary arithmeticBinary arithmetic
Binary arithmetic
 
09 Arithmetic
09  Arithmetic09  Arithmetic
09 Arithmetic
 
Unit 4-booth algorithm
Unit 4-booth algorithmUnit 4-booth algorithm
Unit 4-booth algorithm
 
Multiplication algorithm
Multiplication algorithmMultiplication algorithm
Multiplication algorithm
 
Computer architecture data representation
Computer architecture  data representationComputer architecture  data representation
Computer architecture data representation
 
Microprogram Control
Microprogram Control Microprogram Control
Microprogram Control
 
Binary codes
Binary codesBinary codes
Binary codes
 
11 instruction sets addressing modes
11  instruction sets addressing modes 11  instruction sets addressing modes
11 instruction sets addressing modes
 
Multiplication algorithm, hardware and flowchart
Multiplication algorithm, hardware and flowchartMultiplication algorithm, hardware and flowchart
Multiplication algorithm, hardware and flowchart
 
ADDRESSING MODES
ADDRESSING MODESADDRESSING MODES
ADDRESSING MODES
 
Logical and shift micro operations
Logical and shift micro operationsLogical and shift micro operations
Logical and shift micro operations
 
Integer Representation
Integer RepresentationInteger Representation
Integer Representation
 
Binary Arithmetic
Binary ArithmeticBinary Arithmetic
Binary Arithmetic
 
Chapter 03 arithmetic for computers
Chapter 03   arithmetic for computersChapter 03   arithmetic for computers
Chapter 03 arithmetic for computers
 
Instruction code
Instruction codeInstruction code
Instruction code
 

Similar to CS304PC:Computer Organization and Architecture Session 23 Decimal Arithmetic unit and operation.pptx

CS304PC:Computer Organization and Architecture session 18 floating point rese...
CS304PC:Computer Organization and Architecture session 18 floating point rese...CS304PC:Computer Organization and Architecture session 18 floating point rese...
CS304PC:Computer Organization and Architecture session 18 floating point rese...Asst.prof M.Gokilavani
 
CS304PC:Computer Organization and Architecture Session 16 data Representation...
CS304PC:Computer Organization and Architecture Session 16 data Representation...CS304PC:Computer Organization and Architecture Session 16 data Representation...
CS304PC:Computer Organization and Architecture Session 16 data Representation...Asst.prof M.Gokilavani
 
CS304PC:Computer Organization and Architecture Session 17 Complements and fix...
CS304PC:Computer Organization and Architecture Session 17 Complements and fix...CS304PC:Computer Organization and Architecture Session 17 Complements and fix...
CS304PC:Computer Organization and Architecture Session 17 Complements and fix...Asst.prof M.Gokilavani
 
CS304PC:Computer Organization and Architecture Session 19 Addition and subtra...
CS304PC:Computer Organization and Architecture Session 19 Addition and subtra...CS304PC:Computer Organization and Architecture Session 19 Addition and subtra...
CS304PC:Computer Organization and Architecture Session 19 Addition and subtra...Asst.prof M.Gokilavani
 
CS304PC:Computer Organization and Architecture Session 21 Division Algorithm....
CS304PC:Computer Organization and Architecture Session 21 Division Algorithm....CS304PC:Computer Organization and Architecture Session 21 Division Algorithm....
CS304PC:Computer Organization and Architecture Session 21 Division Algorithm....Asst.prof M.Gokilavani
 
CS304PC:Computer Organization and Architecture session 20 Multiplication algo...
CS304PC:Computer Organization and Architecture session 20 Multiplication algo...CS304PC:Computer Organization and Architecture session 20 Multiplication algo...
CS304PC:Computer Organization and Architecture session 20 Multiplication algo...Asst.prof M.Gokilavani
 
CS304PC:Computer Organization and Architecture Session 20 Multiplication algo...
CS304PC:Computer Organization and Architecture Session 20 Multiplication algo...CS304PC:Computer Organization and Architecture Session 20 Multiplication algo...
CS304PC:Computer Organization and Architecture Session 20 Multiplication algo...Asst.prof M.Gokilavani
 
CS304PC:Computer Organization and Architecture session 22 floating point arit...
CS304PC:Computer Organization and Architecture session 22 floating point arit...CS304PC:Computer Organization and Architecture session 22 floating point arit...
CS304PC:Computer Organization and Architecture session 22 floating point arit...Asst.prof M.Gokilavani
 
CS304PC:Computer Organization and Architecture Session 24 Input Output Interr...
CS304PC:Computer Organization and Architecture Session 24 Input Output Interr...CS304PC:Computer Organization and Architecture Session 24 Input Output Interr...
CS304PC:Computer Organization and Architecture Session 24 Input Output Interr...Asst.prof M.Gokilavani
 
CS304PC:Computer Organization and Architecture Session 3 micro operations.pptx
CS304PC:Computer Organization and Architecture Session 3 micro operations.pptxCS304PC:Computer Organization and Architecture Session 3 micro operations.pptx
CS304PC:Computer Organization and Architecture Session 3 micro operations.pptxAsst.prof M.Gokilavani
 
CS304PC:Computer Organization and Architecture Session 10 design of control ...
CS304PC:Computer Organization and Architecture  Session 10 design of control ...CS304PC:Computer Organization and Architecture  Session 10 design of control ...
CS304PC:Computer Organization and Architecture Session 10 design of control ...Asst.prof M.Gokilavani
 
CS304PC:Computer Organization and Architecture session 9 microprogram exampl...
CS304PC:Computer Organization and Architecture  session 9 microprogram exampl...CS304PC:Computer Organization and Architecture  session 9 microprogram exampl...
CS304PC:Computer Organization and Architecture session 9 microprogram exampl...Asst.prof M.Gokilavani
 
CS304PC:Computer Organization and Architecture Session 5 Basic Computer Orga...
CS304PC:Computer Organization and Architecture  Session 5 Basic Computer Orga...CS304PC:Computer Organization and Architecture  Session 5 Basic Computer Orga...
CS304PC:Computer Organization and Architecture Session 5 Basic Computer Orga...Asst.prof M.Gokilavani
 
Arithmetic for Computers.ppt
Arithmetic for Computers.pptArithmetic for Computers.ppt
Arithmetic for Computers.pptJEEVANANTHAMG6
 
CS304PC:Computer Organization and Architecture Session 6 Instruction cycle.pptx
CS304PC:Computer Organization and Architecture  Session 6 Instruction cycle.pptxCS304PC:Computer Organization and Architecture  Session 6 Instruction cycle.pptx
CS304PC:Computer Organization and Architecture Session 6 Instruction cycle.pptxAsst.prof M.Gokilavani
 
Floating Point Unit (FPU)
Floating Point Unit (FPU)Floating Point Unit (FPU)
Floating Point Unit (FPU)Silicon Mentor
 

Similar to CS304PC:Computer Organization and Architecture Session 23 Decimal Arithmetic unit and operation.pptx (20)

CS304PC:Computer Organization and Architecture session 18 floating point rese...
CS304PC:Computer Organization and Architecture session 18 floating point rese...CS304PC:Computer Organization and Architecture session 18 floating point rese...
CS304PC:Computer Organization and Architecture session 18 floating point rese...
 
CS304PC:Computer Organization and Architecture Session 16 data Representation...
CS304PC:Computer Organization and Architecture Session 16 data Representation...CS304PC:Computer Organization and Architecture Session 16 data Representation...
CS304PC:Computer Organization and Architecture Session 16 data Representation...
 
CS304PC:Computer Organization and Architecture Session 17 Complements and fix...
CS304PC:Computer Organization and Architecture Session 17 Complements and fix...CS304PC:Computer Organization and Architecture Session 17 Complements and fix...
CS304PC:Computer Organization and Architecture Session 17 Complements and fix...
 
CS304PC:Computer Organization and Architecture Session 19 Addition and subtra...
CS304PC:Computer Organization and Architecture Session 19 Addition and subtra...CS304PC:Computer Organization and Architecture Session 19 Addition and subtra...
CS304PC:Computer Organization and Architecture Session 19 Addition and subtra...
 
CS304PC:Computer Organization and Architecture Session 21 Division Algorithm....
CS304PC:Computer Organization and Architecture Session 21 Division Algorithm....CS304PC:Computer Organization and Architecture Session 21 Division Algorithm....
CS304PC:Computer Organization and Architecture Session 21 Division Algorithm....
 
CS304PC:Computer Organization and Architecture session 20 Multiplication algo...
CS304PC:Computer Organization and Architecture session 20 Multiplication algo...CS304PC:Computer Organization and Architecture session 20 Multiplication algo...
CS304PC:Computer Organization and Architecture session 20 Multiplication algo...
 
CS304PC:Computer Organization and Architecture Session 20 Multiplication algo...
CS304PC:Computer Organization and Architecture Session 20 Multiplication algo...CS304PC:Computer Organization and Architecture Session 20 Multiplication algo...
CS304PC:Computer Organization and Architecture Session 20 Multiplication algo...
 
CS304PC:Computer Organization and Architecture session 22 floating point arit...
CS304PC:Computer Organization and Architecture session 22 floating point arit...CS304PC:Computer Organization and Architecture session 22 floating point arit...
CS304PC:Computer Organization and Architecture session 22 floating point arit...
 
Dld lecture notes
Dld lecture notesDld lecture notes
Dld lecture notes
 
CS304PC:Computer Organization and Architecture Session 24 Input Output Interr...
CS304PC:Computer Organization and Architecture Session 24 Input Output Interr...CS304PC:Computer Organization and Architecture Session 24 Input Output Interr...
CS304PC:Computer Organization and Architecture Session 24 Input Output Interr...
 
CS304PC:Computer Organization and Architecture Session 3 micro operations.pptx
CS304PC:Computer Organization and Architecture Session 3 micro operations.pptxCS304PC:Computer Organization and Architecture Session 3 micro operations.pptx
CS304PC:Computer Organization and Architecture Session 3 micro operations.pptx
 
CS304PC:Computer Organization and Architecture Session 10 design of control ...
CS304PC:Computer Organization and Architecture  Session 10 design of control ...CS304PC:Computer Organization and Architecture  Session 10 design of control ...
CS304PC:Computer Organization and Architecture Session 10 design of control ...
 
CS304PC:Computer Organization and Architecture session 9 microprogram exampl...
CS304PC:Computer Organization and Architecture  session 9 microprogram exampl...CS304PC:Computer Organization and Architecture  session 9 microprogram exampl...
CS304PC:Computer Organization and Architecture session 9 microprogram exampl...
 
CS304PC:Computer Organization and Architecture Session 5 Basic Computer Orga...
CS304PC:Computer Organization and Architecture  Session 5 Basic Computer Orga...CS304PC:Computer Organization and Architecture  Session 5 Basic Computer Orga...
CS304PC:Computer Organization and Architecture Session 5 Basic Computer Orga...
 
Arithmetic for Computers.ppt
Arithmetic for Computers.pptArithmetic for Computers.ppt
Arithmetic for Computers.ppt
 
CS304PC:Computer Organization and Architecture Session 6 Instruction cycle.pptx
CS304PC:Computer Organization and Architecture  Session 6 Instruction cycle.pptxCS304PC:Computer Organization and Architecture  Session 6 Instruction cycle.pptx
CS304PC:Computer Organization and Architecture Session 6 Instruction cycle.pptx
 
Floating Point Unit (FPU)
Floating Point Unit (FPU)Floating Point Unit (FPU)
Floating Point Unit (FPU)
 
PACE-IT: Basic Network Concepts (part 3)
PACE-IT: Basic Network Concepts (part 3)PACE-IT: Basic Network Concepts (part 3)
PACE-IT: Basic Network Concepts (part 3)
 
Number system
Number systemNumber system
Number system
 
Ch 2.pptx
Ch 2.pptxCh 2.pptx
Ch 2.pptx
 

More from Asst.prof M.Gokilavani

CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordAsst.prof M.Gokilavani
 
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfCCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfAsst.prof M.Gokilavani
 
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfCCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfAsst.prof M.Gokilavani
 
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdfCCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdfAsst.prof M.Gokilavani
 
IT8073_Information Security_UNIT I _.pdf
IT8073_Information Security_UNIT I _.pdfIT8073_Information Security_UNIT I _.pdf
IT8073_Information Security_UNIT I _.pdfAsst.prof M.Gokilavani
 
IT8073 _Information Security _UNIT I Full notes
IT8073 _Information Security _UNIT I Full notesIT8073 _Information Security _UNIT I Full notes
IT8073 _Information Security _UNIT I Full notesAsst.prof M.Gokilavani
 
GE3151 PSPP UNIT IV QUESTION BANK.docx.pdf
GE3151 PSPP UNIT IV QUESTION BANK.docx.pdfGE3151 PSPP UNIT IV QUESTION BANK.docx.pdf
GE3151 PSPP UNIT IV QUESTION BANK.docx.pdfAsst.prof M.Gokilavani
 
GE3151 PSPP UNIT III QUESTION BANK.docx.pdf
GE3151 PSPP UNIT III QUESTION BANK.docx.pdfGE3151 PSPP UNIT III QUESTION BANK.docx.pdf
GE3151 PSPP UNIT III QUESTION BANK.docx.pdfAsst.prof M.Gokilavani
 
GE3151 PSPP All unit question bank.pdf
GE3151 PSPP All unit question bank.pdfGE3151 PSPP All unit question bank.pdf
GE3151 PSPP All unit question bank.pdfAsst.prof M.Gokilavani
 
AI3391 Artificial intelligence Unit IV Notes _ merged.pdf
AI3391 Artificial intelligence Unit IV Notes _ merged.pdfAI3391 Artificial intelligence Unit IV Notes _ merged.pdf
AI3391 Artificial intelligence Unit IV Notes _ merged.pdfAsst.prof M.Gokilavani
 
AI3391 Artificial intelligence Session 29 Forward and backward chaining.pdf
AI3391 Artificial intelligence Session 29 Forward and backward chaining.pdfAI3391 Artificial intelligence Session 29 Forward and backward chaining.pdf
AI3391 Artificial intelligence Session 29 Forward and backward chaining.pdfAsst.prof M.Gokilavani
 
AI3391 Artificial intelligence Session 28 Resolution.pptx
AI3391 Artificial intelligence Session 28 Resolution.pptxAI3391 Artificial intelligence Session 28 Resolution.pptx
AI3391 Artificial intelligence Session 28 Resolution.pptxAsst.prof M.Gokilavani
 
AI3391 Artificial intelligence session 27 inference and unification.pptx
AI3391 Artificial intelligence session 27 inference and unification.pptxAI3391 Artificial intelligence session 27 inference and unification.pptx
AI3391 Artificial intelligence session 27 inference and unification.pptxAsst.prof M.Gokilavani
 
AI3391 Artificial Intelligence Session 26 First order logic.pptx
AI3391 Artificial Intelligence Session 26 First order logic.pptxAI3391 Artificial Intelligence Session 26 First order logic.pptx
AI3391 Artificial Intelligence Session 26 First order logic.pptxAsst.prof M.Gokilavani
 

More from Asst.prof M.Gokilavani (20)

CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
 
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfCCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
 
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfCCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
 
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdfCCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
 
IT8073_Information Security_UNIT I _.pdf
IT8073_Information Security_UNIT I _.pdfIT8073_Information Security_UNIT I _.pdf
IT8073_Information Security_UNIT I _.pdf
 
IT8073 _Information Security _UNIT I Full notes
IT8073 _Information Security _UNIT I Full notesIT8073 _Information Security _UNIT I Full notes
IT8073 _Information Security _UNIT I Full notes
 
GE3151 PSPP UNIT IV QUESTION BANK.docx.pdf
GE3151 PSPP UNIT IV QUESTION BANK.docx.pdfGE3151 PSPP UNIT IV QUESTION BANK.docx.pdf
GE3151 PSPP UNIT IV QUESTION BANK.docx.pdf
 
GE3151 PSPP UNIT III QUESTION BANK.docx.pdf
GE3151 PSPP UNIT III QUESTION BANK.docx.pdfGE3151 PSPP UNIT III QUESTION BANK.docx.pdf
GE3151 PSPP UNIT III QUESTION BANK.docx.pdf
 
GE3151 UNIT II Study material .pdf
GE3151 UNIT II Study material .pdfGE3151 UNIT II Study material .pdf
GE3151 UNIT II Study material .pdf
 
GE3151 PSPP All unit question bank.pdf
GE3151 PSPP All unit question bank.pdfGE3151 PSPP All unit question bank.pdf
GE3151 PSPP All unit question bank.pdf
 
GE3151_PSPP_All unit _Notes
GE3151_PSPP_All unit _NotesGE3151_PSPP_All unit _Notes
GE3151_PSPP_All unit _Notes
 
GE3151_PSPP_UNIT_5_Notes
GE3151_PSPP_UNIT_5_NotesGE3151_PSPP_UNIT_5_Notes
GE3151_PSPP_UNIT_5_Notes
 
GE3151_PSPP_UNIT_4_Notes
GE3151_PSPP_UNIT_4_NotesGE3151_PSPP_UNIT_4_Notes
GE3151_PSPP_UNIT_4_Notes
 
GE3151_PSPP_UNIT_3_Notes
GE3151_PSPP_UNIT_3_NotesGE3151_PSPP_UNIT_3_Notes
GE3151_PSPP_UNIT_3_Notes
 
GE3151_PSPP_UNIT_2_Notes
GE3151_PSPP_UNIT_2_NotesGE3151_PSPP_UNIT_2_Notes
GE3151_PSPP_UNIT_2_Notes
 
AI3391 Artificial intelligence Unit IV Notes _ merged.pdf
AI3391 Artificial intelligence Unit IV Notes _ merged.pdfAI3391 Artificial intelligence Unit IV Notes _ merged.pdf
AI3391 Artificial intelligence Unit IV Notes _ merged.pdf
 
AI3391 Artificial intelligence Session 29 Forward and backward chaining.pdf
AI3391 Artificial intelligence Session 29 Forward and backward chaining.pdfAI3391 Artificial intelligence Session 29 Forward and backward chaining.pdf
AI3391 Artificial intelligence Session 29 Forward and backward chaining.pdf
 
AI3391 Artificial intelligence Session 28 Resolution.pptx
AI3391 Artificial intelligence Session 28 Resolution.pptxAI3391 Artificial intelligence Session 28 Resolution.pptx
AI3391 Artificial intelligence Session 28 Resolution.pptx
 
AI3391 Artificial intelligence session 27 inference and unification.pptx
AI3391 Artificial intelligence session 27 inference and unification.pptxAI3391 Artificial intelligence session 27 inference and unification.pptx
AI3391 Artificial intelligence session 27 inference and unification.pptx
 
AI3391 Artificial Intelligence Session 26 First order logic.pptx
AI3391 Artificial Intelligence Session 26 First order logic.pptxAI3391 Artificial Intelligence Session 26 First order logic.pptx
AI3391 Artificial Intelligence Session 26 First order logic.pptx
 

Recently uploaded

Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . pptDineshKumar4165
 
UNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular ConduitsUNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular Conduitsrknatarajan
 
Glass Ceramics: Processing and Properties
Glass Ceramics: Processing and PropertiesGlass Ceramics: Processing and Properties
Glass Ceramics: Processing and PropertiesPrabhanshu Chaturvedi
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptDineshKumar4165
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations120cr0395
 
chapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringchapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringmulugeta48
 
Vivazz, Mieres Social Housing Design Spain
Vivazz, Mieres Social Housing Design SpainVivazz, Mieres Social Housing Design Spain
Vivazz, Mieres Social Housing Design Spaintimesproduction05
 
Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...Christo Ananth
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSISrknatarajan
 
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...SUHANI PANDEY
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...roncy bisnoi
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Dr.Costas Sachpazis
 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdfKamal Acharya
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Christo Ananth
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxAsutosh Ranjan
 
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Bookingroncy bisnoi
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VDineshKumar4165
 

Recently uploaded (20)

Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . ppt
 
UNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular ConduitsUNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular Conduits
 
Glass Ceramics: Processing and Properties
Glass Ceramics: Processing and PropertiesGlass Ceramics: Processing and Properties
Glass Ceramics: Processing and Properties
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.ppt
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations
 
chapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringchapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineering
 
Vivazz, Mieres Social Housing Design Spain
Vivazz, Mieres Social Housing Design SpainVivazz, Mieres Social Housing Design Spain
Vivazz, Mieres Social Housing Design Spain
 
Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSIS
 
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
 
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
 
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdf
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
 
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptx
 
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - V
 

CS304PC:Computer Organization and Architecture Session 23 Decimal Arithmetic unit and operation.pptx

  • 1. CS304PC:Computer Organization and Architecture (R18 II(I sem)) Department of computer science and engineering (AI/ML) Session 23 by Asst.Prof.M.Gokilavani VITS 2/18/2023 Department of CSE (AI/ML) 1
  • 2. TEXTBOOK: • 1. Computer System Architecture – M. Moris Mano, Third Edition, Pearson/PHI. REFERENCES: • Computer Organization – Car Hamacher, Zvonks Vranesic, Safea Zaky, Vth Edition, McGraw Hill. • Computer Organization and Architecture – William Stallings Sixth Edition, Pearson/PHI. • Structured Computer Organization – Andrew S. Tanenbaum, 4th Edition, PHI/Pearson. 2/18/2023 Department of CSE (AI/ML) 2
  • 3. Unit III Data Representation: Data types ,Complements, fixed point Representations, Floating point representation. Computer Arithmetic: Addition and subtraction, multiplication Algorithms, Division Algorithms, Floating-point Arithmetic operations, Decimal Arithmetic unit, Decimal Arithmetic operations. 2/18/2023 Department of CSE (AI/ML) 3
  • 4. Topics covered in session 23 2/18/2023 Department of CSE (AI/ML) 4 • Addition and subtraction • Multiplication Algorithms • Division Algorithms • Floating-point Arithmetic operations • Decimal Arithmetic unit • Decimal Arithmetic operations.
  • 5. Decimal Arithmetic unit • A CPU with an arithmetic logic unit can perform arithmetic microoperations with binary data. • A decimal arithmetic unit is a digital function that performs decimal microoperations. • It can add or subtract decimal numbers, usually by forming the 9’s or 10’s complements of the subtrahend. • The unit accepts coded decimal numbers and generates results in the same adopted binary code. 2/18/2023 5 Department of CSE (AI/ML)
  • 6. 2/18/2023 Department of CSE (AI/ML) 6
  • 7. 2/18/2023 Department of CSE (AI/ML) 7
  • 8. BCD Subtraction • Subtraction is carried out by adding the ten’s complement negative of the subtrahend to the minuend. • Ten’s complement negative of subtrahend is obtained by adding 1 to the nine’s complement negative of the subtrahend. • In ten’s complement the number is positive if the left most digit is between 0 and 4 and negative otherwise. • The BCD of 4 and 5 are 0100 and 0101 both have 0 in leftmost, 4 indicate positive number and 5 indicate negative number. • In an excess 3 encoding for each digit the left most bit will indicate the sign 2/18/2023 Department of CSE (AI/ML) 8
  • 9. Decimal Arithmetic operations • Decimal Arithmetic Unit is a digital function that performs decimal microoperations. • can add or subtract decimal numbers, usually by forming the 9's or 10's complement of the subtrahend. • The unit accepts coded decimal numbers and generate • A single-stage decimal arithmetic unit consists of: – nine binary input variables – five binary output variables ( since a minimum of four bits is required to represent each coded decimal digit) • Each stage must have four inputs for the augends digit, four inputs for the addend digit, and an input-carry. s results in the same adopted binary code. • The outputs include four terminals for the sum digit and one for the output-carry. 2/18/2023 9 Department of CSE (AI/ML)
  • 10. 2/18/2023 Department of CSE (AI/ML) 10
  • 11. 2/18/2023 Department of CSE (AI/ML) 11
  • 12. Addition and Subtraction • Addition – Parallel decimal adder – Digit-serial. Bit-parallel decimal addition – All serial decimal addition 2/18/2023 12 Department of CSE (AI/ML)
  • 13. 2/18/2023 Department of CSE (AI/ML) 13
  • 14. 2/18/2023 Department of CSE (AI/ML) 14
  • 16. 2/18/2023 Department of CSE (AI/ML) 16
  • 17. Division •Ae-to accommodate overflow(adding the multiplicand to the partial product) •Be-to form the 9’s complement of the divisor when subtracted from the partial remainder. 2/18/2023 Department of CSE (AI/ML) 17
  • 18. Topics to be covered in next session 24 • Input Output Interface 2/18/2023 Department of CSE (AI/ML) 18 Thank you!!!