Quiz6_sol - Make sure you fill in the instructions in the...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
CDA3101 Quiz 6 Last Name ____________________ Fall 2010 First Name ____________________ 1. Look at the following code. lw $t0, 0($t1) add $t3, $t0, $t2 add $t0, $t1, $t2 sub $t1, $t0, $t3 and $t2, $t0, $t1 a. (6 points) Indicate in the chart below what stage each instruction is in at what cycle, where forwarding occurs ( draw an arrow from where the value is produced to where the value is used ), and where stalls occur . In the chart below, you may have more/less spaces than you need.
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Make sure you fill in the instructions in the first column as they would execute. Instruction CC1 CC2 CC3 CC4 CC5 CC6 CC7 CC8 CC9 CC 10 CC 11 lw $t0, 0($t1) IF ID EX MEM WB add $t3, $t0, $t2 IF ID STALL EX MEM WB add $t0, $t1, $t2 IF STALL ID EX MEM WB sub $t1, $t0, $t3 IF ID EX MEM WB and $t2, $t0, $t1 IF ID EX MEM WB b. Which registers are read in clock cycle 3? $t0, $t2...
View Full Document

This note was uploaded on 01/15/2012 for the course CDA 3101 taught by Professor Small during the Summer '08 term at University of Florida.

Ask a homework question - tutors are online