(BYTE: 8 bits, WORD: 16 bits, DWORD: 32 bits, QWORD: 64 bits) d. Use specific an
ID: 3594407 • Letter: #
Question
(BYTE: 8 bits, WORD: 16 bits, DWORD: 32 bits, QWORD: 64 bits) d. Use specific and concrete examples and diagrams to illustrate and explain each of the following addressing modes, (no definitions): Immediate, Direct, Indirect, Register, Register Indirect, Base-register, Displacement, Relative, Effective Address 2. A benchmark program is run on a 2GHz processor. The executed program consists of 1,000,000 instruction executions, with the following instruction mix and clock cycle count: Cycles per Instruction Instruction Type Integer arithmetic Data transfer Instruction Count 450,000 320,000 150,000 80,000 Floating point Control transfer 2 etermine: a. Effective CPI b. MIPS rate. c. FLOPS rate PageExplanation / Answer
Solution:
2 a)
Let's calculate the effective CPI
We need to consider the amount of utilization every process is occupying to calculate the effective CPI
Effective CPI= (450000/1000000) * 1 + (320000/1000000) * 2 + (150000/1000000) * 2 + (80000/1000000) * 2
= 1.55
b)
MIPS rate=
The clock rate is 2 GHz
to execute 1 instruction it will take= 1/(2 * 10^9)= 0.5 ns
in MIPS= 1/0.5 * 10^-9= 2000 MIPS
c)
FLOPS rate= 2 * 10^9= 2 GFLOPS
Please, please upvote and ask your doubts in the comments.
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.