Question 3 (10 points) A program of 1 million instructions is run using a single
ID: 3735595 • Letter: Q
Question
Question 3 (10 points)
A program of 1 million instructions is run using a single cycle processor. The cycle time (Tc) = 925 ps. (ps = 10-12). Calculate the execution time?
Mention one advantage and one disadvantage of the multicycle processor?
Mention one advantage and one disadvantage of the single cycle processor?
How many cycles are required to run the following program on the multicycle MIPS processor?
addi $s0, $0, 5
Beq $s0, $0, done
addi $s0, $s0, -1
j while
How many cycles are required to run the same program on a single cycle MIPS processor?
Explanation / Answer
Solution:
A program of 1 million instructions is run using a single cycle processor. The cycle time (Tc) = 925 ps. (ps = 10-12). Calculate the execution time?
Execution time= Number of instructions * Cycle time * CPI = 10^6 * 925 * 10^(-12) * 1
= 0.000925 ps, since it is single cycle processor that is why the CPI = 1.
Mention one advantage and one disadvantage of the multicycle processor?
Advantage:
Disadvantage:
Mention one advantage and one disadvantage of the single cycle processor?
Advantage:
Disadvantage:
How many cycles are required to run the following program on the multicycle MIPS processor?
addi $s0, $0, 5
Beq $s0, $0, done
addi $s0, $s0, -1
j while
4 + (3 + 4 + 3) X 5 + 3 = 57 clock cycles
How many cycles are required to run the same program on a single cycle MIPS processor?
78 cycles.
I hope this helps if you find any problem. Please comment below. Don't forget to give a thumbs up if you liked it. :)
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.