Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

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. :)

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote