We help IT Professionals succeed at work.

Check out our new AWS podcast with Certified Expert, Phil Phillips! Listen to "How to Execute a Seamless AWS Migration" on EE or on your favorite podcast platform. Listen Now

x

Cache and Frames Question

jtcy
jtcy asked
on
Medium Priority
188 Views
Last Modified: 2010-04-26
Can someone explain to me the following:

I found this notes on the web:

suppose we access the memory at address 0x0023AF7C. The looking at that in binary, that is 000000000010001110101111011111002. If we separate these bits into the lengths of the fields we have determined with dashes between each field, that is more easily read as 00000000001000111010111-1011-11100. So, our index is 10112=1110. We look at index 11. Is there anything in there yet? We see there is not. Therefore, we load the data contained at memory addresses 0x0023AF60 through 0x0023AF7F into the 32 byte line of the cache block with index 11.

okay, what i don understand is..., this is obviousl a miss, so we need to get the data from the main memory, but why it says here that we load the data at memory 0x0023AF60 through 0x0023AF7F into....??? Shoudnt we just load it from the address 0x0023AF7C??? Where are those 0x023AF60 and 0x0023AF7F came from??????
Comment
Watch Question

CERTIFIED EXPERT
Top Expert 2012
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION

Author

Commented:
yes, but isnt 0x0023AF7C a block?
CERTIFIED EXPERT
Top Expert 2012

Commented:
No, it's an address - the range 0x0023AF60 through 0x0023AF7F is a block (and as you noted, it's a cache block).

Author

Commented:
cool. i understand now
thanks.
CERTIFIED EXPERT
Top Expert 2012

Commented:
Glad I could help.

Author

Commented:
Can i just ask one more, cache doesnt store the real data right? The data it stores is actually the memory address of the real data, am i right?
CERTIFIED EXPERT
Top Expert 2012

Commented:
No, cache would be of no use if it didn't store real data.  The idea is to save reading it from main memory, which is slower than cache memory.
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.