Consider the 5-stage pipelined processor discussed in the class and the following MIPS code segment for next five questi

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

Consider the 5-stage pipelined processor discussed in the class and the following MIPS code segment for next five questi

Post by answerhappygod »

Consider the 5-stage pipelined processor discussed in the class
and the following MIPS code segment for next five questions.
a. Without forwarding, NOPs are inserted to
ensure correct execution. how many NOPs are needed for this
code segment without forwarding?
b. )
Consider the 5-stage pipelined processor discussed in the class
and the following MIPS code segment for next five questions.
Without forwarding, NOPs are inserted to
ensure correct execution. how many NOPs are needed for this
code segment without forwarding?
c. )
What is the speedup achieved by adding full forwarding to
this pipeline for this code sequence, compared with that had no
forwarding? Assume clock cycle time doesn't change by adding
forwarding.
Select one:
A.
1
B.
1.2
C.
1.5
D.
1.4
E.
5
d.)
With data forwarding, which register(s) is/are being forwarded
in the 4th cycle during the execution of this code?
Select one:
A.
$s3
B.
$s2
C.
$s2 and $s3
D.
$s4
E.
None of the above
e.)
With data forwarding, which of the following statement regarding
the code segment is true?
Select one:
A.
It is possible to change the order
of add and sw instructions, and reduce the
number of cycles required to run the code.
B.
It is possible to change the order
of add and lw instructions, but it doesn't
change the number of cycles required to run the code.
C.
It is possible to change the order
of sub and lw instructions, and reduce the
number of cycles required to run the code.
D.
It is possible to change the order
of or and sw instructions, and reduce the
number of cycles required to run the code.
E.
It is not possible to change the order of any instructions in
this code.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply