InClassActivity11-sol

# InClassActivity11-sol - |IF/ID ID/EX add \$6 \$8 \$2 | 8,2 8,2...

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

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.

Unformatted text preview: |IF/ID ID/EX add \$6, \$8, \$2 | 8,2 8,2 | IF/ID ID/EX add \$4, \$5, \$6 | 5,6 5,6 | IF/ID ID/EX add \$7, \$2, \$1 | 2,1 2,1 10/22/07 9:16 PM SOLUTION In-Class Activity #11 Activity 11.11 Forwarding (50 points) Consider the execution of the following instructions on the pipelined MIPS. Fill in the table to determine the appropriate actions of the Forwarding Unit. There are useful formulas for the Forward A and B control signals on pages 407 and 410. The register addresses appear in ID/EX two cycles after the instruction is fetched (in the third cyclea), in EX/MEM on the following cycle, and in MEM/WB in the fifth cycle. The blanks printed to the right of the instructions may be useful to keep track of that happens in the pipeline. It helps to show the registers read or written in the second and fifth pipeline stages. CC1 CC2 CC3 CC4 |CC5 CC6 CC7 CC8 CC9 CC10 PIPELINE REGISTERS: IF/ID ID/EX EX/MEM |MEM/WB add \$7, \$3, \$2 3,2 3,2 7 | 7 IF/ID ID/EX |EX/MEM MEM/WB add \$8, \$2, \$1 2,1 2,1 | 8 8 IF/ID |ID/EX EX/MEM MEM/WB add \$9, \$6, \$7 6,7 | 6,7 9 9 EX/MEM MEM/WB 6 6 EX/MEM MEM/WB 4 4 | IF/ID ID/EX EX/MEM MEM/WB add \$3, \$2, \$1...
View Full Document

{[ snackBarMessage ]}

### Page1 / 2

InClassActivity11-sol - |IF/ID ID/EX add \$6 \$8 \$2 | 8,2 8,2...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online