ASU_eee230_Assignment 6

ASU_eee230_Assignment 6 - Alejandro A. Tinoco Dr. Debra...

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

View Full Document Right Arrow Icon
Alejandro A. Tinoco Dr. Debra Calliss CSE/EEE 230 Fall 2007 Assignment 6 April 1, 2008 1. Consider the code below: add $3, $5, $6 add $5, $5, $1 sub $2, $3, $1 add $4, $5, $2 sub $4, $4, $1 a. Draw the pipeline diagram similar to Figure 6.5 for this code if NO forwarding is done. b. How many clock cycles does this code take without forwarding? - 14 clock cycles
Background image of page 1

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

View Full DocumentRight Arrow Icon
c. Using a drawing similar to Figure 6.5, show the forwarding paths needed to execute the above code. d. How many clock cycles does this code take with forwarding? - 9 clock cycles e. At cycle 5, determine the values of the 4 pipeline registers if each register has an initial value of its number. Do not include the control in your answer. IF/ID ID/EX EX/MEM MEM/WB Sub $4, $4, $1 Op = add $2 = 10 $5= 6 rs = $5 rt = $2 rd = $4 2. Consider the code below: add $2, $3, $1 #1 add $4, $3, $4 #2 sub $3, $2, $1 #3 lw $4, ($6) #4 add $2, $4, $1 #5
Background image of page 2
a. Identify all the data dependencies in the code. Which of these hazards can be resolved by forwarding and which must be resolved by stalling? -
Background image of page 3

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

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

This note was uploaded on 04/06/2009 for the course CSE CSE/EEE230 taught by Professor Debracaliss during the Fall '09 term at ASU.

Page1 / 4

ASU_eee230_Assignment 6 - Alejandro A. Tinoco Dr. Debra...

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

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