Answered step by step
Verified Expert Solution
Question
1 Approved Answer
We are studying two implementations of a machine, one with and one without special floating-point hardware. Consider a program P with the following mix of
We are studying two implementations of a machine, one with and one without special floating-point hardware. Consider a program P with the following mix of operations:
20. We are studying two implementations of a machine, one with and one without special floating-point hardware. Consider a program P with the following mix of operations Floating-point multiply Floating-point add Floating-point divide Integer instructions I 5% 5% 70% Machine MFP (Machine with Floating-point) has floating-point hardware and can therefore implement the floating-point operations directly. It requires the following number of clock cycles for each instruction class Floating point Multiply Floating point Add Floating point Divide Integer instructions 6 cycles 4 cycles 20 cycles 2 cycles Machine MNFP (Machine with No Floating Point) has no floating-point hardware and so must emulate the floating-point operations using integer instructions. Each integer instruction on MNFP takes 2 clock cycles (so its CPI is 2). The number of integer instructions needed to implement each of the floating-point operations on MNFP is as follows Floating point multiply Floating point add Floating point divide 30 integer instructions 20 integer instructions 50 integer instructions Both machines have a clock rate of 1000 MHz (a) Find the MIPS rating for both MFP and MNFP (b) If the MFP machine needs 300 million instructions for the program P, how many integer instructions are needed on the MNFP machine for the same program P? (c) What is the execution time in seconds for program P on MFP and MNFP, assuming the instruction count from part (b)Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started