Results 1 to 1 of 1

Thread: Direct mapped cache... -HELP

  1. #1 Direct mapped cache... -HELP 
    New Member
    Join Date
    Nov 2008
    Here is a string of hex address references given as byte addresses:
    3, 1, 2, 1A, A, 1B, 17, 14, 3, 9, 11, 23, 3A, 5, 19, 1, 9

    a. Assuming a direct mapped cache with 16 one-byte blocks that is initially empty, label each reference in the list as a hit or miss and show the final contents of the cache tag array. Computer the hit rate for this example.

    b. Show the hits and misses and final cache contents for a direct mapped cache with four-byte blocks (lines) and a *total* size of 16 bytes. Computer the hit rate for this example.
    As far as I understand for part (a) there are 16 cache lines with one block in each line. I'm not sure exactly how to go about doing this. Do I just take one of the bytes from the two byte hex numbers and map that to one of the cache lines? Any help for either (a) and/or (b) would be very much appreciated! =]

    Reply With Quote  


Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts