HK_3 Solutions CPUMem Managment2010

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

Info icon This 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
Image of page 1

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

View Full Document Right Arrow Icon
Q3-10 Q3-13
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:
Image of page 3

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

View Full Document Right Arrow Icon
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

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern