ASU_eee230_assgnment7

ASU_eee230_assgnment7 - Alejandro A Tinoco Dr Debra Calliss...

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

View Full Document Right Arrow Icon
Alejandro A. Tinoco Dr. Debra Calliss CSE/EEE 230 Spring 2008; Assignment 7 April 17, 2008 1. A direct mapped cache holds 8 blocks where each block is 2 words (8 bytes). An address is 32 bits. Assume that all valid bits are 0 at the beginning of the execution. The following program is stored in memory at location 10000028 . lui $t0, 0x2000 lw $t1, ($t0) lw $t1, 8($t0) addi $t1, $t1, 5 sw $t1, 12($t0) sw $t0, 8($t0) lw $t1, 48($t0) add $t1, $t1, $0 The following 4 words are stored starting at location 20000000 00000001 00000002 00000003 00000004 The following 4 words are stored starting at location 20000030 00000005 00000006 00000007 00000008 a. The PC starts at 10000028. For each instruction determine a. If there is a hit or miss on the instruction fetch. b. If there is a hit or miss on the data read Instruction Data 1000 0028 lui / miss 000 miss 20000000 00000001 1000 002C lw / hit 001 hit 20000004 00000002 1000 0030 lw / miss 010 miss 20000008 00000003 1000 0034 addi / hit 011 hit 2000000C 00000004 1000 0038 sw / miss 100 hit 1000 003C sw / hit 101 hit
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 04/06/2009 for the course CSE CSE/EEE230 taught by Professor Debracaliss during the Fall '09 term at ASU.

Page1 / 5

ASU_eee230_assgnment7 - Alejandro A Tinoco Dr Debra Calliss...

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