SlideShare ist ein Scribd-Unternehmen logo
1 von 25
DECIMAL ARITHEMATIC
     OPERATIONS


            PRESENTED BY :
                PADMAPRIYA.G
INTRO

         • Decimal numbers
INPUT

         • Decimal numbers are placed in the registers in coded
           form - Binary coded decimal (BCD )
 ALU     • Micro operations are performed


         • Decimal numbers
output
DECIMAL ARITHEMATIC
    MICROOPERATION   SYMBOLS
     A      A+B
  Add contents of registers A and B, and
 transfer the sum into A.
              B’
   9’s complement of B.
 A         A + B’ +1
  content of A plus 10’s complement of B into A
   B      B+ 1
              Increment BCD number in B
 dshr A
             Decimal shift right register A

 dshl A
             Decimal shift left register A
ADDITION

BCD DIGITS


  4 BIT BINARY ADDER


     SUM : BINARY RANGING
     FROM 0 TO 19
DERIVATION OF BCD ADDER




     C = K + Z8 Z4 + Z8 Z2
 Output of binary adder : Binary form .

Conversion to BCD
       Binary sum ≤ 1001 : no conversion
      Binary sum ≥ 1001 : non valid BCD
                        add binary 6 (0110)

 3 different ways to add.
BLOCK DIAGRAM OF BCD ADDER




     C = K + Z8 Z4 + Z8 Z2
Parallel decimal
          addition
 BCD adders = digits in the number.
 Sum is formed in parallel.
 requires only 1 micro operations.
624 + 879 =1503




                  1 0 1 0   1 1 0 1
DIGIT SERIAL, BIT PARALLEL
              ADDITION

 Digits are applied to single BCD adder
 serially.
Bits of each coded digit are transferred in
 parallel.
For k digits – k micro operations.
624 + 879 =1503
USING FULL ADDER
Example - ADDITION


  6796   0110 0111 1001 0110
• 5368 + 0101 0011 0110 1000 +
•       -----------------------------------------
        1011       1010 1111 1110
6796      0110 0111 1001 0110
5368 +    0101 0011 0110 1000 +
          --------------------------------
          1011 1010 1111 1110
          0110 0110 0110 0110 +
          -----------------------------------
         10001 10000 10101 10100
6796         0110 0111 1001 0110
5368 +        0101 0011 0110 1000                          +
             -------------------------------------------
             1011       1010 1111 1110
             0110       0110 0110 0110                     +
             -------------------------------------------
           10001 10000 10101 10100
                                                          +
       1          1           1           1
   ------------------------------------------------------
  0001 0010 0001 0110 0100
   ------------------------------------------------------
    1           2            1          6          4
SUBTRACTION
Using 9’s complement :
   - Find 9’s complement of the –ve
      number.
    - Add the 2 numbers.
    - IF result ≥ 10,add 6(0110).
    - If the carry is generated add it with the
       result, else find the 9’s complement of it.
Example
87 - 39
9’s complement of 39 = 99-39 = 60

87              1000      0111
60              0110      0000 +
               --------------------
     invalid    1110        0111
87   1000 0111
60   0110 0000 +
     ------------------
•
      1110        0111
      0110
     -------            +
     10100         0111
                        1+
     --------------------
      0100         1000
     --------------------
        4            8
18 – 72
9’s complement of 72 = 99-72 =27

18             0001 1000
27             0010 0111
               -----------------
                0011 1111          invalid
18             0001 1000
27             0010 0111
               -----------------
               0011 1111
               0001 0110
               ------- -------
               0100 (1)0101
               ------- --------
                  4        5
9’s complement of 45 = 54
USING 10’S COMPLEMENT
• Using 10’s complement :
     - Find the 10’s complement of the number.
     - Add the 2 numbers.
     - If the result ≥ 10, add 6(0110).
     - If the carry is not generated , then find
     the 10’s complement of the result.
34 – 56
10’s complement of 56 = (99-56)+1 = 44

34                  0011 0100
44                 0100 0100 +
                    ---------------
                    0111 1000
                     7         8
10’s complement of 78 = 22
BCD SUBTRACTION




M = 0 - addition is performed.
M = 1 - subtraction is performed.
Decimal arithematic operation

Weitere ähnliche Inhalte

Was ist angesagt?

Part I:Introduction to assembly language
Part I:Introduction to assembly languagePart I:Introduction to assembly language
Part I:Introduction to assembly languageAhmed M. Abed
 
Data transfer and manipulation
Data transfer and manipulationData transfer and manipulation
Data transfer and manipulationSanjeev Patel
 
Asymptotic notations
Asymptotic notationsAsymptotic notations
Asymptotic notationsNikhil Sharma
 
Types of instructions
Types of instructionsTypes of instructions
Types of instructionsihsanjamil
 
Control Units : Microprogrammed and Hardwired:control unit
Control Units : Microprogrammed and Hardwired:control unitControl Units : Microprogrammed and Hardwired:control unit
Control Units : Microprogrammed and Hardwired:control unitabdosaidgkv
 
Binary Arithmetic
Binary ArithmeticBinary Arithmetic
Binary Arithmeticgavhays
 
Fixed point and floating-point numbers
Fixed point and  floating-point numbersFixed point and  floating-point numbers
Fixed point and floating-point numbersMOHAN MOHAN
 
System software - macro expansion,nested macro calls
System software - macro expansion,nested macro callsSystem software - macro expansion,nested macro calls
System software - macro expansion,nested macro callsSARASWATHI S
 
Csc1401 lecture03 - computer arithmetic - arithmetic and logic unit (alu)
Csc1401   lecture03 - computer arithmetic - arithmetic and logic unit (alu)Csc1401   lecture03 - computer arithmetic - arithmetic and logic unit (alu)
Csc1401 lecture03 - computer arithmetic - arithmetic and logic unit (alu)IIUM
 
Multiplication algorithm, hardware and flowchart
Multiplication algorithm, hardware and flowchartMultiplication algorithm, hardware and flowchart
Multiplication algorithm, hardware and flowchartTanjarul Islam Mishu
 
Assembly language programming(unit 4)
Assembly language programming(unit 4)Assembly language programming(unit 4)
Assembly language programming(unit 4)Ashim Saha
 
Register transfer and micro-operation
Register transfer and micro-operationRegister transfer and micro-operation
Register transfer and micro-operationNikhil Pandit
 

Was ist angesagt? (20)

DATA REPRESENTATION
DATA  REPRESENTATIONDATA  REPRESENTATION
DATA REPRESENTATION
 
Instruction format
Instruction formatInstruction format
Instruction format
 
Arithmetic micro operations
Arithmetic micro operationsArithmetic micro operations
Arithmetic micro operations
 
Part I:Introduction to assembly language
Part I:Introduction to assembly languagePart I:Introduction to assembly language
Part I:Introduction to assembly language
 
Data transfer and manipulation
Data transfer and manipulationData transfer and manipulation
Data transfer and manipulation
 
Binary Arithmetic
Binary ArithmeticBinary Arithmetic
Binary Arithmetic
 
Asymptotic Notation
Asymptotic NotationAsymptotic Notation
Asymptotic Notation
 
Asymptotic notations
Asymptotic notationsAsymptotic notations
Asymptotic notations
 
Types of instructions
Types of instructionsTypes of instructions
Types of instructions
 
Assembly Language
Assembly LanguageAssembly Language
Assembly Language
 
Control Units : Microprogrammed and Hardwired:control unit
Control Units : Microprogrammed and Hardwired:control unitControl Units : Microprogrammed and Hardwired:control unit
Control Units : Microprogrammed and Hardwired:control unit
 
Binary Arithmetic
Binary ArithmeticBinary Arithmetic
Binary Arithmetic
 
Fixed point and floating-point numbers
Fixed point and  floating-point numbersFixed point and  floating-point numbers
Fixed point and floating-point numbers
 
System software - macro expansion,nested macro calls
System software - macro expansion,nested macro callsSystem software - macro expansion,nested macro calls
System software - macro expansion,nested macro calls
 
Csc1401 lecture03 - computer arithmetic - arithmetic and logic unit (alu)
Csc1401   lecture03 - computer arithmetic - arithmetic and logic unit (alu)Csc1401   lecture03 - computer arithmetic - arithmetic and logic unit (alu)
Csc1401 lecture03 - computer arithmetic - arithmetic and logic unit (alu)
 
Multiplication algorithm, hardware and flowchart
Multiplication algorithm, hardware and flowchartMultiplication algorithm, hardware and flowchart
Multiplication algorithm, hardware and flowchart
 
Assembly language programming(unit 4)
Assembly language programming(unit 4)Assembly language programming(unit 4)
Assembly language programming(unit 4)
 
Complements
ComplementsComplements
Complements
 
Unit 4-booth algorithm
Unit 4-booth algorithmUnit 4-booth algorithm
Unit 4-booth algorithm
 
Register transfer and micro-operation
Register transfer and micro-operationRegister transfer and micro-operation
Register transfer and micro-operation
 

Andere mochten auch

Environment Protection Act , 1986.
Environment Protection Act , 1986.Environment Protection Act , 1986.
Environment Protection Act , 1986.Yuvraj Tomar
 
Environmental protection & green growth
Environmental protection & green growthEnvironmental protection & green growth
Environmental protection & green growthChaudhary Khokhar
 
Environment Act, 1986
Environment Act, 1986Environment Act, 1986
Environment Act, 1986paramalways
 
Environment protection act
Environment protection actEnvironment protection act
Environment protection actPadmapriyaG
 
The environmental (protection) act, 1986
The environmental (protection) act, 1986The environmental (protection) act, 1986
The environmental (protection) act, 1986ACS Shalu Saraf
 

Andere mochten auch (7)

Parallel adder
Parallel adderParallel adder
Parallel adder
 
Binary parallel adder
Binary parallel adderBinary parallel adder
Binary parallel adder
 
Environment Protection Act , 1986.
Environment Protection Act , 1986.Environment Protection Act , 1986.
Environment Protection Act , 1986.
 
Environmental protection & green growth
Environmental protection & green growthEnvironmental protection & green growth
Environmental protection & green growth
 
Environment Act, 1986
Environment Act, 1986Environment Act, 1986
Environment Act, 1986
 
Environment protection act
Environment protection actEnvironment protection act
Environment protection act
 
The environmental (protection) act, 1986
The environmental (protection) act, 1986The environmental (protection) act, 1986
The environmental (protection) act, 1986
 

Ähnlich wie Decimal arithematic operation

Computer Architecture
Computer ArchitectureComputer Architecture
Computer ArchitectureRavi Kumar
 
Computer Architecture
Computer ArchitectureComputer Architecture
Computer ArchitectureRavi Kumar
 
Binary Coded Decimal.pptx
Binary Coded Decimal.pptxBinary Coded Decimal.pptx
Binary Coded Decimal.pptxssuserb0a163
 
1. First convert the decimal input values in Table 1 to signed binar.pdf
1. First convert the decimal input values in Table 1 to signed binar.pdf1. First convert the decimal input values in Table 1 to signed binar.pdf
1. First convert the decimal input values in Table 1 to signed binar.pdfpearlcoburnsanche303
 
2.1 data represent on cpu
2.1 data represent on cpu2.1 data represent on cpu
2.1 data represent on cpuWan Afirah
 
Digital logic design lecture 03
Digital logic design   lecture 03 Digital logic design   lecture 03
Digital logic design lecture 03 FarhatUllah27
 
Comp Arithmetic Basic.ppt
Comp Arithmetic Basic.pptComp Arithmetic Basic.ppt
Comp Arithmetic Basic.pptskatiarrahaman
 
Sequential Version / Version 1 Unsigned Multiplication Algorithm
Sequential Version / Version 1 Unsigned Multiplication AlgorithmSequential Version / Version 1 Unsigned Multiplication Algorithm
Sequential Version / Version 1 Unsigned Multiplication Algorithmbabuece
 
PDT DC015 Chapter 2 Computer System 2017/2018 (d)
PDT DC015 Chapter 2 Computer System 2017/2018 (d)PDT DC015 Chapter 2 Computer System 2017/2018 (d)
PDT DC015 Chapter 2 Computer System 2017/2018 (d)Fizaril Amzari Omar
 
PPT - 2.pptx
PPT - 2.pptxPPT - 2.pptx
PPT - 2.pptxANUTD1
 
Digital_Electronics_Basics.pdf
Digital_Electronics_Basics.pdfDigital_Electronics_Basics.pdf
Digital_Electronics_Basics.pdfrahul143341
 
Number system arithmetic
Number system arithmetic Number system arithmetic
Number system arithmetic renatus katundu
 
PST SC015 Chapter 2 Computer System 2017/2018
PST SC015 Chapter 2 Computer System 2017/2018PST SC015 Chapter 2 Computer System 2017/2018
PST SC015 Chapter 2 Computer System 2017/2018Fizaril Amzari Omar
 
Number system
Number systemNumber system
Number systemaviban
 
digital-electronics.pptx
digital-electronics.pptxdigital-electronics.pptx
digital-electronics.pptxsulekhasaxena2
 

Ähnlich wie Decimal arithematic operation (20)

ARITHMETIC FOR COMPUTERS
ARITHMETIC FOR COMPUTERS	  ARITHMETIC FOR COMPUTERS
ARITHMETIC FOR COMPUTERS
 
Computer Architecture
Computer ArchitectureComputer Architecture
Computer Architecture
 
Computer Architecture
Computer ArchitectureComputer Architecture
Computer Architecture
 
CA Unit ii
CA Unit iiCA Unit ii
CA Unit ii
 
Binary Coded Decimal.pptx
Binary Coded Decimal.pptxBinary Coded Decimal.pptx
Binary Coded Decimal.pptx
 
Ch_10.pptx.pdf
Ch_10.pptx.pdfCh_10.pptx.pdf
Ch_10.pptx.pdf
 
1. First convert the decimal input values in Table 1 to signed binar.pdf
1. First convert the decimal input values in Table 1 to signed binar.pdf1. First convert the decimal input values in Table 1 to signed binar.pdf
1. First convert the decimal input values in Table 1 to signed binar.pdf
 
2.1 data represent on cpu
2.1 data represent on cpu2.1 data represent on cpu
2.1 data represent on cpu
 
Digital logic design lecture 03
Digital logic design   lecture 03 Digital logic design   lecture 03
Digital logic design lecture 03
 
Comp Arithmetic Basic.ppt
Comp Arithmetic Basic.pptComp Arithmetic Basic.ppt
Comp Arithmetic Basic.ppt
 
Lecture_5-2.ppt
Lecture_5-2.pptLecture_5-2.ppt
Lecture_5-2.ppt
 
Sequential Version / Version 1 Unsigned Multiplication Algorithm
Sequential Version / Version 1 Unsigned Multiplication AlgorithmSequential Version / Version 1 Unsigned Multiplication Algorithm
Sequential Version / Version 1 Unsigned Multiplication Algorithm
 
Booth Multiplier
Booth MultiplierBooth Multiplier
Booth Multiplier
 
PDT DC015 Chapter 2 Computer System 2017/2018 (d)
PDT DC015 Chapter 2 Computer System 2017/2018 (d)PDT DC015 Chapter 2 Computer System 2017/2018 (d)
PDT DC015 Chapter 2 Computer System 2017/2018 (d)
 
PPT - 2.pptx
PPT - 2.pptxPPT - 2.pptx
PPT - 2.pptx
 
Digital_Electronics_Basics.pdf
Digital_Electronics_Basics.pdfDigital_Electronics_Basics.pdf
Digital_Electronics_Basics.pdf
 
Number system arithmetic
Number system arithmetic Number system arithmetic
Number system arithmetic
 
PST SC015 Chapter 2 Computer System 2017/2018
PST SC015 Chapter 2 Computer System 2017/2018PST SC015 Chapter 2 Computer System 2017/2018
PST SC015 Chapter 2 Computer System 2017/2018
 
Number system
Number systemNumber system
Number system
 
digital-electronics.pptx
digital-electronics.pptxdigital-electronics.pptx
digital-electronics.pptx
 

Kürzlich hochgeladen

HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxmarlenawright1
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - Englishneillewis46
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...Poonam Aher Patil
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptxMaritesTamaniVerdade
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.christianmathematics
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxRamakrishna Reddy Bijjam
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structuredhanjurrannsibayan2
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxJisc
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...Nguyen Thanh Tu Collection
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxJisc
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentationcamerronhm
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfNirmal Dwivedi
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxDr. Ravikiran H M Gowda
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxheathfieldcps1
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Pooja Bhuva
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...ZurliaSoop
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...Nguyen Thanh Tu Collection
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSCeline George
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.pptRamjanShidvankar
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17Celine George
 

Kürzlich hochgeladen (20)

HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptx
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 

Decimal arithematic operation

  • 1. DECIMAL ARITHEMATIC OPERATIONS PRESENTED BY : PADMAPRIYA.G
  • 2. INTRO • Decimal numbers INPUT • Decimal numbers are placed in the registers in coded form - Binary coded decimal (BCD ) ALU • Micro operations are performed • Decimal numbers output
  • 3. DECIMAL ARITHEMATIC MICROOPERATION SYMBOLS  A A+B Add contents of registers A and B, and transfer the sum into A.  B’ 9’s complement of B.  A A + B’ +1 content of A plus 10’s complement of B into A
  • 4. B B+ 1 Increment BCD number in B  dshr A Decimal shift right register A  dshl A Decimal shift left register A
  • 5. ADDITION BCD DIGITS 4 BIT BINARY ADDER SUM : BINARY RANGING FROM 0 TO 19
  • 6. DERIVATION OF BCD ADDER C = K + Z8 Z4 + Z8 Z2
  • 7.  Output of binary adder : Binary form . Conversion to BCD Binary sum ≤ 1001 : no conversion Binary sum ≥ 1001 : non valid BCD add binary 6 (0110)  3 different ways to add.
  • 8. BLOCK DIAGRAM OF BCD ADDER C = K + Z8 Z4 + Z8 Z2
  • 9. Parallel decimal addition  BCD adders = digits in the number.  Sum is formed in parallel.  requires only 1 micro operations.
  • 10. 624 + 879 =1503 1 0 1 0 1 1 0 1
  • 11. DIGIT SERIAL, BIT PARALLEL ADDITION  Digits are applied to single BCD adder serially. Bits of each coded digit are transferred in parallel. For k digits – k micro operations.
  • 12. 624 + 879 =1503
  • 14. Example - ADDITION 6796 0110 0111 1001 0110 • 5368 + 0101 0011 0110 1000 + • ----------------------------------------- 1011 1010 1111 1110
  • 15. 6796 0110 0111 1001 0110 5368 + 0101 0011 0110 1000 + -------------------------------- 1011 1010 1111 1110 0110 0110 0110 0110 + ----------------------------------- 10001 10000 10101 10100
  • 16. 6796 0110 0111 1001 0110 5368 + 0101 0011 0110 1000 + ------------------------------------------- 1011 1010 1111 1110 0110 0110 0110 0110 + ------------------------------------------- 10001 10000 10101 10100 + 1 1 1 1 ------------------------------------------------------ 0001 0010 0001 0110 0100 ------------------------------------------------------ 1 2 1 6 4
  • 17. SUBTRACTION Using 9’s complement : - Find 9’s complement of the –ve number. - Add the 2 numbers. - IF result ≥ 10,add 6(0110). - If the carry is generated add it with the result, else find the 9’s complement of it.
  • 18. Example 87 - 39 9’s complement of 39 = 99-39 = 60 87 1000 0111 60 0110 0000 + -------------------- invalid 1110 0111
  • 19. 87 1000 0111 60 0110 0000 + ------------------ • 1110 0111 0110 ------- + 10100 0111 1+ -------------------- 0100 1000 -------------------- 4 8
  • 20. 18 – 72 9’s complement of 72 = 99-72 =27 18 0001 1000 27 0010 0111 ----------------- 0011 1111 invalid
  • 21. 18 0001 1000 27 0010 0111 ----------------- 0011 1111 0001 0110 ------- ------- 0100 (1)0101 ------- -------- 4 5 9’s complement of 45 = 54
  • 22. USING 10’S COMPLEMENT • Using 10’s complement : - Find the 10’s complement of the number. - Add the 2 numbers. - If the result ≥ 10, add 6(0110). - If the carry is not generated , then find the 10’s complement of the result.
  • 23. 34 – 56 10’s complement of 56 = (99-56)+1 = 44 34 0011 0100 44 0100 0100 + --------------- 0111 1000 7 8 10’s complement of 78 = 22
  • 24. BCD SUBTRACTION M = 0 - addition is performed. M = 1 - subtraction is performed.