Consider the following set of MIPS instructions: LW $s1, 10($s2) ADD $s3, $s1, $t4 SUB $s4, $s1, $t4 OR $s5, $s3, $s1 LW

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: 899604
Joined: Mon Aug 02, 2021 8:13 am

Consider the following set of MIPS instructions: LW $s1, 10($s2) ADD $s3, $s1, $t4 SUB $s4, $s1, $t4 OR $s5, $s3, $s1 LW

Post by answerhappygod »

Consider the following set of MIPS instructions:
LW $s1, 10($s2)
ADD $s3, $s1, $t4
SUB $s4, $s1, $t4
OR $s5, $s3, $s1
LW $s0, 40($s2)
AND $s1, $s5, $s4
SLL $s3, $s0, s4
SW $s1, 50($s2)
Assuming a 5 stage multi-cycle processor design, provide the
following:
1) Identify the data dependencies and data hazards
involved in this code.
2) A pipeline diagram of the set of instructions with no
forwarding
3) A pipeline diagram of the set of instructions assuming
forwarding
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply