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
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