On Fri, 4 Feb 2011, biswabandan panda wrote:

initially by using findBlock it gets the block and then invalidated all the
blocks, my point is when a cpu requests, it will check the tag and valid
bits for hit else its a miss. yeah it's not possible in set associative
caches but what about direct mapped?

On Fri, Feb 4, 2011 at 8:49 PM, Nilay Vaish <[email protected]> wrote:

On Fri, 4 Feb 2011, biswabandan panda wrote:

 hey thanks,that i know  but the problem is how to find the block within
the
set, because all the codes are written in such a way that it takes care of
hits only

On Fri, Feb 4, 2011 at 8:41 PM, Nilay Vaish <[email protected]> wrote:

 On Fri, 4 Feb 2011, biswabandan panda wrote:
Again, how can a cache miss have a block with in a set?



I think, I don't understand what you are trying to do. Anyways, in a direct mapped cache, since there is only one block per set, you can always add a function that returns you that one block.

--
Nilay
_______________________________________________
m5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/m5-users

Reply via email to