SlideShare a Scribd company logo
1 of 10
TO
OUR PRESENTATION
PORT CITY
INTERNATIONAL
UNIVERSITY,
CHITTAGONG
CSE-13BATCH (A)
OUR GROUP NAME:-
TEAM RATIO
PRESENTED BY-
1.Farhan Nasir (CSE013 06125)
2.Thirtha Das (CSE013 06136)
OUR TOPIC:-
Final Version of the Division
Algorithm and Hardware
DIVISION:
Quotient1
10010101000
-1000
Dividend
• Divisor
10
101
1010
-1000
10 Reminder
Won’t go
Won’t go
001
32-bit Divisor reg, 32 -bit ALU, 64-bit Remainder reg,
(32-bit Quotient reg)
Divide Algorithm
Version 3:
3b. Restore the original value by adding the Divisor
register to the left half of the Remainder register,
&place the sum in the left half of the Remainder
register. Also shift the Remainder register to the
left, setting the new least significant bit to 0.
Test
Remainder
Remainder < 0Remainder  0
2. Subtract the Divisor register from the
left half of the Remainder register, & place the
result in the left half of the Remainder register.
3a. Shift the
Remainder register
to the left setting
the new rightmost
bit to 1.
1. Shift the Remainder register left 1 bit.
Done. Shift left half of Remainder right 1 bit.
Yes: n repetitions (n = 4 here)
nth
repetition?
No: < n repetitions
Start: Place Dividend in Remainder
Divided 810 by 310
Dividend = 10002
Divisor = 00112
Reminder = 000010002
Iteration Step Divisor Remainder
Divide 710 = 01112 (Dividend) by 210 = 00102 (Divisor)
Quotient = 00112 = 310
Remainder = 00012 = 110
0000
-0010
1110
Shift left half of Rem right 1 0010 0001 0011
3a. Rem>=0 sft L, R0=1 0010 0010 0011
4 2. Rem = Rem – Div 0010 0001 0001
3a. Rem>=0 sft L, R0=1 0010 0011 0001
3 2. Rem = Rem – Div 0010 0001 1000
3b.Rem<0 +Div, sft L,R0=0 0010 0011 1000
2 2. Rem = Rem – Div 0010 1111 1100
3b.Rem<0 +Div, sft L,R0=0 0010 0001 1100
1 2. Rem = Rem – Div 0010 1110 1110
Shift remainder left 1 0010 0000 1110
0 Initial values 0010 0000 0111
0001
-0010
1111
0011
-0010
0001
0011
-0010
0001
1110 1110
+0010
0000 1110
1111 1100
+0010
0001 1000
Final version of division algorithm.pptx
Final version of division algorithm.pptx

More Related Content

What's hot

Minterm and maxterm
Minterm and maxtermMinterm and maxterm
Minterm and maxterm
parsa.khan64
 

What's hot (20)

Block codes
Block codesBlock codes
Block codes
 
8051 ch9
8051 ch98051 ch9
8051 ch9
 
Linear block coding
Linear block codingLinear block coding
Linear block coding
 
Question bank digital electronics
Question bank digital electronicsQuestion bank digital electronics
Question bank digital electronics
 
Digital signal processing
Digital signal processingDigital signal processing
Digital signal processing
 
BCD.
BCD.BCD.
BCD.
 
BOOTH ALGO, DIVISION(RESTORING _ NON RESTORING) etc etc
BOOTH ALGO, DIVISION(RESTORING _ NON RESTORING) etc etcBOOTH ALGO, DIVISION(RESTORING _ NON RESTORING) etc etc
BOOTH ALGO, DIVISION(RESTORING _ NON RESTORING) etc etc
 
Programming with 8085
Programming with 8085Programming with 8085
Programming with 8085
 
Linear Block Codes
Linear Block CodesLinear Block Codes
Linear Block Codes
 
Chapter 6 - Introduction to 8085 Instructions
Chapter 6 - Introduction to 8085 InstructionsChapter 6 - Introduction to 8085 Instructions
Chapter 6 - Introduction to 8085 Instructions
 
Minterm and maxterm
Minterm and maxtermMinterm and maxterm
Minterm and maxterm
 
Number system conversion
Number system conversionNumber system conversion
Number system conversion
 
Division algorithm
Division algorithmDivision algorithm
Division algorithm
 
Chapter#8
Chapter#8Chapter#8
Chapter#8
 
Delay routine
Delay routineDelay routine
Delay routine
 
Number system
Number systemNumber system
Number system
 
Linear block code
Linear block codeLinear block code
Linear block code
 
Types of Instruction Format
Types of Instruction FormatTypes of Instruction Format
Types of Instruction Format
 
Binary codes
Binary codesBinary codes
Binary codes
 
Floating point representation
Floating point representationFloating point representation
Floating point representation
 

Similar to Final version of division algorithm.pptx

Design of 64 bit error tolerant adder
Design of 64 bit error tolerant adderDesign of 64 bit error tolerant adder
Design of 64 bit error tolerant adder
iaemedu
 
Design of 64 bit error tolerant adder
Design of 64 bit error tolerant adderDesign of 64 bit error tolerant adder
Design of 64 bit error tolerant adder
IAEME Publication
 
Design of 64 bit error tolerant adder
Design of 64 bit error tolerant adderDesign of 64 bit error tolerant adder
Design of 64 bit error tolerant adder
iaemedu
 
Computer organization and architecture lab manual
Computer organization and architecture lab manual Computer organization and architecture lab manual
Computer organization and architecture lab manual
Shankar Gangaju
 
18CS44-MES-Module-2(Chapter 3).pptx
18CS44-MES-Module-2(Chapter 3).pptx18CS44-MES-Module-2(Chapter 3).pptx
18CS44-MES-Module-2(Chapter 3).pptx
rakshitha481121
 
Microcontrollers ii
Microcontrollers iiMicrocontrollers ii
Microcontrollers ii
Kumar Kumar
 
Msa manual 4 th edition
Msa manual 4 th editionMsa manual 4 th edition
Msa manual 4 th edition
SANKUSI
 

Similar to Final version of division algorithm.pptx (20)

8051 training an interactive tutorial
8051 training an interactive tutorial8051 training an interactive tutorial
8051 training an interactive tutorial
 
Design of 64 bit error tolerant adder
Design of 64 bit error tolerant adderDesign of 64 bit error tolerant adder
Design of 64 bit error tolerant adder
 
Design of 64 bit error tolerant adder
Design of 64 bit error tolerant adderDesign of 64 bit error tolerant adder
Design of 64 bit error tolerant adder
 
Design of 64 bit error tolerant adder
Design of 64 bit error tolerant adderDesign of 64 bit error tolerant adder
Design of 64 bit error tolerant adder
 
Lec5 Computer Architecture by Hsien-Hsin Sean Lee Georgia Tech -- Branch Pred...
Lec5 Computer Architecture by Hsien-Hsin Sean Lee Georgia Tech -- Branch Pred...Lec5 Computer Architecture by Hsien-Hsin Sean Lee Georgia Tech -- Branch Pred...
Lec5 Computer Architecture by Hsien-Hsin Sean Lee Georgia Tech -- Branch Pred...
 
Fast Multiplier for FIR Filters
Fast Multiplier for FIR FiltersFast Multiplier for FIR Filters
Fast Multiplier for FIR Filters
 
Computer organization and architecture lab manual
Computer organization and architecture lab manual Computer organization and architecture lab manual
Computer organization and architecture lab manual
 
Design of composite digital filter with least square method parameter identif...
Design of composite digital filter with least square method parameter identif...Design of composite digital filter with least square method parameter identif...
Design of composite digital filter with least square method parameter identif...
 
Low Level Prog. (from 201-c).ppt
Low Level Prog. (from 201-c).pptLow Level Prog. (from 201-c).ppt
Low Level Prog. (from 201-c).ppt
 
unit 2 lect 6 AND 7 8254.pptx
unit 2 lect 6 AND 7 8254.pptxunit 2 lect 6 AND 7 8254.pptx
unit 2 lect 6 AND 7 8254.pptx
 
Design and Simulation of a Modified Architecture of Carry Save Adder
Design and Simulation of a Modified Architecture of Carry Save AdderDesign and Simulation of a Modified Architecture of Carry Save Adder
Design and Simulation of a Modified Architecture of Carry Save Adder
 
18CS44-MES-Module-2(Chapter 3).pptx
18CS44-MES-Module-2(Chapter 3).pptx18CS44-MES-Module-2(Chapter 3).pptx
18CS44-MES-Module-2(Chapter 3).pptx
 
Analog to Digital Converter
Analog to Digital ConverterAnalog to Digital Converter
Analog to Digital Converter
 
Design System Design-ASM and Asynchronous Sequential Circuits
Design System Design-ASM and Asynchronous Sequential CircuitsDesign System Design-ASM and Asynchronous Sequential Circuits
Design System Design-ASM and Asynchronous Sequential Circuits
 
X Bar R Charts
X Bar R ChartsX Bar R Charts
X Bar R Charts
 
X Bar R Charts
X Bar R ChartsX Bar R Charts
X Bar R Charts
 
X Bar R Charts
X Bar R ChartsX Bar R Charts
X Bar R Charts
 
Microcontrollers ii
Microcontrollers iiMicrocontrollers ii
Microcontrollers ii
 
Msa manual 4 th edition
Msa manual 4 th editionMsa manual 4 th edition
Msa manual 4 th edition
 
MicrocontrollersII.ppt
MicrocontrollersII.pptMicrocontrollersII.ppt
MicrocontrollersII.ppt
 

Recently uploaded

Online crime reporting system project.pdf
Online crime reporting system project.pdfOnline crime reporting system project.pdf
Online crime reporting system project.pdf
Kamal Acharya
 
electrical installation and maintenance.
electrical installation and maintenance.electrical installation and maintenance.
electrical installation and maintenance.
benjamincojr
 
Tembisa Central Terminating Pills +27838792658 PHOMOLONG Top Abortion Pills F...
Tembisa Central Terminating Pills +27838792658 PHOMOLONG Top Abortion Pills F...Tembisa Central Terminating Pills +27838792658 PHOMOLONG Top Abortion Pills F...
Tembisa Central Terminating Pills +27838792658 PHOMOLONG Top Abortion Pills F...
drjose256
 

Recently uploaded (20)

Online crime reporting system project.pdf
Online crime reporting system project.pdfOnline crime reporting system project.pdf
Online crime reporting system project.pdf
 
Augmented Reality (AR) with Augin Software.pptx
Augmented Reality (AR) with Augin Software.pptxAugmented Reality (AR) with Augin Software.pptx
Augmented Reality (AR) with Augin Software.pptx
 
Artificial Intelligence in due diligence
Artificial Intelligence in due diligenceArtificial Intelligence in due diligence
Artificial Intelligence in due diligence
 
Dynamo Scripts for Task IDs and Space Naming.pptx
Dynamo Scripts for Task IDs and Space Naming.pptxDynamo Scripts for Task IDs and Space Naming.pptx
Dynamo Scripts for Task IDs and Space Naming.pptx
 
electrical installation and maintenance.
electrical installation and maintenance.electrical installation and maintenance.
electrical installation and maintenance.
 
Introduction to Artificial Intelligence and History of AI
Introduction to Artificial Intelligence and History of AIIntroduction to Artificial Intelligence and History of AI
Introduction to Artificial Intelligence and History of AI
 
AI in Healthcare Innovative use cases and applications.pdf
AI in Healthcare Innovative use cases and applications.pdfAI in Healthcare Innovative use cases and applications.pdf
AI in Healthcare Innovative use cases and applications.pdf
 
The Entity-Relationship Model(ER Diagram).pptx
The Entity-Relationship Model(ER Diagram).pptxThe Entity-Relationship Model(ER Diagram).pptx
The Entity-Relationship Model(ER Diagram).pptx
 
Piping and instrumentation diagram p.pdf
Piping and instrumentation diagram p.pdfPiping and instrumentation diagram p.pdf
Piping and instrumentation diagram p.pdf
 
SLIDESHARE PPT-DECISION MAKING METHODS.pptx
SLIDESHARE PPT-DECISION MAKING METHODS.pptxSLIDESHARE PPT-DECISION MAKING METHODS.pptx
SLIDESHARE PPT-DECISION MAKING METHODS.pptx
 
NO1 Best Powerful Vashikaran Specialist Baba Vashikaran Specialist For Love V...
NO1 Best Powerful Vashikaran Specialist Baba Vashikaran Specialist For Love V...NO1 Best Powerful Vashikaran Specialist Baba Vashikaran Specialist For Love V...
NO1 Best Powerful Vashikaran Specialist Baba Vashikaran Specialist For Love V...
 
Tembisa Central Terminating Pills +27838792658 PHOMOLONG Top Abortion Pills F...
Tembisa Central Terminating Pills +27838792658 PHOMOLONG Top Abortion Pills F...Tembisa Central Terminating Pills +27838792658 PHOMOLONG Top Abortion Pills F...
Tembisa Central Terminating Pills +27838792658 PHOMOLONG Top Abortion Pills F...
 
Fuzzy logic method-based stress detector with blood pressure and body tempera...
Fuzzy logic method-based stress detector with blood pressure and body tempera...Fuzzy logic method-based stress detector with blood pressure and body tempera...
Fuzzy logic method-based stress detector with blood pressure and body tempera...
 
litvinenko_Henry_Intrusion_Hong-Kong_2024.pdf
litvinenko_Henry_Intrusion_Hong-Kong_2024.pdflitvinenko_Henry_Intrusion_Hong-Kong_2024.pdf
litvinenko_Henry_Intrusion_Hong-Kong_2024.pdf
 
What is Coordinate Measuring Machine? CMM Types, Features, Functions
What is Coordinate Measuring Machine? CMM Types, Features, FunctionsWhat is Coordinate Measuring Machine? CMM Types, Features, Functions
What is Coordinate Measuring Machine? CMM Types, Features, Functions
 
5G and 6G refer to generations of mobile network technology, each representin...
5G and 6G refer to generations of mobile network technology, each representin...5G and 6G refer to generations of mobile network technology, each representin...
5G and 6G refer to generations of mobile network technology, each representin...
 
Raashid final report on Embedded Systems
Raashid final report on Embedded SystemsRaashid final report on Embedded Systems
Raashid final report on Embedded Systems
 
Seismic Hazard Assessment Software in Python by Prof. Dr. Costas Sachpazis
Seismic Hazard Assessment Software in Python by Prof. Dr. Costas SachpazisSeismic Hazard Assessment Software in Python by Prof. Dr. Costas Sachpazis
Seismic Hazard Assessment Software in Python by Prof. Dr. Costas Sachpazis
 
Autodesk Construction Cloud (Autodesk Build).pptx
Autodesk Construction Cloud (Autodesk Build).pptxAutodesk Construction Cloud (Autodesk Build).pptx
Autodesk Construction Cloud (Autodesk Build).pptx
 
Lab Manual Arduino UNO Microcontrollar.docx
Lab Manual Arduino UNO Microcontrollar.docxLab Manual Arduino UNO Microcontrollar.docx
Lab Manual Arduino UNO Microcontrollar.docx
 

Final version of division algorithm.pptx

  • 3. OUR GROUP NAME:- TEAM RATIO PRESENTED BY- 1.Farhan Nasir (CSE013 06125) 2.Thirtha Das (CSE013 06136)
  • 4. OUR TOPIC:- Final Version of the Division Algorithm and Hardware
  • 6. 32-bit Divisor reg, 32 -bit ALU, 64-bit Remainder reg, (32-bit Quotient reg)
  • 7. Divide Algorithm Version 3: 3b. Restore the original value by adding the Divisor register to the left half of the Remainder register, &place the sum in the left half of the Remainder register. Also shift the Remainder register to the left, setting the new least significant bit to 0. Test Remainder Remainder < 0Remainder  0 2. Subtract the Divisor register from the left half of the Remainder register, & place the result in the left half of the Remainder register. 3a. Shift the Remainder register to the left setting the new rightmost bit to 1. 1. Shift the Remainder register left 1 bit. Done. Shift left half of Remainder right 1 bit. Yes: n repetitions (n = 4 here) nth repetition? No: < n repetitions Start: Place Dividend in Remainder Divided 810 by 310 Dividend = 10002 Divisor = 00112 Reminder = 000010002
  • 8. Iteration Step Divisor Remainder Divide 710 = 01112 (Dividend) by 210 = 00102 (Divisor) Quotient = 00112 = 310 Remainder = 00012 = 110 0000 -0010 1110 Shift left half of Rem right 1 0010 0001 0011 3a. Rem>=0 sft L, R0=1 0010 0010 0011 4 2. Rem = Rem – Div 0010 0001 0001 3a. Rem>=0 sft L, R0=1 0010 0011 0001 3 2. Rem = Rem – Div 0010 0001 1000 3b.Rem<0 +Div, sft L,R0=0 0010 0011 1000 2 2. Rem = Rem – Div 0010 1111 1100 3b.Rem<0 +Div, sft L,R0=0 0010 0001 1100 1 2. Rem = Rem – Div 0010 1110 1110 Shift remainder left 1 0010 0000 1110 0 Initial values 0010 0000 0111 0001 -0010 1111 0011 -0010 0001 0011 -0010 0001 1110 1110 +0010 0000 1110 1111 1100 +0010 0001 1000

Editor's Notes

  1. s