1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

caculate the size of cache memory

Discussion in 'Engineering Concepts' started by huda, Jan 22, 2009.

  1. huda

    huda New Member

    Joined:
    Jan 22, 2009
    Messages:
    49
    Likes Received:
    0
    Trophy Points:
    0
    plesae, i need any information relate calculating the size of cache
    direct mapping ,full associative ,and 16-way set associative cache.


    if: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?

    thanks
     
  2. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,285
    Likes Received:
    364
    Trophy Points:
    83
    Can you explain what size you are trying to calculate?
     
  3. huda

    huda New Member

    Joined:
    Jan 22, 2009
    Messages:
    49
    Likes Received:
    0
    Trophy Points:
    0
    i mean , the amount of storage for each one.
    for ex. if I need to caculate for direct mapping :
    no. of blocks in cache * size of word

    im not sure if was a true or not.
    if so, what about set associative and associative?

    thanks
     
  4. xpi0t0s

    xpi0t0s Mentor

    Joined:
    Aug 6, 2004
    Messages:
    3,012
    Likes Received:
    203
    Trophy Points:
    0
    Occupation:
    Senior Support Engineer
    Location:
    England
    I don't know if you can calculate cache size; the size of cache is a memory optimisation technique. A larger cache will give you a higher hit ratio but comes at a higher price, so there is a tradeoff. The availability of die space will be a factor as well, maybe that's why all Core i7 processors have the same amount - I might have expected 965 Extreme to have more cache than the 920, but that's not the case.

    Looking at some of the terminology used I think you should study in detail the following article:
    http://en.wikipedia.org/wiki/CPU_cache
    I've referred you to this before so please make sure you read it this time. Don't assume that just because it's Wikipedia it must be unreliable.
     
  5. huda

    huda New Member

    Joined:
    Jan 22, 2009
    Messages:
    49
    Likes Received:
    0
    Trophy Points:
    0
    I tried to look for your email in your profile,but I didn't find it.
    if possible ,send it, in which I can send two pdf books ,I have it . unfortunately,I haven't pdf of book of morris mano ,but the book of Pattreson isn't less importance than of Morris's book.
    Also, i will send a page of morris's book in which ,he talked about the size of set associative cache that I focused my inquiry in this thread on it. sorry, if it isn't clear because I took a picture of this page by camera where ,i haven't any other facility in my home.

    thanks,
    huda
     

Share This Page