COA | Cache | Problems on set associative mapping | Ravindrababu Ravula | Free GATE CS Classes

แชร์
ฝัง
  • เผยแพร่เมื่อ 17 ต.ค. 2024

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

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

    In the 5th question, the cache size can be evaluated as follows: (Cache Memory Size/k-way)=2^(Number of bits for Set Offset + Block Offset)
    So we've 26 bits = 10(tag bits) + 16(Set Offset + Block Offset)
    Cache Memory Size = 2^16 * 2*2 = 256KB
    And similarly in 6th question Main Memory Size = 8MB

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

    We can find the cache size in problem 5,also we can find main memory size in problem 6.
    No problem...you have presented a great stuff!

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

      how??

  • @maldinila
    @maldinila 8 ปีที่แล้ว +7

    feeling lucky i found this lecture..
    thank you.

  • @rahulranjan3273
    @rahulranjan3273 8 ปีที่แล้ว +9

    +Ravindrababu Sir, Is the following relation valid for set associative mapping-
    Tag Bits =(log ((MM Size/Cache Size)*Set-Associativity)) (Because blocks are mapped to sets instead lines as in direct mapping, log taken in base-2)
    From here we can find the cache size for problem 5 and MM Size for problem 6

  • @Badrkhan2016
    @Badrkhan2016 8 ปีที่แล้ว

    I think every weekend in my class lecture I waste 90 minutes very technically to listen my teacher. I don't know how I can easily understand you lecture in 10 to 20 minutes except 90 minutes with extra tutorials. Thank you! again you spend your precious time for all of us.

  • @vishalgupta5144
    @vishalgupta5144 8 ปีที่แล้ว +5

    Sir , i think we can find solution to question 5 and 6.Main memory size in 6th is 8MB.thanku

  • @SajalJainprogrammer
    @SajalJainprogrammer 9 ปีที่แล้ว +8

    In ques 5 we can find out the cache memory size
    Main Memory size Physical address : 26 bits
    4 way associative
    Tag : 10 bits
    Set Number + Block offset : 16
    so cache size is 2^(16+2) = 2^(18) = 256 Kb
    I am doing it right ?

  • @chessfolks3827
    @chessfolks3827 6 ปีที่แล้ว

    You taught all things Very easiest way...
    The way you teaching awesome...
    Plz upload some videos of Gate problems of COA...

  • @mohdanas9857
    @mohdanas9857 6 ปีที่แล้ว +1

    Thanks a lot sir.
    you made my concepts clear.
    You are a great teacher.

  • @laharibasu9731
    @laharibasu9731 4 ปีที่แล้ว +1

    Thank you Sir. The lecture was of great help.

  • @manojputchala5798
    @manojputchala5798 4 ปีที่แล้ว

    memory for 6th q can also be found like:
    Let-
    x=set Offset, y= line/block Offset
    -no of sets with x bits will be 2^x
    -for 2^x sets we need 2^(x+3) lines (i.e 1 set = 8 lines
    -2^x sets= 2^(x+3) lines)
    -memory for cache =no of lines*2^y
    -2^19=2^(x+3) *2^y
    -2^(x+3+y)=2^19
    -applying log on b.s, x+y+3=19
    -x+y=16
    since we know x(set Offset)+y(lin/blockOffset)+7(Tag)=m(main memory bits )
    therefore, m=x+y+7
    m=23.
    2^23=8mb.

  • @100rabhkr_India
    @100rabhkr_India 5 ปีที่แล้ว

    In the second question, all is fine, we have tag bits=22, set bit =2 and page offset=10. When we map this in the Cache address. The division in the cache address is (| Tag bits | log2(N) | page offset |). In my understanding the total summation should match the cache memory size i.e 15 but tag bit itself is 22. log2(4)=2 and page offset is 8. Hence a total of 32. Can you please explain or is it something I am doing wrong!!!

  • @sonalganvir8334
    @sonalganvir8334 6 ปีที่แล้ว

    This video is underrated! It deserves more views.

  • @aryangawand7454
    @aryangawand7454 10 หลายเดือนก่อน

    Great video all Question in one video

  • @mahanteshmise6930
    @mahanteshmise6930 5 ปีที่แล้ว

    In direct mapping main memory divided by cache memory is equal to tag size(There was a direct relation) we could find the cache memory given tag bit size and main memory. Why is that not true here? Correct me if I am wrong.

  • @soldadopreciso
    @soldadopreciso 6 ปีที่แล้ว

    In 6th question , the BlockSize would be between 2^0

  • @VishwasuDeshpande
    @VishwasuDeshpande 6 ปีที่แล้ว

    In problem 1, you use Byte representation ( MM = 2^17) , similarly it should be 2^32 for second in bytes and not 2^35 which is in bits. Thus going by that, are the tag bits in first problem 4 bytes and not bits? I am little confused here.

    • @mohdanas9857
      @mohdanas9857 6 ปีที่แล้ว

      Since MM size, cache size and block size are taken in same dimensions,
      they will yield a dimensionless no.
      and to have the number of possible binary combinations
      u will require log2 ( that number )
      and it will always come in bits not bytes.

  • @RandomReview12
    @RandomReview12 8 ปีที่แล้ว +1

    Dude. You're a life saver

  • @bhupendragothwal759
    @bhupendragothwal759 7 ปีที่แล้ว

    Sir please upload the video on fork() system call, it is very difficult to understand , but your teaching way is very understable , so please upload the video sir

  • @devakid2332
    @devakid2332 6 ปีที่แล้ว

    Thank you Ravi ji really very much useful for us

  • @shaiksonu8955
    @shaiksonu8955 4 ปีที่แล้ว

    Sir what about index sir? How to find index?

  • @darshanparmar1998
    @darshanparmar1998 6 ปีที่แล้ว +6

    in 5th qu. cache size is 256KB and In 6th qu. memory size is 8MB

  • @abdulazeem1607
    @abdulazeem1607 7 ปีที่แล้ว +1

    thanx sir ji...

  • @reidiko341
    @reidiko341 5 ปีที่แล้ว

    YOU ROCK!

  • @shivashaw2220
    @shivashaw2220 4 ปีที่แล้ว

    excellent ...

  • @NakulMahale
    @NakulMahale 8 ปีที่แล้ว

    ok 1kb= 2 to the power of 10 i.e. 10 bits , 1mb=2^20,1gb=2^30 and same for other
    but how come 128kb = 17 bits .
    I request you to elaborate it .

    • @abhishekpokala313
      @abhishekpokala313 7 ปีที่แล้ว +6

      128 = 2^7.
      kilo = 2^10.
      128 kb = 2^7 * 2^ 10 = 2^ 17

  • @kaushilkundalia2197
    @kaushilkundalia2197 6 ปีที่แล้ว

    Thanks a lot sir !

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

    thank you sir

  • @BrajeshKumar-ez8zs
    @BrajeshKumar-ez8zs 8 ปีที่แล้ว

    loved it

  • @ramyagarimella
    @ramyagarimella 9 ปีที่แล้ว

    128KB means 17 bytes or bits???

    • @sonnix31
      @sonnix31 9 ปีที่แล้ว +1

      +Ramya Garimella 128 KB means 2^(17) bytes, which is represented by 17 bits

    • @ramyagarimella
      @ramyagarimella 9 ปีที่แล้ว +1

      i got that .thanks

    • @paris737
      @paris737 9 ปีที่แล้ว +1

      +Sonnix Jackson but if we go by the basics, 1byte = 8 bits, therefore, 128KB or 2^7 bytes = 2^10 bits. I don't understand how youve have written 2^17 bytes is represented by 17 bits?

    • @sonnix31
      @sonnix31 9 ปีที่แล้ว +1

      utkarsh srivastava In binary sistem the number y = 2^n is represented by n bits. Thats the basic concept. Also remember, the bits are used to to represent the number of bytes, so 2^n bytes are represented by n bits.

  • @cl3375
    @cl3375 7 ปีที่แล้ว

    YASSS :) :)

  • @bindumohan8216
    @bindumohan8216 8 ปีที่แล้ว

    Thank you

  • @NaveenKumar-hd7vk
    @NaveenKumar-hd7vk 7 ปีที่แล้ว

    lecture was awesome, but
    in the example 5
    MM=64MB,TAG=10bits,4-way,cs=?
    you said it is not possible but it is possible.
    tag has 10 bits so if we remove 4 way that is 2 bits
    we get 8bits,so
    26-8=18bits
    CS=18bits

    • @vin_jha
      @vin_jha 6 ปีที่แล้ว

      I think you are mistaken over here.
      See tag bits has nothing to do with number of lines in each set
      Also set number is log (total no. of sets) and not log(lines in each set)

    • @nikhilnambiar7160
      @nikhilnambiar7160 6 ปีที่แล้ว

      If block size is variable u cnt verify the cache size

  • @wellbeing1539
    @wellbeing1539 4 ปีที่แล้ว

    the last answer is wrong

  • @AnkitaYadav-qp4wn
    @AnkitaYadav-qp4wn 5 หลายเดือนก่อน

    #CFBR

  • @wellbeing1539
    @wellbeing1539 4 ปีที่แล้ว +1

    you missed the concept in the last two examples ...