SlideShare a Scribd company logo
Start
n <- no. of bits
M<- Divisor
A<- 0
Q<- Dividend
Sign bit
of A?
Shift Left AQ
A = A + M
Shift Left AQ
A = A - M
=0
=1
Sign bit of
A?
Q0 <- 0
Q0 <- 1
n = n-1
Is n = 0?
Yes
Sign bit of
A?
No
Quotient in Q and
Remainder in A
Stop
A = A-M
=0
=1
=1
=0
11(Dividend) /3 (Divisor) = 3 (Quotient) and 2 (Remainder)
• M (Divisor) = 3 = 00011
• -M= 11101
• Q (Dividend) =11 = 1011
• A (Accumulator) =0 =00000
Tracing
n M A Q Action/Comment
4 00011 00000 1011 Initialization
00001 011_ SL
AQ
11110 011_ A = A - M
3 11110 0110 Q0 <- 0
11100 110_ SL
AQ
11111 110_ A = A+M
2 11111 1100 Q0 <- 0
11111 100_ SL
AQ
00010 100_ A = A+M
1 00010 1001 Q0 <- 1
00101 001_ SL
Result
Quotient in Q
(0011)2 => 310
Remainder in A
Remainder in A
(00010)2 => 210
Result

More Related Content

More from SwatiHans10 (20)

PPTX
Hardwires and Microprogrammed Control ,
SwatiHans10
 
PPTX
Restoring Algorithm _
SwatiHans10
 
PPTX
loops _
SwatiHans10
 
PPT
functions _
SwatiHans10
 
PDF
Instruction execution cycle _
SwatiHans10
 
PPT
RTL,Instruction set _
SwatiHans10
 
PPT
Data representation _
SwatiHans10
 
PPTX
CAO PPT-Lect 1 _
SwatiHans10
 
PPTX
CIRCULAR LINKED LIST _
SwatiHans10
 
PPT
Transmission control protocol _
SwatiHans10
 
PPTX
Numpy _
SwatiHans10
 
PPTX
Lecture 1 .
SwatiHans10
 
PPTX
ip addressing _
SwatiHans10
 
PPT
intranet _
SwatiHans10
 
PPTX
routing algo n
SwatiHans10
 
PPT
ethernet nn
SwatiHans10
 
PPT
Transmission control protocol ...............................
SwatiHans10
 
PPT
search_sort.ppt
SwatiHans10
 
PPTX
analytics platform
SwatiHans10
 
PPTX
kpi
SwatiHans10
 
Hardwires and Microprogrammed Control ,
SwatiHans10
 
Restoring Algorithm _
SwatiHans10
 
loops _
SwatiHans10
 
functions _
SwatiHans10
 
Instruction execution cycle _
SwatiHans10
 
RTL,Instruction set _
SwatiHans10
 
Data representation _
SwatiHans10
 
CAO PPT-Lect 1 _
SwatiHans10
 
CIRCULAR LINKED LIST _
SwatiHans10
 
Transmission control protocol _
SwatiHans10
 
Numpy _
SwatiHans10
 
Lecture 1 .
SwatiHans10
 
ip addressing _
SwatiHans10
 
intranet _
SwatiHans10
 
routing algo n
SwatiHans10
 
ethernet nn
SwatiHans10
 
Transmission control protocol ...............................
SwatiHans10
 
search_sort.ppt
SwatiHans10
 
analytics platform
SwatiHans10
 

Recently uploaded (20)

PPTX
Pharmaceuticals and fine chemicals.pptxx
jaypa242004
 
PPTX
NEUROMOROPHIC nu iajwojeieheueueueu.pptx
knkoodalingam39
 
PDF
6th International Conference on Machine Learning Techniques and Data Science ...
ijistjournal
 
PPTX
原版一样(Acadia毕业证书)加拿大阿卡迪亚大学毕业证办理方法
Taqyea
 
PPTX
Green Building & Energy Conservation ppt
Sagar Sarangi
 
PPTX
Break Statement in Programming with 6 Real Examples
manojpoojary2004
 
PDF
MOBILE AND WEB BASED REMOTE BUSINESS MONITORING SYSTEM
ijait
 
PPTX
Types of Bearing_Specifications_PPT.pptx
PranjulAgrahariAkash
 
PPTX
MobileComputingMANET2023 MobileComputingMANET2023.pptx
masterfake98765
 
PDF
A presentation on the Urban Heat Island Effect
studyfor7hrs
 
PDF
Introduction to Productivity and Quality
মোঃ ফুরকান উদ্দিন জুয়েল
 
PPTX
EC3551-Transmission lines Demo class .pptx
Mahalakshmiprasannag
 
PPTX
Structural Functiona theory this important for the theorist
cagumaydanny26
 
PPTX
The Role of Information Technology in Environmental Protectio....pptx
nallamillisriram
 
PPTX
ISO/IEC JTC 1/WG 9 (MAR) Convenor Report
Kurata Takeshi
 
PPTX
Hashing Introduction , hash functions and techniques
sailajam21
 
PDF
UNIT-4-FEEDBACK AMPLIFIERS AND OSCILLATORS (1).pdf
Sridhar191373
 
PDF
monopile foundation seminar topic for civil engineering students
Ahina5
 
PDF
Unified_Cloud_Comm_Presentation anil singh ppt
anilsingh298751
 
PPTX
REINFORCEMENT AS CONSTRUCTION MATERIALS.pptx
mohaiminulhaquesami
 
Pharmaceuticals and fine chemicals.pptxx
jaypa242004
 
NEUROMOROPHIC nu iajwojeieheueueueu.pptx
knkoodalingam39
 
6th International Conference on Machine Learning Techniques and Data Science ...
ijistjournal
 
原版一样(Acadia毕业证书)加拿大阿卡迪亚大学毕业证办理方法
Taqyea
 
Green Building & Energy Conservation ppt
Sagar Sarangi
 
Break Statement in Programming with 6 Real Examples
manojpoojary2004
 
MOBILE AND WEB BASED REMOTE BUSINESS MONITORING SYSTEM
ijait
 
Types of Bearing_Specifications_PPT.pptx
PranjulAgrahariAkash
 
MobileComputingMANET2023 MobileComputingMANET2023.pptx
masterfake98765
 
A presentation on the Urban Heat Island Effect
studyfor7hrs
 
Introduction to Productivity and Quality
মোঃ ফুরকান উদ্দিন জুয়েল
 
EC3551-Transmission lines Demo class .pptx
Mahalakshmiprasannag
 
Structural Functiona theory this important for the theorist
cagumaydanny26
 
The Role of Information Technology in Environmental Protectio....pptx
nallamillisriram
 
ISO/IEC JTC 1/WG 9 (MAR) Convenor Report
Kurata Takeshi
 
Hashing Introduction , hash functions and techniques
sailajam21
 
UNIT-4-FEEDBACK AMPLIFIERS AND OSCILLATORS (1).pdf
Sridhar191373
 
monopile foundation seminar topic for civil engineering students
Ahina5
 
Unified_Cloud_Comm_Presentation anil singh ppt
anilsingh298751
 
REINFORCEMENT AS CONSTRUCTION MATERIALS.pptx
mohaiminulhaquesami
 
Ad

Non -Restoring Algorithm _

  • 1. Start n <- no. of bits M<- Divisor A<- 0 Q<- Dividend Sign bit of A? Shift Left AQ A = A + M Shift Left AQ A = A - M =0 =1 Sign bit of A? Q0 <- 0 Q0 <- 1 n = n-1 Is n = 0? Yes Sign bit of A? No Quotient in Q and Remainder in A Stop A = A-M =0 =1 =1 =0
  • 2. 11(Dividend) /3 (Divisor) = 3 (Quotient) and 2 (Remainder) • M (Divisor) = 3 = 00011 • -M= 11101 • Q (Dividend) =11 = 1011 • A (Accumulator) =0 =00000
  • 3. Tracing n M A Q Action/Comment 4 00011 00000 1011 Initialization 00001 011_ SL AQ 11110 011_ A = A - M 3 11110 0110 Q0 <- 0 11100 110_ SL AQ 11111 110_ A = A+M 2 11111 1100 Q0 <- 0 11111 100_ SL AQ 00010 100_ A = A+M 1 00010 1001 Q0 <- 1 00101 001_ SL
  • 4. Result Quotient in Q (0011)2 => 310 Remainder in A Remainder in A (00010)2 => 210 Result