2 way set associative cache mapping: Hit and Miss

แชร์
ฝัง
  • เผยแพร่เมื่อ 30 ก.ย. 2024
  • This video is on set associative cache mapping. 2 way set associative cache mapping has been explained by using some referenced addresses. Then hit and miss of different address has been find. By which hit and miss ratio can be calculated. Firstly, offset bit, set bit, and tag bit has been calculated. All the addresses are converted from hex to binary. after that hit and miss is find. Lease recently used (LRU) cache is also explained and found.
    Consider a 2-way set associative cache with total capacity 128 Byte, 12 bit address, and 32 Byte blocks. Initially cache is empty. Find the map addresses 2-way set associative cache and indicate whether hit or miss for the following memory referenced addresses?

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

  • @ti6252
    @ti6252 2 ปีที่แล้ว +10

    my final is in 4 hours
    this really helped me thank you

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

      Glad you like it. please subscribe and share.

  • @samuelchibinjimwanza443
    @samuelchibinjimwanza443 3 หลายเดือนก่อน +1

    Thank.you

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

    Didn’t understand at all

  • @apollon-peterkallipolitis632
    @apollon-peterkallipolitis632 ปีที่แล้ว

    I saw that in this example we always changed the tag of the way1. I wanted to ask whether that depends on the LRU number or if it doesn't. Do we always change the way1 tag or the tag of the wayX with X being equal to the LRU.

  • @LamNguyen-jp5vh
    @LamNguyen-jp5vh 2 ปีที่แล้ว +1

    Thank you so much! Subcribed!!

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

    May l ask why it needs 2nd comparison?? if l just visit 1 times those address, is it only need 1st col? thanks!

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

      In cache organizations, the 'SET' address identifies a set of '2' cache lines, the cache is said to be 2-way set associative. If the cache organization is such that the 'SET' address identifies a set of '4' cache lines, the cache is said to be 4-way set associative. So you need to map for each cache line. Sometimes in questions it is asked find hit ratio for second cache.

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

    thanks, good work