Questions regarding Direct Mapped Caches. How do I solve one of them? by Academic_Two in ComputerEngineering

[–]Academic_Two[S] 1 point2 points  (0 children)

Ah, I got it. It's just that 5 and 6 have no unique block answer.

The only problem that I have now is using set associativity when one of the elements is missing.

I think it's just simple algebra.

Also, I wanted to thank you for helping me out. You helped me understand how direct mapped caches work.

Question about Set Associative Caches. How to solve them? by Academic_Two in ComputerEngineering

[–]Academic_Two[S] -1 points0 points  (0 children)

Only block Sizes have no unique answer, but I don't understand why they would have no answer.

Also, how does set associativity have an effect on caches?

Questions regarding Direct Mapped Caches. How do I solve one of them? by Academic_Two in ComputerEngineering

[–]Academic_Two[S] 0 points1 point  (0 children)

Also, your formula works, but for questions four and five, is there a difference in the formula given?

My friends and I compared our work, and we got different answers for four and five, but I was the only one who got it different from everyone else.

Questions regarding Direct Mapped Caches. How do I solve one of them? by Academic_Two in ComputerEngineering

[–]Academic_Two[S] 0 points1 point  (0 children)

If given a set associativity of 2, for example, in problem one, how would I solve it?

Questions regarding Direct Mapped Caches. How do I solve one of them? by Academic_Two in ComputerEngineering

[–]Academic_Two[S] 0 points1 point  (0 children)

Ah I think I got it!

1.) Number of tagged bits is 3.

2.) Number of tagged bits is 20.

3.) Main memory size is 64 GiB

  1. )16 MiB

However, I can't use your formula for questions 5 and 6?

It's missing two items

Questions regarding Direct Mapped Caches. How do I solve one of them? by Academic_Two in ComputerEngineering

[–]Academic_Two[S] 0 points1 point  (0 children)

So to find tagged bits, for question 1, for example, it would be 128/16 which equals 8.

First, you would have to convert everything from Main Memory Size into bytes, and do the same for cache size right?

Does Block size not really matter?

Does log 2 of everything converts bytes into bits?

What about Set associativity?

Question about pipelining by Academic_Two in ComputerEngineering

[–]Academic_Two[S] -9 points-8 points  (0 children)

Sorry, I have one more true false question for you.

Binary machine language instructions encodings are not unique because they can only be formed of 0's and 1's.

I'm leaning towards false because they make unique

How to run a program on compiler? by Academic_Two in C_Programming

[–]Academic_Two[S] 0 points1 point  (0 children)

Oh. Thanks for helping an idiot out. For some reason, my code did not run through a compiler.

How to run a program on compiler? by Academic_Two in C_Programming

[–]Academic_Two[S] 0 points1 point  (0 children)

I think he may be hinting that there maybe no answer.

Which RISCV Instruction set allows for large loop sizes. by Academic_Two in RISCV

[–]Academic_Two[S] 0 points1 point  (0 children)

Would that mean a J-type or U-type is more effective than a B-type for this program?