Set Associative Mapping - Solved Examples (Part 1)
ฝัง
- เผยแพร่เมื่อ 9 ก.ค. 2024
- COA: Set Associative Mapping - Solved Examples (Part 1)
Topics discussed:
1. Finding the P.A. Split for Set Associative Mapping.
2. Finding the number & type of Comparators needed for Set Associative Mapping.
3. Derivation of Cache Size formula.
4. Calculating the size of Main Memory using the Cache Size formula.
Follow Neso Academy on Instagram: @nesoacademy (bit.ly/2XP63OE)
Contribute: www.nesoacademy.org/donate
Memberships: bit.ly/2U7YSPI
Books: www.nesoacademy.org/recommende...
Website ► www.nesoacademy.org/
Forum ► forum.nesoacademy.org/
Facebook ► goo.gl/Nt0PmB
Twitter ► / nesoacademy
Music:
Axol x Alex Skrindo - You [NCS Release]
#COAByNeso #ComputerOrganizationAndArchitecture #SetAssociativeMapping
I'm following all the videos from this CA tutorial. It's fantastic 👍👍
Your videos are awesome.
They are very helpful to me....
Thanks alot😃
Very awesome examples Sir ji...
Priceless lectures ❤️❤️❤️❤️
you are the one who is priceless
Thankssss a lotttt
why did he multiply 2^13 no of lines with tag bits, I mean tag bits won't be associated with every line of the cache no?
Awesooome
Please upload PPT as well
Please upload more videos
Please upload ppt brother please
Also pls someone confirm that value of x=5 and y=10 ...
Upload ppt brother please
please solve this question for me:
Find the number of tags for cache of size 8KByte and 4 lines per set . The main
memory contains 4K blocks of 128 words each
This is my solution, please correct me if I'm wrong:
* Given:
No. of Memory Blocks = 4K blocks
Size of each Memory Block = 128 words
Cache size = 8KB
4 lines per set
----------------------------
* Solution:
P.A.S = No. Blocks * Block Size = 4K * 128 words = 2^12 * 2^7 = 2^19 Bytes
=> P.A.S = 2^19 -> P.A bits = 19
=> Block Size = 2^7 -> Offset = 7 bits
Set size = K line(s) * Block Size = 4 * 2^7 = 2^9 Bytes
No. of Sets = Cache Size / Set Size = 2^13 / 2^9 = 2^4 Sets -> Set bits = 4
* P.A bits = Tag bits + Set bits + Offset
=> Tag bits = P.A bits - (Set bits + Offset) = 19 - (4 + 7) = 8
@@luuu_na35it is correct.
I got the same
Sir what if set is odd!!
!!!
It is impossible because the computer is the world of 0 and 1.
My laptop has L3 cache size: 3 MB and dual core, now what ? :)
Also it's 12 way set associative, now what ? :)
Toshiba Laptop L670.
I guess it has to be calculated in full, the 2 to the power of trick no longer applies.
good informations ! thanks . keep it up 🫠
done subscribe
No offense,but we know simple addition.👍