Question

A primary memory system consists of 128 address bits. Each block within the cache is 256 bytes. The total cache size is 131,0

0 0
Add a comment Improve this question Transcribed image text
Answer #1

The whole Solution is correct but as we have to calculate Number of blocks in Cache so we should be

Number of blocks in cache = \frac{cachesize}{block size}

so, we have Cache size =131,072 bytes and block size = 256 bytes

So,

#blocks in cache=\frac{131,072}{256} = 512 blocks.

Here answer matches means 128,000 in the solution may be misprinted by mistake.It should be 131,072 not 128,000

Add a comment
Know the answer?
Add Answer to:
A primary memory system consists of 128 address bits. Each block within the cache is 256...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • This problem concerns a physical memory cache. Recall that m is the number of physical address...

    This problem concerns a physical memory cache. Recall that m is the number of physical address bits, C is the cache size (number of bytes), B is the block size in bytes, E is the associativity, S is the number of cache sets, t is the number of tag bits, s is the number of set index bits, and b is the number of block offset bits. Suppose we have a cache with the following characteristics m = 32 C...

  • Question 3: Consider a 32-bit physical address memory system with block size 16 bytes and a...

    Question 3: Consider a 32-bit physical address memory system with block size 16 bytes and a 32 blocks direct mapped cache. The cache is initially empty. The following decimal memory addresses are referenced 1020, 1006, 1022, 5106, 994, and 2019 Map the addresses to cache blocks and indicate whether hit or miss. Note: You must use the hexadecimal approach in solving this question. You must also show the computations of dividing the memory address into tag bits, cache index bits,...

  • For a direct-mapped cache with a 32-bit address and 32-bit words, the following address bits are...

    For a direct-mapped cache with a 32-bit address and 32-bit words, the following address bits are used to access the cache. TAG INDEX OFFSET 31-15 14-8 7-0 a. What is the cache block size (in words)? [13 points] b. How many blocks does the cache have? [12 points]

  • 32 bytes of memory. 16 bytes of 2-way setassociative cache, where blocks can go anywhere within...

    32 bytes of memory. 16 bytes of 2-way setassociative cache, where blocks can go anywhere within the set. Block is 4 bytes, set in cache is two blocks. Populate memory starting with 0-9, then upper case letters. Hint- with full associativity in the set: each block has its own set of Tag bits in the cache. Memory is not organized by sets, though blocks get assigned to sets, and load in the cache per set. A) Complete: Bits in Address...

  • 7. In a cache system we have the following attributes: 4 GB of DRAM 256 MB...

    7. In a cache system we have the following attributes: 4 GB of DRAM 256 MB of physical memory space 2 MB of cache IKB per cache line Determine number of lines in cache. a) Determine the number of address bits out of the processor. b) c) Determine the number of bits needed for the block offset section of the address. If our cache is 8-way set associative, how many sets are there in the cache? d) How many bits...

  • question 2 and 3 2. Determine how many sets of cache blocks will be there for...

    question 2 and 3 2. Determine how many sets of cache blocks will be there for the following Cache memory size (in bytes) Direct Mapped Blocks Size (in bits) 32 64 218 2-way Set Associative Block Size (in bits) 32 64 A 2A6 [0.5 * 16 = 8] 4-way Set Associative Block Size (in bits) 32 64 SK 64K 256K 3. The physical memory address generated by a CPU is converted into cache memory addressing scheme using the following mapping...

  • 2. Set Associative Cache (36 pts) Given the following address access stream, please answer 2.1, 2.2...

    2. Set Associative Cache (36 pts) Given the following address access stream, please answer 2.1, 2.2 and 2.3. All the addresses are 32-bit. The sequence is shown below. Load Load Store Store Load 0x22160788 Ox09000E40 0x1265024C 0x22160484 0x1265014C 2.1 (11 pts) A 512 bytes, 2-way writeback cache. The cache line size is 64 bytes. Please calculate the number of bits used for tag, set index, and offset. Number of tag bits = Number of index bits = Number of offset...

  • Question 6 For the following figure shows a hypothetical memory hierarchy going from a virtual address to L2 cache acce...

    Question 6 For the following figure shows a hypothetical memory hierarchy going from a virtual address to L2 cache access. The page size is 8KB, the TLB is direct mapped with 128 entries. The L1 cache is a direct mapped 8 KB, and the L2 cache is 2MB and direct mapped. Both use 64 byte blocks. The virtual address is 64 bits and the physical address is 41 bits. For each block in the figure below, fill in the number...

  • Design a 4-way Associative cache that has 128 blocks and 16 bytes per block. Assume a...

    Design a 4-way Associative cache that has 128 blocks and 16 bytes per block. Assume a 32 bit address. Part 1: The number of bits used for the set (index) field 10 4 5 7 8 Part 2: the number of bits used for the tag: 23 22 20 21 18 Part 3: total bits in this cache: 16384 18432 38912 19456 9728 4664 Part 4: The overhead ratio-total bits required for this cache implementation over only data storage 2.375...

  • The physical address of memory on a machine is 32 bits. The machine has a direct...

    The physical address of memory on a machine is 32 bits. The machine has a direct mapped cache of size 512 KB with a block size of 8 bytes. What is the size of the tag field in bits? Can you please explain this step by step and what the importance of direct mapped is?

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT