Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

We decide to use processor A from the previous problem to do oating-point arithmetic. Were considering two approaches. (1) We could write the oating point

image text in transcribed

We decide to use processor A from the previous problem to do oating-point arithmetic. Were considering two approaches. (1) We could write the oating point functionality in software. Each FP operation would require 5 ALU instructions and 2 branches. (2) We could add oating point instructions to hardware. The instruction mix for program Q is the following:

ALU 30% Load 20% Store 15% FP 25% Branch 10%

If the FP instructions are too slow, its faster to do it in software. At how many cycles per FP instruction are the hardware and software approaches the same speed?

What is the overall execution time for Q if you use software to implement oating point? Next, assume that you can implement the oating instructions so they take 5 cycles each. What is the overall execution time for Q for this approach?

What is the CPI for Q for each approach? Remember,the software approach requires that you run multiple actual instructions for each oating point operation; this affects the instruction count.

3. We decide to use processor A from the previous problem to do floating-point arithmetic. We're considering two approaches. (1) We could write the floating point functionality in software. Each FP operation would require 5 ALU instructions and 2 branches. (2) We could add floating point instructions to hardware. The instruction mix for program Q is the following: ALU 30% Load 20% Store 15% FP 25% Branch 10% (a) [1 point] If the FP instructions are too slow, it's faster to do it in software. At how many cycles per FP instruction are the hardware and software approaches the same speed? (b) [2 points] What is the overall execution time for Q if you use software to implement floating point? Next, assume that you can implement the floating instructions so they take 5 cycles cach. What is the overall execution time for Q for this approach? (c) [2 points] What is the CPI for for each approach? Remember, the software approach requires that you run multiple actual instructions for each floating point operation; this affects the instruction count. 3. We decide to use processor A from the previous problem to do floating-point arithmetic. We're considering two approaches. (1) We could write the floating point functionality in software. Each FP operation would require 5 ALU instructions and 2 branches. (2) We could add floating point instructions to hardware. The instruction mix for program Q is the following: ALU 30% Load 20% Store 15% FP 25% Branch 10% (a) [1 point] If the FP instructions are too slow, it's faster to do it in software. At how many cycles per FP instruction are the hardware and software approaches the same speed? (b) [2 points] What is the overall execution time for Q if you use software to implement floating point? Next, assume that you can implement the floating instructions so they take 5 cycles cach. What is the overall execution time for Q for this approach? (c) [2 points] What is the CPI for for each approach? Remember, the software approach requires that you run multiple actual instructions for each floating point operation; this affects the instruction count

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Inference Control In Statistical Databases From Theory To Practice Lncs 2316

Authors: Josep Domingo-Ferrer

2002nd Edition

3540436146, 978-3540436140

More Books

Students also viewed these Databases questions

Question

Describe how to train managers to coach employees. page 404

Answered: 1 week ago

Question

Discuss the steps in the development planning process. page 381

Answered: 1 week ago