HK_3 Solutions CPUMem Managment2010

HK_3 Solutions CPUMem Managment2010 - Set Block 0 Tag Data...

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

View Full Document Right Arrow Icon
Eceg721 Embedded Systems 3/8/2010 EVoudouri HK# 3 Solutions Chapter 3 Q 3-4 . We assume that arguments, return values, and return addresses are stored on the stack. We don’t use the ARM standard procedure call linkage here for simplicity,since that won’t be introduced until Chapter 5. peek: LDR r0, [r13] ;location on the stack for the argument LDR r0,[r0] STR r0, [r13, -4] ; push back onto stack at return val location MOV r15, r14 poke: LDR r0, [r13] LDR r1, [r13, -4] STR r0, [r1] ;assumes that location to and date are on the stack MOV r15, r14 Q3-5
Background image of page 1

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

View Full DocumentRight Arrow Icon
Q3-10 Q3-13
Background image of page 2
Q3-22 .9(4) + .1(.97)(15) + .1(.03)(80) = 5.3 ns Q3 23. Address Data 000 0101 001 1111 010 0000 011 0110 100 1000 101 0001 110 1010 111 0100 Memory Access: 001, 010, 011, 100, 101, 111 After 001 access:
Background image of page 3

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

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

Unformatted text preview: Set Block 0 Tag Data Block 1Tag Data 00 ‐ ‐ ‐ ‐ 01 0 1111 ‐ ‐ 10 ‐ ‐ ‐ ‐ 11 ‐ ‐ ‐ ‐ After 010 access: Set Block 0 Tag Data Block 1 Tag Data 00 ‐ ‐ ‐ ‐ 01 0 1111 ‐ ‐ 10 0 0000 ‐ ‐ 11 ‐ ‐ ‐ ‐ After 011 access: Set Block 0 Tag Data Block 1 Tag Data 00 ‐ ‐ ‐ ‐ 01 0 1111 ‐ ‐ 10 0 0000 ‐ ‐ 11 0 0110 ‐ ‐ After 100 access: Set Block 0 Tag Data Block 1 Tag Data 00 1 1000 ‐ ‐ 01 0 1111 ‐ ‐ 10 0 0000 ‐ ‐ 11 0 0110 ‐ ‐ After 101 access: Set Block 0 Tag Data Block 1 Tag Data 00 1 1000 ‐ ‐ 01 0 1111 1 0001 10 0 0000 ‐ ‐ 11 0 0110 ‐ ‐ After 111 access: Set Block 0 Tag Data Block 1 Tag Data 00 1 1000 ‐ ‐ 01 0 1111 1 0001 10 0 0000 ‐ ‐ 11 0 0110 1 0100 Q3-26...
View Full Document

This note was uploaded on 03/17/2010 for the course ECG 721 taught by Professor M during the Spring '10 term at Manhattan College.

Page1 / 4

HK_3 Solutions CPUMem Managment2010 - Set Block 0 Tag Data...

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