associative ,set associative and direct mapping

  • Follow


hi,
plesae, i need any information relate calculating the size of cache
direct mapping ,full associative ,and 16-way set associative cache.

main memory=8k blocks
cache= 512 block
block size=8 word
the size of word=16 bit

i know , the size will be different by depending on the way, but how?

please, need help.
thanks in advance
0
Reply huda 1/21/2009 5:09:19 PM

huda <halmamory@yahoo.com> writes:

> hi,
> plesae, i need any information relate calculating the size of cache
> direct mapping ,full associative ,and 16-way set associative cache.
>
> main memory=8k blocks
> cache= 512 block
> block size=8 word
> the size of word=16 bit
>
> i know , the size will be different by depending on the way, but how?

So...  think hard about exactly what set-associative means.  Once
you've got that, the arithmetic is trivial.
0
Reply Joe 1/21/2009 6:53:09 PM


On 21 =ED=E4=C7=ED=D1, 21:53, Joe Pfeiffer <pfeif...@cs.nmsu.edu> wrote:
> huda <halmam...@yahoo.com> writes:
> > hi,
> > plesae, i need any information relate calculating the size of cache
> > direct mapping ,full associative ,and 16-way set associative cache.
>
> > main memory=3D8k blocks
> > cache=3D 512 block
> > block size=3D8 word
> > the size of word=3D16 bit
>
> > i know , the size will be different by depending on the way, but how?
>
> So... =A0think hard about exactly what set-associative means. =A0Once
> you've got that, the arithmetic is trivial.

it is one of three mapping ways between main memory and cache.
if there are two blocks in one set, then we say 2-way associative
2 meaning no. of blocks in one set.
regarding my ex. there are 16 blocks in one set.
i hope you can help me
0
Reply huda 1/21/2009 7:52:17 PM

2 Replies
430 Views

(page loaded in 0.048 seconds)

Similiar Articles:













7/22/2012 7:07:34 PM


Reply: