Cache Access Example (Part 1)

Поделиться
HTML-код
  • Опубликовано: 26 ноя 2024

Комментарии • 81

  • @adelaidee6053
    @adelaidee6053 4 года назад +73

    Thank you so much for this video lol my CS classes have been kicking my ass since coronavirus started

  • @km-sc4kz
    @km-sc4kz 3 года назад +10

    man its so hard to find channels like this where exactly what you're searching for is there. Thanks man!

  • @stepankylberger1971
    @stepankylberger1971 5 лет назад +42

    Thank you so much for this. English is my second language and I have a huge problem understanding indian English, so this is extremely valuable for me

    • @JohnDoe-fw3lw
      @JohnDoe-fw3lw 4 года назад +9

      Indian English lets me forgets standart english as you can see

    • @bohdaniatsenko8428
      @bohdaniatsenko8428 4 года назад +1

      English is my third language, and understanding my Chinese professor was very hard :D
      Great video! I feel like I finally begin to understand this!

    • @SmokeBloody
      @SmokeBloody 4 года назад +2

      I know right. I mean no offence, but it's hard to perceive an Indian accent.

  • @Masterr59
    @Masterr59 6 лет назад +36

    You saved me life with this, thank you.

    • @LuisR357
      @LuisR357 5 лет назад +1

      Also Me! there is no one who have examples of this

  • @selvalooks
    @selvalooks 5 лет назад +1

    wonderful , this would be the last time i would need to look for cache hit and miss info

  • @zainabzwain118
    @zainabzwain118 2 года назад +11

    Finally!!! An amazing explanation, huge thanks 🙏🏼

  • @awatefalmayyas2943
    @awatefalmayyas2943 4 года назад +4

    thank you so much, I have a prototyping final tomorrow and this video helped me a lot

  • @brianduenas5359
    @brianduenas5359 Год назад

    goat no one explains it better and got a final tomorrow wish me luck

  • @sussybakamogus
    @sussybakamogus 4 года назад +2

    thank you so muchhh!!! I have exam in 2hr and this video just saved me.

  • @silverelk13
    @silverelk13 3 года назад +1

    Really appreciate this video, helping me clear up how this works before my final tomorrow, thanks.

  • @clashersparadise
    @clashersparadise 2 года назад

    Exactly what I need for my exam next week, thanks

  • @TheDanchoSuper
    @TheDanchoSuper Год назад

    one of the best explanations

  • @bastien14789
    @bastien14789 6 лет назад +12

    Clear example, thank you a lot. But is there any example with the offset separated in two : block offset and byte offset ? The block offset I think I understand it but I don't see the point to have the byte offset.

    • @matthewwatkins88
      @matthewwatkins88  2 года назад +6

      Very, very delayed in my response, the byte offset just refers to the 4 bytes for a number (assuming a 32 bit number). (If it was a 64 bit (8 byte) system, then there would be 3 bits for this portion.)

  • @hughmungus1572
    @hughmungus1572 5 лет назад

    Literally the only explanation on the internet for this shit

  • @JohnMarkIsaacMadison
    @JohnMarkIsaacMadison 5 лет назад

    Much better than the Udemy video.

  • @ianrapp3373
    @ianrapp3373 7 лет назад +10

    this helps out a lot, thank you

  • @cherrychaeyi
    @cherrychaeyi 4 года назад +1

    perfect example!!!!!!! you saved me thank u!!!!

  • @ronencfix3383
    @ronencfix3383 6 лет назад +10

    thanks for the great explanation!

  • @shikharchaudhary6984
    @shikharchaudhary6984 5 лет назад +1

    Thanks a million for creating this video.

  • @kirtilad7367
    @kirtilad7367 4 года назад +3

    Thanks for the video! (PS. you sound just like Tony Stark/RDJ!)

  • @jennyggf3556
    @jennyggf3556 5 лет назад +3

    FINALLY a great video!

  • @sabitkondakc9147
    @sabitkondakc9147 2 года назад

    Thank you a lot, you cleared the holes in my mind.

  • @cindykim3147
    @cindykim3147 5 лет назад +2

    This is absolutely great, thank you!

  • @hritikpathak455
    @hritikpathak455 5 лет назад +2

    Very nicely explained. Thank you so much.

  • @leeingzhen4152
    @leeingzhen4152 Год назад

    thank you for saving my life

  • @ZainabAlAli94
    @ZainabAlAli94 6 лет назад +5

    Thank you clear and simple

  • @熊育霆
    @熊育霆 2 года назад +2

    So clear and informative, thanks!

  • @hugoirwanto9905
    @hugoirwanto9905 4 года назад +1

    thank you bro this is super helpful for me!

  • @lllll7260
    @lllll7260 2 года назад

    the table of addr,tag,set,offset of the left is memory or cache? The table on the right side is cache right?

  • @crashedbboy
    @crashedbboy 5 лет назад +2

    Thank you, very detailed explanation!

  • @baneous18
    @baneous18 3 года назад +1

    Thank you so much .. it's very useful

  • @TuanAnh-bq2wt
    @TuanAnh-bq2wt 2 года назад

    I don't know why in your example with the same tag we always have the same set ? What will be happen when we have the addresses with the same tag and the different set ?

    • @TuanAnh-bq2wt
      @TuanAnh-bq2wt 2 года назад

      Oh now i understood we must look at the set first before we compare the tags

  • @thomasp3543
    @thomasp3543 Год назад

    great example, thank you!

  • @ismailboumehdi5340
    @ismailboumehdi5340 Год назад

    Very good content!!!!
    Thank you very much!

  • @fariahasan3965
    @fariahasan3965 4 года назад

    thanks a ton.. one question ... what did you mean by 'V ' in the table?

  • @danaemariegarcia751
    @danaemariegarcia751 Год назад

    GOD BLESS YOU FOR THIS!!!💪

  • @tawfiquee
    @tawfiquee 4 года назад

    Man you are a life saver

  • @ChristopherRockhill
    @ChristopherRockhill 2 года назад

    What is the purpose of the offset bits? I’m confused on that point.

    • @matthewwatkins88
      @matthewwatkins88  2 года назад

      The offset bits are the least significant portion of the number. The number as a whole has three portions, the offset, the set, and the tag.

  • @zefanyasoplantila1430
    @zefanyasoplantila1430 3 года назад

    How about the data? Is there any changes? When we change the tag

  • @electricwatches1
    @electricwatches1 6 лет назад +1

    Made it easy to understand, thanks ;)

  • @kotexawa8183
    @kotexawa8183 3 года назад

    So is the valid bit always set to 1 when we're leading data into the cache? When is it set to zero?

    • @michaelle4031
      @michaelle4031 3 года назад +1

      It's always zero at the start. It becomes 1 once referenced

  • @jameswo4794
    @jameswo4794 5 лет назад +2

    beautiful

  • @digitalogic7742
    @digitalogic7742 Год назад

    I have a question. What if the addresses in memory are not all uniform bit size. Each of your addresses in the example are 12 bit. But what if they differ, such as between 12 - 16 bits? Will the process you are using here work on addresses of varying bits? Such as 0x408ed4, 0x10019d94, 408ed8...

    • @matthewwatkins88
      @matthewwatkins88  Год назад

      Assuning you are refering to immediate values (bit positation 15-0 for the immediate values portion) they are all 16 bits. It may only show a smaller number if the higher order bits are all zero. As a further extendion, in MIPS, all addresses are 32 bits (with immediate values of 16 bits). Does that address your question?

    • @digitalogic7742
      @digitalogic7742 Год назад

      @@matthewwatkins88 yes ok thank you very much for your answer!

  • @김규현-s5h
    @김규현-s5h 5 месяцев назад

    Thank you so much!!

  • @ole9799
    @ole9799 3 года назад

    this helps me a lot, thx

  • @CROXoDyLE
    @CROXoDyLE 2 года назад

    can anyone please explain why we initially set the valid bit to 1 or 0. Every video I come across "so we set this bit to 1" with no further reasoning behind it. Otherwise everything was super helpful!

    • @matthewwatkins88
      @matthewwatkins88  2 года назад

      By the nature of the system every bit must have a value, which in our case must be either a zero or a one. Does that help any?

  • @Christian93G
    @Christian93G 3 года назад

    very helpful!!

  • @theuberman7170
    @theuberman7170 3 года назад

    set = line?

  • @AriyaAdinatha
    @AriyaAdinatha 4 года назад

    thank you

  • @carljohnson7342
    @carljohnson7342 6 лет назад +1

    thanks

  • @rehy1989
    @rehy1989 5 лет назад

    Thanks man appreciated

  • @jinjing1857
    @jinjing1857 2 года назад

    Save me from the poor lecture notes but advanced question sheet

  • @esfomeado99
    @esfomeado99 4 года назад

    Muito obrigado !

  • @josephmasinre1840
    @josephmasinre1840 3 года назад

    thanks man, you really helped a nigga out

  • @tarifadib
    @tarifadib 4 года назад

    amazing example. university lecturer is not as good as you

  • @UniPotatoCorn
    @UniPotatoCorn Месяц назад

    מה האלגוריתם אומר?

    • @UniPotatoCorn
      @UniPotatoCorn Месяц назад +1

      חלב בציצי

    • @matthewwatkins88
      @matthewwatkins88  22 дня назад

      Assuming I understand your question correctly, the algorthm, in the first case (IE, the first option, which is what is discused in this video) does a direct-mapped set of operations. The follow-on video after this one then condifers two other options and briefly discusses the trade-offs between the three.

  • @narasimhadeshpande5052
    @narasimhadeshpande5052 4 года назад

    god bless u !!

  • @eddit0r890
    @eddit0r890 Год назад

    👍👍👍👍👍

  • @dpm2213
    @dpm2213 4 года назад +1

    Professor explains concept for 3 hours... *doesn't make sense*
    5 minutes into RUclips video... "This shit is so easy wtf"

    • @dpm2213
      @dpm2213 4 года назад

      using a cache with only 5 blocks really makes it something simple enough you can visualize and understand

  • @han_4706
    @han_4706 3 года назад

    thnx bro (=

  • @luisfernandobenavidesarias482
    @luisfernandobenavidesarias482 4 года назад

    You shouldn't get 5 Bits from an logarithm of Bytes, seems like killing kitten

  • @mitchellchase6667
    @mitchellchase6667 6 лет назад +4

    Poor explanation. You should state if we are using byte addressing, word addressing, or what.

    • @AP-uc7oz
      @AP-uc7oz 2 года назад

      Explanation is fine, get your intellect up

  • @paulancajima
    @paulancajima 6 лет назад

    thanks