COMPGROUPS.NET | Search | Post Question | Groups | Stream | About | Register

associative ,set associative and direct mapping

• Email
• 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?

```
 0

See related articles to this posting

```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

```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

2 Replies
546 Views

Similar Articles

11/30/2013 2:34:50 AM
page loaded in 738037 ms. (1)