Question: Complete Given C Program For MIPS, CPI, CPU Plase view and complete the below given C program . Please make sure to use my below

Complete Given C Program For MIPS, CPI, CPU

Plase view and complete the below given C program. Please make sure to use my below skeleton and fill in where my comments are. Also note this is a C program. The purpose of the program is to calculate the AVG CPI, CPU TIme and MIPS for se of instructions and frequency of the machine.

---------------------------------------------------------------------------------

#include

#include

/* declare global var's */

/********************************************************************/

void EnterParams()

{

/* declare local var's */

/* Prompt for number of instruction classes and frequency of machine */

/* for each instruction class, prompt for CPI and instruction count */

/* update total number of instructions and cycles */

}

/********************************************************************/

void CalclAvgCPI()

{

/* declare local var's, calculate and print output average cpi */

}

/********************************************************************/

void CalcCPUTime()

{

/* declare local var's, calculate and print output cpu time */

}

/********************************************************************/

void CalcMIPS()

{

/* declare local var's, calculate and print out mips */

}

/********************************************************************/

int main()

{

/* declare local var's */

/* until user quits, loop */

/* print out menu list */

/* prompt for selection & choose appropriate procedure using either a case statement of if-else if-else statements */

}

---------------------------------------------------------------------------------

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!