A program consists of four major types of instructions. The instructions mix…
2021
A program consists of four major types of instructions. The instructions mix and the CPI for each instruction type are given in the following table. If the clock frequency of the processor is 400 MHz, what is the average CPI of the processor?

- A.
3·75
- B.
2·24
- C.
1·87
- D.
1·54
- E.
Question not attempted
Attempted by 221 students.
Show answer & explanation
Correct answer: B
To find the average CPI, use the weighted average formula based on instruction mix and CPI for each type.
Average CPI = Σ (CPI_i × Mix_i)
Step 1: Multiply CPI by mix for each instruction type:
Arithmetic and Logic: 1 × 0.60 = 0.60
Load/Store with cache hit: 2 × 0.18 = 0.36
Branch: 4 × 0.12 = 0.48
Memory reference with cache miss: 8 × 0.10 = 0.80
Step 2: Sum the results: 0.60 + 0.36 + 0.48 + 0.80 = 2.24
The average CPI of the processor is 2.24.
हिन्दी उत्तर:
औसत CPI निकालने के लिए, प्रत्येक निर्देश प्रकार के लिए निर्देश मिक्स और CPI के आधार पर भारित औसत सूत्र का उपयोग करें।
औसत CPI = Σ (CPI_i × Mix_i)
चरण 1: प्रत्येक निर्देश प्रकार के लिए CPI को मिक्स से गुणा करें:
अंकगणित और तार्किक: 1 × 0.60 = 0.60
लोड/स्टोर विथ कैश हिट: 2 × 0.18 = 0.36
ब्रांच: 4 × 0.12 = 0.48
मेमोरी रेफरेंस विथ कैश मिस: 8 × 0.10 = 0.80
चरण 2: परिणामों को जोड़ें: 0.60 + 0.36 + 0.48 + 0.80 = 2.24
प्रोसेसर का औसत CPI 2.24 है।