HW6

docx

School

Old Dominion University *

*We aren’t endorsed by this school

Course

170

Subject

Computer Science

Date

Dec 6, 2023

Type

docx

Pages

4

Uploaded by DrWorldAardvark31

Report
cs170 HW6 Name:______________________ Q1. Using the refined Multiplication method (See supplemental Multiplication and Division document), solve the following division problems. Assume 4 bit registers, and an 8 bit ALU. Show the steps performed as done in the supplemental hand out. a) 5 x 10 = Multiplicand: Multiplier: Product: Multiplicand Product Initialize Step 1.0 0 th product bit = ___ Step 1.1 Shift right 1 Step 2.0 0 th product bit = ___ Step 2.1 Shift right 1 Step 3.0 0 th product bit = ___ Step 3.1 Shift right 1 Step 4.0 0 th product bit = ___ Step 4.1 Shift right 1 Product: b) 3 x 13 = Multiplicand: Multiplier: Product: Multiplicand Product Notes Initialize Step 1.0 0 th product bit = ___ Step 1.1 Shift right 1 Step 2.0 0 th product bit = ___ Step 2.1 Shift right 1 Step 3.0 0 th product bit = ___ Step 3.1 Shift right 1 Step 4.0 0 th product bit = ___ Step 4.1 Shift right 1 Product:
cs170 HW6 Name:______________________
cs170 HW6 Name:______________________ Q2. Complete the following: a) 20.125 Convert the above floating point number into IEEE 754 Single Precision format. Show your work. Step 1: Put into the format a x 2 b What is the value of b? What is the value of Exponent? What is the value of a? What is the value of Fraction? Step 2 – Convert Fraction into binary Step 3 – What is the sign bit? Answer: Hexadecimal:
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help
cs170 HW6 Name:______________________ b) 419C0000 16 Convert the above Hexademical value IEEE 754 Single Precision number into decimal. Show your work. Convert to binary: What is the sign bit? What are the exponent bits and decimal value? What are the fraction bits and decimal value? What is the value of a? What is the value of b? What is the floating point number?