SlideShare ist ein Scribd-Unternehmen logo
1 von 21
Multiplication of Unsigned Binary Integer
Presented by:
Name: Zubayer Farazi
Presented for:
Md. Mostafiz Ahammed
Lecturer
Department of CSE,
Notre Dame University, Bangladesh
Department of Computer Science and Engineering
Outline
1
 Introduction of Multiplication
 Example of Multiplication
 Block Diagram
 Flowchart
 Reference
Multiplication
 Compared with addition and subtraction, multiplication is a
complex operation , whether performed in hardware or
software.
 Multiplication involves the generation of partial products, one
for each digit in the multiplier.
 These partial products are then summed to produce the final
product.
2
Multiplication
Example:
1 0 1 1
1 1 0 1
Multiplicand
Multiplier
1 0 1 1
0 0 0 0
1 0 1 1
1 0 1 1
1 0 0 0 1 1 1 1
Partial Product
3
Product
Block Diagram
Mn-1 … M₀
N-bit Adder
An-1 … A₀
Shift and Control logic
C
Qn-1 … Q₀
Multiplicand
Multiplier
Register
Add
4
Flowchart Start
Shift right C,A,Q
C,A 0
N N-1
Yes
End
Q=1?
M Multiplicand
Q Multiplier
C,A 0
Yes
C,A A + M
No
No
N=0? 5
Start
Yes
Shift right C,A,Q
C,A 0
N N-1
Yes
End
M Multiplicand
Q Multiplier
C,A 0
Q=1?
C,A A + M
No
No
N=0?
N M C A Q Comments
1 0 1 1 0 0 0 0 0 1 1 0 1 Initialization
4
6
1 0 1 1 1 1 0 1 = ?
*
Start
Yes
Shift right C,A,Q
C,A 0
N N-1
Yes
End
M Multiplicand
Q Multiplier
C,A 0
Q=1?
C,A A + M
No
No
N=0?
N M C A Q Comments
1 0 1 1 0 0 0 0 0 1 1 0 1 Initialization
1 0 1 1
0 1 1 0 1
Add A with A:
A=A+M
4
3
0 0 0 0
1 0 1 1
1 0 1 1
A
M
A
7
1 0 1 1 1 1 0 1 = ?
*
Start
Yes
Shift right C,A,Q
C,A 0
N N-1
Yes
End
M Multiplicand
Q Multiplier
C,A 0
Q=1?
C,A A + M
No
No
N=0?
N M C A Q Comments
1 0 1 1 0 0 0 0 0 1 1 0 1 Initialization
1 0 1 1
0 1 1 0 1
Add A with A:
A=A+M
0 1 0 1 1 1 1 0 Shift right C, A, Q
0
4
3
Discard
8
1 0 1 1 1 1 0 1 = ?
*
Start
Yes
Shift right C,A,Q
C,A 0
N N-1
Yes
End
M Multiplicand
Q Multiplier
C,A 0
Q=1?
C,A A + M
No
No
N=0?
N M C A Q Comments
1 0 1 1 0 0 0 0 0 1 1 0 1 Initialization
1 0 1 1
0 1 1 0 1
Add A with A:
A=A+M
0 1 0 1 1 1 1 Shift right C, A, Q
0
4
3
2
0
10
1 0 1 1 1 1 0 1 = ?
*
Start
Yes
Shift right C,A,Q
C,A 0
N N-1
Yes
End
M Multiplicand
Q Multiplier
C,A 0
Q=1?
C,A A + M
No
No
N=0?
N M C A Q Comments
1 0 1 1 0 0 0 0 0 1 1 0 1 Initialization
1 0 1 1
0 1 1 0 1
Add A with A:
A=A+M
0 1 0 1 1 1 1 0 Shift right C, A, Q
0
4
3
2
11
1 0 1 1 1 1 0 1 = ?
*
Start
Yes
Shift right C,A,Q
C,A 0
N N-1
Yes
End
M Multiplicand
Q Multiplier
C,A 0
Q=1?
C,A A + M
No
No
N=0?
N M C A Q Comments
1 0 1 1 0 0 0 0 0 1 1 0 1 Initialization
1 0 1 1
0 1 1 0 1
Add A with A:
A=A+M
0 1 0 1 1 1 1 0 Shift right C, A, Q
0
4
3
0 0 1 0 1 1 1 1
0
2 Shift right C, A, Q
Discard
12
1 0 1 1 1 1 0 1 = ?
*
Start
Yes
Shift right C,A,Q
C,A 0
N N-1
Yes
End
M Multiplicand
Q Multiplier
C,A 0
Q=1?
C,A A + M
No
No
N=0?
N M C A Q Comments
1 0 1 1 0 0 0 0 0 1 1 0 1 Initialization
1 0 1 1
0 1 1 0 1
Add A with A:
A=A+M
0 1 0 1 1 1 1 0 Shift right C, A, Q
0
4
3
0 0 1 0 1 1 1 1
0
2
1
Shift right C, A, Q
13
1 0 1 1 1 1 0 1 = ?
*
Start
Yes
Shift right C,A,Q
C,A 0
N N-1
Yes
End
M Multiplicand
Q Multiplier
C,A 0
Q=1?
C,A A + M
No
No
N=0?
N M C A Q Comments
1 0 1 1 0 0 0 0 0 1 1 0 1 Initialization
1 0 1 1
0 1 1 0 1
Add A with A:
A=A+M
0 1 0 1 1 1 1 0 Shift right C, A, Q
0
4
3
0 0 1 0 1 1 1 1
0
1 1 0 1 1 1 1 1 Add A with A:
A=A+M
2
1
0 0 1 0
1 0 1 1
1 1 0 1
A
M
Shift right C, A, Q
A
0
14
1 0 1 1 1 1 0 1 = ?
*
Start
Yes
Shift right C,A,Q
C,A 0
N N-1
Yes
End
M Multiplicand
Q Multiplier
C,A 0
Q=1?
C,A A + M
No
No
N=0?
N M C A Q Comments
1 0 1 1 0 0 0 0 0 1 1 0 1 Initialization
1 0 1 1
0 1 1 0 1
Add A with A:
A=A+M
0 1 0 1 1 1 1 0 Shift right C, A, Q
0
4
3
0 0 1 0 1 1 1 1
0
1 1 0 1
0 1 1 0
1 1 1 1
1 1 1 1
Add A with A:
A=A+M
Shift right C, A, Q
2
1
Shift right C, A, Q
0
Discard
0
15
1 0 1 1 1 1 0 1 = ?
*
Start
Yes
Shift right C,A,Q
C,A 0
N N-1
Yes
End
M Multiplicand
Q Multiplier
C,A 0
Q=1?
C,A A + M
No
No
N=0?
N M C A Q Comments
1 0 1 1 0 0 0 0 0 1 1 0 1 Initialization
1 0 1 1
0 1 1 0 1
Add A with A:
A=A+M
0 1 0 1 1 1 1 0 Shift right C, A, Q
0
4
3
0 0 1 0 1 1 1 1
0
1 1 0 1
0 1 1 0
1 1 1 1
1 1 1 1
Add A with A:
A=A+M
Shift right C, A, Q
2
1
0
16
1 0 1 1 1 1 0 1 = ?
*
Start
Yes
Shift right C,A,Q
C,A 0
N N-1
Yes
End
M Multiplicand
Q Multiplier
C,A 0
Q=1?
C,A A + M
No
No
N=0?
N M C A Q Comments
1 0 1 1 0 0 0 0 0 1 1 0 1 Initialization
1 0 1 1
0 1 1 0 1
Add A with A:
A=A+M
0 1 0 1 1 1 1 0 Shift right C, A, Q
0
4
3
0 0 1 0 1 1 1 1
0
1 1 0 1
0 1 1 0
1 1 1 1
1 1 1 1
Add A with A:
A=A+M
Shift right C, A, Q
2
1
0 0 0 1 1 1 1 1
1 Add A with A:
A=A+M
0 1 1 0
1 0 1 1
1 0 0 0 1
A
M
A
0
0
17
0
Start
Yes
Shift right C,A,Q
C,A 0
N N-1
Yes
End
M Multiplicand
Q Multiplier
C,A 0
Q=1?
C,A A + M
No
No
N=0?
N M C A Q Comments
1 0 1 1 0 0 0 0 0 1 1 0 1 Initialization
1 0 1 1
0 1 1 0 1
Add A with A:
A=A+M
0 1 0 1 1 1 1 0 Shift right C, A, Q
0
4
3
0 0 1 0 1 1 1 1
0
1 1 0 1
0 1 1 0
1 1 1 1
1 1 1 1
Add A with A:
A=A+M
Shift right C, A, Q
2
1
0 0 0 1 1 1 1 1
1 Add A with A:
A=A+M
1 0 0 0 1 1 1 1 Shift right C, A, Q
0
Discard 18
0
Start
Yes
Shift right C,A,Q
C,A 0
N N-1
Yes
End
M Multiplicand
Q Multiplier
C,A 0
Q=1?
C,A A + M
No
No
N=0?
N M C A Q Comments
1 0 1 1 0 0 0 0 0 1 1 0 1 Initialization
1 0 1 1
0 1 1 0 1
Add A with A:
A=A+M
0 1 0 1 1 1 1 0 Shift right C, A, Q
0
4
3
0 0 1 0 1 1 1 1
0
1 1 0 1
0 1 1 0
1 1 1 1
1 1 1 1
Add A with A:
A=A+M
Shift right C, A, Q
2
1
0 0 0 1 1 1 1 1
1 Add A with A:
A=A+M
1 0 0 0 1 1 1 1 Shift right C, A, Q
0
0
1 0 1 1
1 0 1 1
1 0 1 1
1 0 1 1
The Result is : (010001111) ₂ = 143₁₀ 19
*
1 0 1 1 1 1 0 1 = ?
Reference
 Class lecture sheet
https://classroom.google.com/u/1/c/NTQ2OTc1NTQ0MzI3
/m/NTA3NTUwNDg3Mjkx/details
20
Thank You

Weitere ähnliche Inhalte

Kürzlich hochgeladen

The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
heathfieldcps1
 
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
heathfieldcps1
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
kauryashika82
 

Kürzlich hochgeladen (20)

Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
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
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 
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.
 
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-IIFood Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
 
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
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
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Ữ Â...
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 

Empfohlen

Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 

Empfohlen (20)

PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
 
Barbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationBarbie - Brand Strategy Presentation
Barbie - Brand Strategy Presentation
 

CSE 3203: Multiplication of Unsigned Binary Integer

  • 1. Multiplication of Unsigned Binary Integer Presented by: Name: Zubayer Farazi Presented for: Md. Mostafiz Ahammed Lecturer Department of CSE, Notre Dame University, Bangladesh Department of Computer Science and Engineering
  • 2. Outline 1  Introduction of Multiplication  Example of Multiplication  Block Diagram  Flowchart  Reference
  • 3. Multiplication  Compared with addition and subtraction, multiplication is a complex operation , whether performed in hardware or software.  Multiplication involves the generation of partial products, one for each digit in the multiplier.  These partial products are then summed to produce the final product. 2
  • 4. Multiplication Example: 1 0 1 1 1 1 0 1 Multiplicand Multiplier 1 0 1 1 0 0 0 0 1 0 1 1 1 0 1 1 1 0 0 0 1 1 1 1 Partial Product 3 Product
  • 5. Block Diagram Mn-1 … M₀ N-bit Adder An-1 … A₀ Shift and Control logic C Qn-1 … Q₀ Multiplicand Multiplier Register Add 4
  • 6. Flowchart Start Shift right C,A,Q C,A 0 N N-1 Yes End Q=1? M Multiplicand Q Multiplier C,A 0 Yes C,A A + M No No N=0? 5
  • 7. Start Yes Shift right C,A,Q C,A 0 N N-1 Yes End M Multiplicand Q Multiplier C,A 0 Q=1? C,A A + M No No N=0? N M C A Q Comments 1 0 1 1 0 0 0 0 0 1 1 0 1 Initialization 4 6 1 0 1 1 1 1 0 1 = ? *
  • 8. Start Yes Shift right C,A,Q C,A 0 N N-1 Yes End M Multiplicand Q Multiplier C,A 0 Q=1? C,A A + M No No N=0? N M C A Q Comments 1 0 1 1 0 0 0 0 0 1 1 0 1 Initialization 1 0 1 1 0 1 1 0 1 Add A with A: A=A+M 4 3 0 0 0 0 1 0 1 1 1 0 1 1 A M A 7 1 0 1 1 1 1 0 1 = ? *
  • 9. Start Yes Shift right C,A,Q C,A 0 N N-1 Yes End M Multiplicand Q Multiplier C,A 0 Q=1? C,A A + M No No N=0? N M C A Q Comments 1 0 1 1 0 0 0 0 0 1 1 0 1 Initialization 1 0 1 1 0 1 1 0 1 Add A with A: A=A+M 0 1 0 1 1 1 1 0 Shift right C, A, Q 0 4 3 Discard 8 1 0 1 1 1 1 0 1 = ? *
  • 10. Start Yes Shift right C,A,Q C,A 0 N N-1 Yes End M Multiplicand Q Multiplier C,A 0 Q=1? C,A A + M No No N=0? N M C A Q Comments 1 0 1 1 0 0 0 0 0 1 1 0 1 Initialization 1 0 1 1 0 1 1 0 1 Add A with A: A=A+M 0 1 0 1 1 1 1 Shift right C, A, Q 0 4 3 2 0 10 1 0 1 1 1 1 0 1 = ? *
  • 11. Start Yes Shift right C,A,Q C,A 0 N N-1 Yes End M Multiplicand Q Multiplier C,A 0 Q=1? C,A A + M No No N=0? N M C A Q Comments 1 0 1 1 0 0 0 0 0 1 1 0 1 Initialization 1 0 1 1 0 1 1 0 1 Add A with A: A=A+M 0 1 0 1 1 1 1 0 Shift right C, A, Q 0 4 3 2 11 1 0 1 1 1 1 0 1 = ? *
  • 12. Start Yes Shift right C,A,Q C,A 0 N N-1 Yes End M Multiplicand Q Multiplier C,A 0 Q=1? C,A A + M No No N=0? N M C A Q Comments 1 0 1 1 0 0 0 0 0 1 1 0 1 Initialization 1 0 1 1 0 1 1 0 1 Add A with A: A=A+M 0 1 0 1 1 1 1 0 Shift right C, A, Q 0 4 3 0 0 1 0 1 1 1 1 0 2 Shift right C, A, Q Discard 12 1 0 1 1 1 1 0 1 = ? *
  • 13. Start Yes Shift right C,A,Q C,A 0 N N-1 Yes End M Multiplicand Q Multiplier C,A 0 Q=1? C,A A + M No No N=0? N M C A Q Comments 1 0 1 1 0 0 0 0 0 1 1 0 1 Initialization 1 0 1 1 0 1 1 0 1 Add A with A: A=A+M 0 1 0 1 1 1 1 0 Shift right C, A, Q 0 4 3 0 0 1 0 1 1 1 1 0 2 1 Shift right C, A, Q 13 1 0 1 1 1 1 0 1 = ? *
  • 14. Start Yes Shift right C,A,Q C,A 0 N N-1 Yes End M Multiplicand Q Multiplier C,A 0 Q=1? C,A A + M No No N=0? N M C A Q Comments 1 0 1 1 0 0 0 0 0 1 1 0 1 Initialization 1 0 1 1 0 1 1 0 1 Add A with A: A=A+M 0 1 0 1 1 1 1 0 Shift right C, A, Q 0 4 3 0 0 1 0 1 1 1 1 0 1 1 0 1 1 1 1 1 Add A with A: A=A+M 2 1 0 0 1 0 1 0 1 1 1 1 0 1 A M Shift right C, A, Q A 0 14 1 0 1 1 1 1 0 1 = ? *
  • 15. Start Yes Shift right C,A,Q C,A 0 N N-1 Yes End M Multiplicand Q Multiplier C,A 0 Q=1? C,A A + M No No N=0? N M C A Q Comments 1 0 1 1 0 0 0 0 0 1 1 0 1 Initialization 1 0 1 1 0 1 1 0 1 Add A with A: A=A+M 0 1 0 1 1 1 1 0 Shift right C, A, Q 0 4 3 0 0 1 0 1 1 1 1 0 1 1 0 1 0 1 1 0 1 1 1 1 1 1 1 1 Add A with A: A=A+M Shift right C, A, Q 2 1 Shift right C, A, Q 0 Discard 0 15 1 0 1 1 1 1 0 1 = ? *
  • 16. Start Yes Shift right C,A,Q C,A 0 N N-1 Yes End M Multiplicand Q Multiplier C,A 0 Q=1? C,A A + M No No N=0? N M C A Q Comments 1 0 1 1 0 0 0 0 0 1 1 0 1 Initialization 1 0 1 1 0 1 1 0 1 Add A with A: A=A+M 0 1 0 1 1 1 1 0 Shift right C, A, Q 0 4 3 0 0 1 0 1 1 1 1 0 1 1 0 1 0 1 1 0 1 1 1 1 1 1 1 1 Add A with A: A=A+M Shift right C, A, Q 2 1 0 16 1 0 1 1 1 1 0 1 = ? *
  • 17. Start Yes Shift right C,A,Q C,A 0 N N-1 Yes End M Multiplicand Q Multiplier C,A 0 Q=1? C,A A + M No No N=0? N M C A Q Comments 1 0 1 1 0 0 0 0 0 1 1 0 1 Initialization 1 0 1 1 0 1 1 0 1 Add A with A: A=A+M 0 1 0 1 1 1 1 0 Shift right C, A, Q 0 4 3 0 0 1 0 1 1 1 1 0 1 1 0 1 0 1 1 0 1 1 1 1 1 1 1 1 Add A with A: A=A+M Shift right C, A, Q 2 1 0 0 0 1 1 1 1 1 1 Add A with A: A=A+M 0 1 1 0 1 0 1 1 1 0 0 0 1 A M A 0 0 17 0
  • 18. Start Yes Shift right C,A,Q C,A 0 N N-1 Yes End M Multiplicand Q Multiplier C,A 0 Q=1? C,A A + M No No N=0? N M C A Q Comments 1 0 1 1 0 0 0 0 0 1 1 0 1 Initialization 1 0 1 1 0 1 1 0 1 Add A with A: A=A+M 0 1 0 1 1 1 1 0 Shift right C, A, Q 0 4 3 0 0 1 0 1 1 1 1 0 1 1 0 1 0 1 1 0 1 1 1 1 1 1 1 1 Add A with A: A=A+M Shift right C, A, Q 2 1 0 0 0 1 1 1 1 1 1 Add A with A: A=A+M 1 0 0 0 1 1 1 1 Shift right C, A, Q 0 Discard 18 0
  • 19. Start Yes Shift right C,A,Q C,A 0 N N-1 Yes End M Multiplicand Q Multiplier C,A 0 Q=1? C,A A + M No No N=0? N M C A Q Comments 1 0 1 1 0 0 0 0 0 1 1 0 1 Initialization 1 0 1 1 0 1 1 0 1 Add A with A: A=A+M 0 1 0 1 1 1 1 0 Shift right C, A, Q 0 4 3 0 0 1 0 1 1 1 1 0 1 1 0 1 0 1 1 0 1 1 1 1 1 1 1 1 Add A with A: A=A+M Shift right C, A, Q 2 1 0 0 0 1 1 1 1 1 1 Add A with A: A=A+M 1 0 0 0 1 1 1 1 Shift right C, A, Q 0 0 1 0 1 1 1 0 1 1 1 0 1 1 1 0 1 1 The Result is : (010001111) ₂ = 143₁₀ 19 * 1 0 1 1 1 1 0 1 = ?
  • 20. Reference  Class lecture sheet https://classroom.google.com/u/1/c/NTQ2OTc1NTQ0MzI3 /m/NTA3NTUwNDg3Mjkx/details 20