Cache question
CASTalk.com Forum Index CASTalk.com
Discussion of DSP, FPGA, storage and embedded system.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web castalk.com
Cache question

 
Post new topic   Reply to topic    CASTalk.com Forum Index -> Storage System
Author Message
Guest






Posted: Sat Dec 11, 2004 6:17 am    Post subject: Cache question Reply with quote

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?
Back to top
Maxim S. Shatskih
Guest





Posted: Sat Dec 11, 2004 3:21 pm    Post subject: Re: Cache question Reply with quote

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...
Quote:
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?
Back to top
 
Post new topic   Reply to topic    CASTalk.com Forum Index -> Storage System All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




VoIP Electronics Powered by phpBB