# Computer Architecture, Cache Memory question about the address format

#### JordanMakedonija

Joined Jan 26, 2020
2
A computer system has the following characteristics. The main memory has 1000 blocks. One block contains 8 words. Cache memory has 32 words. a)What is the format of the address?
b)A program passes 4 times through the locations 7 to 37 decimally. What is the hit rate? And how does the cache look after the 4 passings. The system uses direct mapping.
I know that there are 1000 * 8 = 2^10 * 2^3 = 15 bits for the address. Other than that I am stuck.
Thanks!

#### WBahn

Joined Mar 31, 2012
26,398
You need to show your best attempt to work the problem. You have a text or other material that explains how this works -- so make your best attempt based on that material. Doesn't matter if it is wrong, it will allow us to see where your reasoning is going off base.

With the little bit you've given, a couple questions come immediately to mind.

How is 1000 * 8 = 2^10 * 2^3?

How does this then equal 15 bits for the address?

Are you sure the problem states 1000 block for main memory and not 1024 blocks are 1 kblocks or something similar?

#### JordanMakedonija

Joined Jan 26, 2020
2
You need to show your best attempt to work the problem. You have a text or other material that explains how this works -- so make your best attempt based on that material. Doesn't matter if it is wrong, it will allow us to see where your reasoning is going off base.

With the little bit you've given, a couple questions come immediately to mind.

How is 1000 * 8 = 2^10 * 2^3?

How does this then equal 15 bits for the address?

Are you sure the problem states 1000 block for main memory and not 1024 blocks are 1 kblocks or something similar?