6. Given a nonpipelined processor A that requires 50 units of time to complete a
ID: 3733784 • Letter: 6
Question
6. Given a nonpipelined processor A that requires 50 units of time to complete an instruction and a pipelined processor B that requires the 4 stages as shown in the table below (assume any pipeline overhead has already been added to the stage times, so they add up to more than 50 units of time) to complete an instruction but allows for overlaping execution. Give an equation in the boxes below that details how many units of time Processor A and Processor B require to execute 100 instructions assuming no stalls. (10 points, 5 points each equation) Stage 4 Time Units 12 15 13 13 Proc A Proc B 7. For the following y86 instruction stream, draw the pipeline stage diagram (shows in which cycle each instruction enters a particular stage of the pipeline). Assume the base pipelined processor with all possible forwarding paths and the 5 stage pipeline discussed in class with stages F, D, E, M, WB (5 points) Cycle --> 0 2 4 6 1: mrmovq (%rbp), %rbx 2: addq %rbx, %raxExplanation / Answer
Solution:
The equations are given below:
suppose x number of insturctions are being executed then the time taken will be
for proc A
Time= 50*x
for proc B
time = 15*x
For 100 instructions
the time required for proc A= 50*100= 5000 units of time
the time required for proc B= 15*100= 1500 units of time
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
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.