PREV INDEX NEXT

Author: Stan Eisenstat
Subject: Re: [Cs323] What is offset
Date: Friday, 09 Oct 2020, 10:27:07


    > Message Posted By: Unknown
    >
    > Hi, could you explain what we store in the offset, and how do we use the
    > information stored in the offset bits of the memory blocks.

Let the block size be B = 2^b.  Each memory address can
be written be written as (block#, offset), where offset
is the rightmost b bits and block# is the higher-order
bits.

offset specifies which bytes within the block are being
accessed and thus which bytes within the cache line are.
That is, it is a within-block address, not something that
is stored.

--Stan-
PREV INDEX NEXT