14.2.7 Direct-mapped Caches

แชร์
ฝัง
  • เผยแพร่เมื่อ 11 ก.ค. 2019
  • MIT 6.004 Computation Structures, Spring 2017
    Instructor: Chris Terman
    View the complete course: ocw.mit.edu/6-004S17
    TH-cam Playlist: • MIT 6.004 Computation ...
    14.2.7 Direct-mapped Caches
    License: Creative Commons BY-NC-SA
    More information at ocw.mit.edu/terms
    More courses at ocw.mit.edu

ความคิดเห็น • 11

  • @chris7056
    @chris7056 3 ปีที่แล้ว +5

    First Cacheing video that really hit home and made sense. Thank you MIT from UCSD.

    • @tharalpius778
      @tharalpius778 8 หลายเดือนก่อน

      there is an Indian guy who explains better

    • @integralcialbay4633
      @integralcialbay4633 2 หลายเดือนก่อน

      @@tharalpius778 Who?

  • @simonpedersen3734
    @simonpedersen3734 ปีที่แล้ว

    thanks

  • @Saens406
    @Saens406 3 ปีที่แล้ว +9

    still don't understand offset

    • @ahmedabouelnasr4673
      @ahmedabouelnasr4673 3 ปีที่แล้ว +4

      I think if the structure of the cache can hold more than 1 word of data to each tag, we use the offset to fetch the right word ... correct me if I am wrong

    • @Saens406
      @Saens406 3 ปีที่แล้ว

      @@ahmedabouelnasr4673 such that you can put several words on a single data cache line even though they are not used for the same variable?

    • @ahmedabouelnasr4673
      @ahmedabouelnasr4673 3 ปีที่แล้ว +1

      @@Saens406 Such large block size(more than one word) serves the principle of spatial locality which assumes that data next to each other are more likely to get fetched sooner ... I found this, I hope it helps th-cam.com/video/YOABS3tTHVc/w-d-xo.html

    • @aviralsaxena5153
      @aviralsaxena5153 2 ปีที่แล้ว +1

      @@Saens406 The point of a cache is to take advantage of both temporal and spatial locality. When you store into a cache, you're grabbing a bunch of bytes at once, the target byte is included in the block. Depending on what type of addressability you support, most cases it's byte addressability, you need to be able to index that block of bytes to grab the right one, that's where the offset comes in.

    • @erikumble
      @erikumble 2 ปีที่แล้ว

      I agree with what the others have said. Just for clarification, the reason we are not using the offset is entirely a design decision for the Beta specification, since any piece of memory is the full 32 bit word. If we had allowed accessing just 8 or 16 bits, then we would need to use the offset to specify which ones.

  • @notconnor1249
    @notconnor1249 8 หลายเดือนก่อน +2

    DEADBEEF