Hacker News new | ask | show | jobs
by opencl 1323 days ago
The direct mapped cache graph is just showing that each cache line is mapped to multiple addresses.

So in that direct mapped example blocks 0, 64, and 256 are all mapped to cache line 0, and you can only have one of them in cache at any given moment. If block 0 is in cache and block 256 gets accessed, block 0 will be evicted from cache because block 256 will replace it in cache line 0.

1 comments

I see. I was interpreting the line as “is stored in the cache from” when it really means “can be stored in the cache at”. Using directed arrows might help some. Thanks!