hw3_rv2 - EE108B Winter 2003-2004 Handout#21 Homework#3 Due...

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

View Full Document Right Arrow Icon
EE108B Winter 2003-2004 Handout #21 Homework #3 Due Thu. Feb 19, 5 PM in Gates 408 1. List two advantages and two disadvantages of fixed size instructions. 2. Identify all of the data dependencies in the following code (accompanied by a diagram). Which dependencies are data hazards that will be resolved via forwarding? add $2, $5, $4 add $4, $2, $5 sw $5, 100($2) add $3, $2, $4 3. Consider executing the following code on the pipelined datapath of Figure 6.46 on page 492: add $5, $6, $7 lw $6, 100($7) sub $7, $6, $8 How many cycles will it take to execute this code? Draw a diagram like that of Figure 6.44 on page 489 that illustrates the dependencies that need to be resolved, and provide another diagram like that of Figure 6.45 on page 491 that illustrates how the code will actually be executed (incorporating any stalls or forwarding) so as to resolve the identified problems. 4. Suppose we have memory that has access times twice as slow as the delays of register accesses or ALU operations. Consider the idea of extending the IF and
Background image of page 1

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

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 11/18/2011 for the course EE 108A taught by Professor Dally during the Winter '04 term at Stanford.

Page1 / 3

hw3_rv2 - EE108B Winter 2003-2004 Handout#21 Homework#3 Due...

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

View Full Document Right Arrow Icon
Ask a homework question - tutors are online