I do not understand set-assocative cache mapping even after understanding direct mapping and fully associative mapping. Can you please help me?
▲ 10 r/ElectronicsTards+1 crossposts

I do not understand set-assocative cache mapping even after understanding direct mapping and fully associative mapping. Can you please help me?

​

I am taking a simple example to understand this concept.

- Memory address is of 16 bits.

- Block size is 16 words.

- Number of Main Memory blocks is 4K

- Number of Cache Memory lines is 64

Here is the exclusive part that I do not understand:

> In figure 10.8, we have chosen four cache lines per set. Hence, for the above example there are 16 sets of cache lines.

I think they could simply do number of sets=(number of cache blocks)/(n of n-way) and say it is a 4-way with 16 sets of cache lines.

> Let us number them from 0 to 15. dividing the 4096 memory blocks equally among these 16 sets, we find that 256 memory blocks can be mapped into one set of cache lines.

Things get rusty for me from just above. One set can get 256 memory blocks...makes sense but keep reading.

> Figure 10.8 shows that those memory blocks that are mapped into set 0, namely, 0,16,32,48,64,80,...,4080. In this sense, the mapping resembles direct mapping. But the 256 memory blocks that are mapped into set 0 can be placed into any of the four cache lines within the set 0, namely CL0, CL1, CL2, or CL3 indicated in the figure. In this way it resembles the associative mapping.

Nothing makese sense in this. How did we arrive at the number 0,16,32......What is the mapping formula being used here?

Figure 10.8 shows those

u/Heavy_Budget6077 — 20 hours ago
▲ 23 r/ECE

PISO register diagram is this ok?

When parallel in...notes are showing Q0 Q1 Q2 as 011 for input 011. Q0 is a LSB...

u/Heavy_Budget6077 — 2 days ago

Origin story of Why we wanted to represent numbers using 1's complement,2's complement and not just signed magnitude. Something that goes beyond "range"?

Does anyone know about it?

I understand how we get the values of 1's complement representation as well as 2's complement representation. But I miss the helicopter view, or the big picture of this.

I am not fluent when i see a number in 1's complement format to convert it to its value representation. I keep a chart alongside me but this is not possible in hard exams.

For example: I give 1s complement representation 101.

What is its value in signed magnitude?

I have to manually complement=010. Then say it is =-2 as 1 is there in msb of original 1s complement number.

Huncha ni, herepachi twakka aunu paryo kya. Testo fluent...

reddit.com
u/Heavy_Budget6077 — 2 days ago

What is the best scanner application on android that is available in play store?

I have tried iscanner, microsoft lens, camscanner and all of them suck for real. Today I clicked 105 photos and suddenly the app crashed and I lost all my data. I want something which will not let that happen.

I have heard good things about OSS document scanner. Is that good? The phone is samsung budget phone.

reddit.com
u/Heavy_Budget6077 — 3 days ago
▲ 2 r/Nepal

Is (the attempted) immigration to European countries, and America really that lucrative as people make it to be?

I will clear that I have not been outside Nepal. I do not think the vocal minority rasicst is what the west is.

But here is what I think:

Why do countries take immigrants?

To do the work that is not currently being done by their country fellows.

For example: Some countries' population are growing old. Now they are hiring nepalese to take care of the old people. Nepalese do not just do that caring for money. Their hidden desire is to get citizenship of that country.

But I do not think Asian, and European countries are that open.

They will leech Nepalese(among many others) till they have utility. Umer chada samma they will use us. Later visa expire type ko bhanera chodidincha.

Most Nepalese goals is to stay in that country by getting a PR/Citizenship. But the citizens of European countries, and Asian countries specially have deeply rooted cultural superiority. Dherai tada janu pardaina, we loser nepalese do not like Indians coming to Nepal, doing businesses for 5 generations take citizenships. Aru tada kina janu paryo. Access to citizenship means that you have a say in the politics of that country. And we do not like that in Nepal. Other people are not that different.

And many more.

One different country was America. They actually loved immigrants. Atleast that was what was portrayed.

But they are also making it harder for immigrants. Due to the rise of right wing political force even in the America, the people who suppressed their race superiority are back to abusing people racially.

You can argue donald trump will not be there forever. But have you noticed? Most policies taken by earlier US government (not just president) do not get overturned that often. Just like we say "Nepal ko pararastra niti should be stable irrespective of the government in power".

But all I see is people excited to move abroad. Eti haad bhayo ki ma nepal ma chu, people are openly mocking that I failed visa. Bro, I have never ever tried for any countries' visa. Because I am confident to make it in Nepal.

I do not have materialistic desires to that extent. And I am a bit privileged. But this post is targeting only privileged peoples' intention to settle in abroad.

reddit.com
u/Heavy_Budget6077 — 3 days ago

Guys, help me with message passing, RPC, and sockets as a means to communicate in distributed system

Please give me succinct study notes for this. I am in no mood to finish 4 chapters of PK sinha in order to learn this for 10 marks.

reddit.com
u/Heavy_Budget6077 — 4 days ago

Is thinking like a entreprenur instead of an influencer hurting my content creation journey?

For every video I make, I treat it as an advertisement to a product or service I am going to sell. If there is no artifacts to be sold, I prefer not making that video.

reddit.com
u/Heavy_Budget6077 — 4 days ago

How hard is it to get a chance to study abroad as a government officer? Is it easier with corporations(NEA/NTC/EPF/SSF/NRB/ADBL/RBB) or Nijamati/sangh?

One thing I am jealous ( i wish them best...)about my mates, and folks in abroad is their student life. They get to study abroad by their own means. They manage somehow. Their main goal is probably to settle in the USA, UK, Australia, Germany etc. (LOLLL in this situation). But I do not get really jealous of it. I know they will be treated always as a second class citizen, will be victims of rascism and what not. But I really get jealous of them studying abroad. I have picked the Loksewa route for myself as an IT officer or Computer Engineer. Now I am wondering that being in Nijamati or corporation is advantageous for me to grab that opportunity? I know it will be tough as "who does not want to study abroad?" Loksewa is a collection of all the studious folks itself. So, it will be competitive. How can I increase my chances to get that opportunity?

The reason I am jealous is that studying abroad if I get a chance will be the biggest achievement of my life in terms of vision growth. I know that but situation made me do loksewa. And I am not that all bothered as I know there is a way where there is a will..

reddit.com
u/Heavy_Budget6077 — 4 days ago

Feeling sleepy in the afternoon even when I am taking vitamin D supplements

I feel sleepy when I have to focus seriously and concentrate seriously like studying or working.

Otherwise I do not feel sleepy.

I am taking doctor recommended vitamin D supplements, tested my blood everything 1 month ago and everything was fine except for vitamin d.

reddit.com
u/Heavy_Budget6077 — 4 days ago

How do you get content ideas?

I got low value content from adsense. then I went to r/adsense subreddit and many other places. Then updated my content. Removed thin content. I kept the sales page because it is actually bringing sales to me and I am making money. I do not think a single blog post can affect google approval, if I create 10-20 other great pieces of content. i am really out of content ideas. Can you recommend some content for me to write?

My blog is https://berojgarengineer.com/blog

Just list creative content ideas for my niche to build topical authority. It should be something that I have knowledge about or can learn by searching internet. for example: it should not be about salaries in various IT companies of Nepal. there is no way for me to learn that information.

reddit.com
u/Heavy_Budget6077 — 5 days ago

How do you get content ideas?

I got low value content from adsense. then I went to r/adsense subreddit and many other places. Then updated my content. Removed thin content. I kept the sales page because it is actually bringing sales to me and I am making money. I do not think a single blog post can affect google approval, if I create 10-20 other great pieces of content. i am really out of content ideas. Can you recommend some content for me to write?

My blog is https://berojgarengineer.com/blog

Just list creative content ideas for my niche to build topical authority. It should be something that I have knowledge about or can learn by searching internet. for example: it should not be about salaries in various IT companies of Nepal. there is no way for me to learn that information.

reddit.com
u/Heavy_Budget6077 — 5 days ago

I have over 60 computer science and engineering books and I want to make a video reviewing it. How should the video be?

I love reading them. And think I can inspire couple of students to do the same. Can anyone guide me what sort of video they would watch actually?

Here is my brainstormed title "Top tech books that one should read before they graduate".

reddit.com
u/Heavy_Budget6077 — 5 days ago

I think there is a typo in the coordinator state diagram? The last part should be both green because it is being received.

What do you think? I did not find any books with this diagram, just these slides were found.

u/Heavy_Budget6077 — 5 days ago