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
@saideepakbejawada67737 жыл бұрын
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!
@168Siri11 ай бұрын
how??
@Badrkhan20168 жыл бұрын
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.
@maldinila9 жыл бұрын
feeling lucky i found this lecture.. thank you.
@rahulranjan32739 жыл бұрын
+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
@manojputchala57984 жыл бұрын
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.
@vishalgupta51448 жыл бұрын
Sir , i think we can find solution to question 5 and 6.Main memory size in 6th is 8MB.thanku
@SajalJainprogrammer9 жыл бұрын
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 ?
@sandeep0077348 жыл бұрын
This seems like correct
@mohdanas98576 жыл бұрын
Thanks a lot sir. you made my concepts clear. You are a great teacher.
@chessfolks38276 жыл бұрын
You taught all things Very easiest way... The way you teaching awesome... Plz upload some videos of Gate problems of COA...
@laharibasu97314 жыл бұрын
Thank you Sir. The lecture was of great help.
@sonalganvir83346 жыл бұрын
This video is underrated! It deserves more views.
@aryangawand7454 Жыл бұрын
Great video all Question in one video
@darshanparmar19986 жыл бұрын
in 5th qu. cache size is 256KB and In 6th qu. memory size is 8MB
@WalkingtotheTruth6 жыл бұрын
youre right
@abhishekkumar-os5zk6 жыл бұрын
how
@muhammadsafiullah84285 жыл бұрын
Yes you are right!
@soldadopreciso6 жыл бұрын
In 6th question , the BlockSize would be between 2^0
@100rabhkr_India6 жыл бұрын
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!!!
@RandomReview128 жыл бұрын
Dude. You're a life saver
@bhupendragothwal7597 жыл бұрын
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
@mahanteshmise69305 жыл бұрын
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.
@devakid23326 жыл бұрын
Thank you Ravi ji really very much useful for us
@VishwasuDeshpande6 жыл бұрын
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.
@mohdanas98576 жыл бұрын
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.
@shaiksonu89554 жыл бұрын
Sir what about index sir? How to find index?
@NakulMahale8 жыл бұрын
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 .
+Ramya Garimella 128 KB means 2^(17) bytes, which is represented by 17 bits
@ramyagarimella9 жыл бұрын
i got that .thanks
@paris7379 жыл бұрын
+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?
@sonnix319 жыл бұрын
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.
@abdulazeem16077 жыл бұрын
thanx sir ji...
@wellbeing15395 жыл бұрын
the last answer is wrong
@reidiko3415 жыл бұрын
YOU ROCK!
@wellbeing15395 жыл бұрын
you missed the concept in the last two examples ...
@shivashaw22204 жыл бұрын
excellent ...
@kaushilkundalia21976 жыл бұрын
Thanks a lot sir !
@blackarrow31384 жыл бұрын
thank you sir
@NaveenKumar-hd7vk7 жыл бұрын
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_jha7 жыл бұрын
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)
@nikhilnambiar71607 жыл бұрын
If block size is variable u cnt verify the cache size