{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Homework4 f02

# Homework4 f02 - LSU EE 4720 Homework 4 Solution Due 27...

This preview shows pages 1–2. Sign up to view the full content.

Solution Consider the solution to Spring 2002 Homework 4, shown on the next page. (The solution was updated 19 November 2002, the PED is shown in dynamic order instead of the nearly-impossible-to-read static order.) ( a ) Show the contents of the reorder buffer in cycle 12. For each entry show the values of the fields from the illustration below, for the PC show the instruction ( ldc1 , mul.d , etc.). (The fields are ST, dst, dstPR, and incumb.) If a field value cannot be determined from the solution leave it blank, that will include fields related to registers \$2 and \$3 . Note: A solution not showing instructions 1-4 would also be correct. Solution "PC" ST dst dstPR incumb 1 sdc1 0(\$1), f0 2 addi \$1, \$1, 8 C \$1 95 98 3 bne \$2, \$0 LOOP C 4 sub \$2, \$1, \$3 C 5 ldc1 f0, 0(\$1) C f0 94 96 6 mul.d f0, f0, f2 f0 93 94 7 sdc1 0(\$1), f0 8 addi \$1, \$1, 8 C \$1 92 95 9 bne \$2, \$0 LOOP C 10 sub \$2, \$1, \$3 C 11 ldc1 f0, 0(\$1) C f0 91 93 12 mul.d f0, f0, f2 f0 90 91 13 sdc1 0(\$1), f0 14 addi \$1, \$1, 8 C \$1 89 92 15 bne \$2, \$0 LOOP 16 sub \$2, \$1, \$3 C 17 ldc1 f0, 0(\$1) f0 18 mul.d f0, f0, f2 f0 ( b ) For the solution to the part above, number each instruction. (1, 2, 3, etc.) Show the contents of the

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern