Hi, I am trying to solve a problem where two processors are give. Processor X is pipelined and Y is not pipelined.
The following data are given for both processors:
1. clock frequency, 2. CPI for the ALU instructions, 3. CPI for control instruction, 4. CPI for FP instructions, 5. CPI for memory instructions
I have to find which processor will have better performance while executing a program where : 30% ALU instructions, 20% control instructions, 50% memory instructions.
This is my approach: At first for the non pipelined processor, I will first find out out the avg CPI. As an example if for processor Y,
1. clock frequency- 10GhZ,
2. CPI for the ALU instructions-3,
3. CPI for control instruction-4,
4. CPI for FP instructions-12,
5. CPI for memory instructions-3
then, avg CPI= .3*3 + .2*4 + .5*3 = .9+.8+1.5= 3.2; so the time for execution is: 3.2/10GHz = ... Now my confusion is, what procedure should I follow for the PIPELINED processor X? There is no information about the stages of pipeline.
Should I follow the same way- find the avg. cpi and then divide it with the clk frequency to find out the execution time? Please give me some idea or advice.