Cache question
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > WebserverTalk Community > Data Storage > Cache question




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Cache question  
xinocard@hotmail.com


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
12-11-04 01:45 AM

Hi everyone,

I'm trying to do a review problem for an upcoming final in my
architecture class. However, I'm at a loss on how to solve the question
and couldn't find anything relevant in my notes, book, or google. The
question is:

"A computer system has 16MB of MM (main memory) and an 8K set
assocative cache. The cache block size is 16 bytes and the TAG field of
the MM address is 14bit wide. If the same cache were direct mapped then
the MM address will have a 11bit TAG field. Determine the total data
bytes in the cache as well as cache set associativity. "

I seem to be stuck because I don't know if its 2-way or 4-way etc.
Can anyone give me some hints or an explanation?






[ Post a follow-up to this message ]



    Re: Cache question  
Maxim S. Shatskih


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
12-16-04 11:26 PM

Just off-head without thinking too much, can be wrong 

- tag is 14bit wide, and would be 11bit wide if associativity == 1.
- so, 3 bits contribute to associativity
- so, associativity is 8

--
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
maxim@storagecraft.com
http://www.storagecraft.com

<xinocard@hotmail.com> wrote in message
news:1102727877.898307.95710@c13g2000cwb.googlegroups.com...
> Hi everyone,
>
> I'm trying to do a review problem for an upcoming final in my
> architecture class. However, I'm at a loss on how to solve the question
> and couldn't find anything relevant in my notes, book, or google. The
> question is:
>
> "A computer system has 16MB of MM (main memory) and an 8K set
> assocative cache. The cache block size is 16 bytes and the TAG field of
> the MM address is 14bit wide. If the same cache were direct mapped then
> the MM address will have a 11bit TAG field. Determine the total data
> bytes in the cache as well as cache set associativity. "
>
> I seem to be stuck because I don't know if its 2-way or 4-way etc.
> Can anyone give me some hints or an explanation?
>







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 01:02 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register