Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

Homework 4 Solutions - Computer Architecture and Design | ELEC 5200, Assignments of Computer Architecture and Organization

Material Type: Assignment; Professor: Agrawal; Class: COMPUTER ARCHITECTURE AND DESIGN; Subject: Electrical and Computer En; University: Auburn University - Main Campus; Term: Fall 2006;

Typology: Assignments

Pre 2010

Uploaded on 08/19/2009

koofers-user-68q
koofers-user-68q 🇺🇸

10 documents

1 / 4

Toggle sidebar

Related documents


Partial preview of the text

Download Homework 4 Solutions - Computer Architecture and Design | ELEC 5200 and more Assignments Computer Architecture and Organization in PDF only on Docsity! ELEC 5200-002/6200-002 Computer Architecture and Design Fall 2006 Homework 4 Solutions Assigned 9/25/06, due 10/2/06 Problem 1: Multiply 85ten by –16ten using the Booth multiplication algorithm and 8-bit two’s complement representation. Use 16 bits for the product. Answer: Booth multiplication: 0 1 0 1 0 1 0 1 = 85 1 1 1 1 0 0 0 0 (0) = –16 bit 1 of multiplier, pair 00 → no action bit 2 of multiplier, pair 00 → no action bit 3 of multiplier, pair 00 → no action bit 4 of multiplier, pair 00 → no action 1 1 1 1 1 0 1 0 1 0 1 1 0 0 0 0 bit 5 of multiplier, pair 10 → partial product = –85 bit 6 of multiplier, pair 11 → no action bit 7 of multiplier, pair 11 → no action bit 8 of multiplier, pair 11 → no action 1 1 1 1 1 0 1 0 1 0 1 1 0 0 0 0 16-bit product in two’s complement = –1360 Problem 2: The following flowchart gives a restoring algorithm for binary division of 32-bit positive integers. Modify the flowchart for non-restoring division. Initialize: Remainder, $R(33bits) = 0 Quotient, $Q(32bits) = dividend $M(33bits) = divisor Count = 0 Count = Count + 1 Count≤3 2 $Q = quotient $R = remainder $R = 2$R + MSB($Q) $Q = 2$Q $R = $R + $M MSB($R)= 1 $Q = $Q + 1 $R = $R – $M Y N Y N Left shift Restore Subtract divisor
Docsity logo



Copyright © 2024 Ladybird Srl - Via Leonardo da Vinci 16, 10126, Torino, Italy - VAT 10816460017 - All rights reserved