Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Q1. Basic pipelining Consider the following MIPS code 11: LUI R1, 0x1234 I2: ORI R1, R1, 0x0010 I3: LW I4: LW I5: SUB R4, R3,
Q1. Basic pipelining Consider the following MIPS code 11: LUI R1, 0x1234 I2: ORI R1, R1, 0x0010 I3: LW I4: LW I5: SUB R4, R3, R2 I6: BGEZ R4, +4 17: SUB R4, R2, R3 I8: SW ; load upper 2 bytes of R1 R2, 0 (R1) R3, 4 (R1) ;load A ; load B ;compute B-A ;compute A -B ; store the abs value R4, 8 (R1) The program above does the following . Reads A from memory starting at address 0x 12340010 . Reads B from memory starting at address 0x12340014 . Writes the absolute value of A B to memory starting at address 0x12340018 Suppose that (1) A had 3 and B had 5 before fetching the instruction I1 and that (2) we have the simple MIPS 5-stage pipeline from Appendix C in the book (and every instruction must go through all 5 stages)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started