Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 174
  • Last Modified:

Cache and Frames Question

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??????
0
jtcy
Asked:
jtcy
  • 4
  • 3
1 Solution
 
CallandorCommented:
I think the way memory works is it is moved a block at a time, not a byte at a time.  This is done for performance reasons because if you are reading memory, you usually get a contiguous block at a time.
0
 
jtcyAuthor Commented:
yes, but isnt 0x0023AF7C a block?
0
 
CallandorCommented:
No, it's an address - the range 0x0023AF60 through 0x0023AF7F is a block (and as you noted, it's a cache block).
0
Meet the Family that is Made for Collaboration

The TeamConnect Family product group as part of the Sennheiser for Business Portfolio comprising high-quality, technically well-conceived meeting solutions for business communication – designed for any meeting room and any meeting situation.

 
jtcyAuthor Commented:
cool. i understand now
thanks.
0
 
CallandorCommented:
Glad I could help.
0
 
jtcyAuthor 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?
0
 
CallandorCommented:
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.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now