Linked Questions

24 votes
5 answers
346k views

How to calculate the number of tag, index and offset bits of different caches?

Specifically: 1) A direct-mapped cache with 4096 blocks/lines in which each block has 8 32-bit words. How many bits are needed for the tag and index fields, assuming a 32-bit address? 2) Same ...
compski's user avatar
  • 403
1 vote
1 answer
17k views

Total bits required for a direct-mapped cache

I'm taking a course in computer architecture in which the main reference is the Computer Organization and Design by Patterson and Hennessy. I came across an example which I couldn't grasp its answer: ...
mgh's user avatar
  • 121
-1 votes
1 answer
11k views

Calculate number of cache lines per set or cache size

How can I calculate the number of cache lines per set or the cache size with the given information? m (number of physical address bits): 32 C (cache size): unknown B (Block size in bytes): 32 E (...
schererdavid's user avatar
1 vote
1 answer
2k views

How to determine the bits of the address used to access the cache?

Given a non-associative, direct-mapped cache and its cache capacity, block size, and address size, how would I go about determining what bits of the address are used to access to cache? Is there a ...
Adam Lee's user avatar
  • 213
0 votes
1 answer
2k views

How many bits would be needed for the byte?

The Problem: A high speed workstation has 64 bit words and 64 bit addresses with address resolution at the byte level. Assuming a direct mapped cache with 8192 64 byte lines, how many bits are in ...
committedandroider's user avatar
0 votes
1 answer
1k views

Direct and Associate Cache - Offset, Index, and Tag

I have two questions: ...
Hawkeye's user avatar
0 votes
0 answers
1k views

Direct-mapping cache question

Say I have the following memory scheme: Data bus: 8 bit Main Memory Store: 256 Byte Cache Store : 32 Byte Block Size : 4 Byte How would I go about listing the assigned bits for tag,...
Callat's user avatar
  • 123
0 votes
0 answers
187 views

Direct Mapped Cache, textbook excerpt clarification, identifying block field

I have an excerpt from my textbook concerning direct mapped cache that I would like further clarification on, the text reads..... "Consider the following example: Assume memory consists of 2^14 ...
Thomas Lee's user avatar
1 vote
1 answer
135 views

Finding $t$, $r$ and $w$ in Cache - Direct Mapping

I had a question in my past System Architecture exam and I am not sure how to solve it. Question was this: Consider a 16-bit addressable memory and a direct-mapped cache sized 64 bytes. MAR is 10 ...
Muhammed Gül's user avatar
0 votes
0 answers
122 views

I'm to calculate the tag, index and offset for a given setup

Total Memory size = 65,536 bytes Number of cache blocks = 32 cache blocks Cache size = total 512 bytes So using this info provided I cannot figure out how to calculate the cache block number. I know ...
Eehit Ray's user avatar
0 votes
0 answers
61 views

How to determine index being access in memory

Having 4GB byte addressable main memory in 32-bit system divided into block of size 1024 bytes. If processor wants to access a memory location 0xFC347004. Corresponding block is found in cache. ...
user2300867's user avatar