Cache Access Example (Part 1)

Поділитися
Вставка
  • Опубліковано 3 лис 2024

КОМЕНТАРІ • 80

  • @adelaidee6053
    @adelaidee6053 4 роки тому +72

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

  • @km-sc4kz
    @km-sc4kz 3 роки тому +9

    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 🙏🏼

  • @brianduenas5359
    @brianduenas5359 Рік тому

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

  • @awatefalmayyas2943
    @awatefalmayyas2943 4 роки тому +4

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

  • @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 роки тому +5

      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.)

  • @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.

  • @TheDanchoSuper
    @TheDanchoSuper 11 місяців тому

    one of the best explanations

  • @hughmungus1572
    @hughmungus1572 5 років тому

    Literally the only explanation on the internet for this shit

  • @clashersparadise
    @clashersparadise 2 роки тому

    Exactly what I need for my exam next week, thanks

  • @leeingzhen4152
    @leeingzhen4152 Рік тому

    thank you for saving my life

  • @jennyggf3556
    @jennyggf3556 5 років тому +3

    FINALLY a great video!

  • @ianrapp3373
    @ianrapp3373 7 років тому +10

    this helps out a lot, thank you

  • @ahbysok
    @ahbysok 4 роки тому +1

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

  • @JohnMarkIsaacMadison
    @JohnMarkIsaacMadison 5 років тому

    Much better than the Udemy video.

  • @ronencfix3383
    @ronencfix3383 6 років тому +10

    thanks for the great explanation!

  • @danaemariegarcia751
    @danaemariegarcia751 11 місяців тому

    GOD BLESS YOU FOR THIS!!!💪

  • @shikharchaudhary6984
    @shikharchaudhary6984 5 років тому +1

    Thanks a million for creating this video.

  • @ZainabAlAli94
    @ZainabAlAli94 6 років тому +5

    Thank you clear and simple

  • @cindykim3147
    @cindykim3147 4 роки тому +2

    This is absolutely great, thank you!

  • @sabitkondakc9147
    @sabitkondakc9147 2 роки тому

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

  • @hritikpathak455
    @hritikpathak455 4 роки тому +2

    Very nicely explained. Thank you so much.

  • @熊育霆
    @熊育霆 2 роки тому +2

    So clear and informative, thanks!

  • @baneous18
    @baneous18 3 роки тому +1

    Thank you so much .. it's very useful

  • @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?

  • @tawfiquee
    @tawfiquee 4 роки тому

    Man you are a life saver

  • @fariahasan3965
    @fariahasan3965 4 роки тому

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

  • @crashedbboy
    @crashedbboy 5 років тому +2

    Thank you, very detailed explanation!

  • @thomasp3543
    @thomasp3543 Рік тому

    great example, thank you!

  • @jameswo4794
    @jameswo4794 5 років тому +2

    beautiful

  • @hugoirwanto9905
    @hugoirwanto9905 4 роки тому +1

    thank you bro this is super helpful for me!

  • @ismailboumehdi5340
    @ismailboumehdi5340 Рік тому

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

  • @kirtilad7367
    @kirtilad7367 4 роки тому +3

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

  • @zefanyasoplantila1430
    @zefanyasoplantila1430 3 роки тому

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

  • @김규현-s5h
    @김규현-s5h 4 місяці тому

    Thank you so much!!

  • @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

  • @electricwatches1
    @electricwatches1 6 років тому +1

    Made it easy to understand, thanks ;)

  • @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.

  • @ole9799
    @ole9799 3 роки тому

    this helps me a lot, thx

  • @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

  • @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!

  • @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!!

  • @AriyaAdinatha
    @AriyaAdinatha 3 роки тому

    thank you

  • @luisfernandobenavidesarias482
    @luisfernandobenavidesarias482 4 роки тому

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

  • @theuberman7170
    @theuberman7170 3 роки тому

    set = line?

  • @rehy1989
    @rehy1989 5 років тому

    Thanks man appreciated

  • @carljohnson7342
    @carljohnson7342 6 років тому +1

    thanks

  • @jinjing1857
    @jinjing1857 Рік тому

    Save me from the poor lecture notes but advanced question sheet

  • @esfomeado99
    @esfomeado99 4 роки тому

    Muito obrigado !

  • @UniPotatoCorn
    @UniPotatoCorn 26 днів тому

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

  • @josephmasinre1840
    @josephmasinre1840 3 роки тому

    thanks man, you really helped a nigga out

  • @narasimhadeshpande5052
    @narasimhadeshpande5052 4 роки тому

    god bless u !!

  • @tarifadib
    @tarifadib 4 роки тому

    amazing example. university lecturer is not as good as you

  • @dpm2213
    @dpm2213 4 роки тому +1

    Professor explains concept for 3 hours... *doesn't make sense*
    5 minutes into UA-cam 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

  • @eddit0r890
    @eddit0r890 Рік тому

    👍👍👍👍👍

  • @han_4706
    @han_4706 3 роки тому

    thnx bro (=

  • @mitchellchase6667
    @mitchellchase6667 5 років тому +4

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

    • @AP-uc7oz
      @AP-uc7oz Рік тому

      Explanation is fine, get your intellect up

  • @paulancajima
    @paulancajima 5 років тому

    thanks