1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
kolbaska11 [484]
3 years ago
5

Caches are commonly implemented in SRAM, and the cache layout impacts the total amount of SRAM required to implement the cache.

For the following two problems, assume the caches are byte addressable and addresses and data words are both 32 bits. a. How many total bits are required to implement a 128 KiB direct-mapped cache with 4-word blocks? b. How many total bits are required to implement a 128 KiB direct-mapped cache with 32-word blocks?
Computers and Technology
1 answer:
kramer3 years ago
8 0

Answer:

Answer explained below

Explanation:

1.

The number of bits in cache= 2ⁿ x (block size + tag size + valid field size)

Cache size is 2ⁿ blocks

Block size is 2ᵇ words (2ᵇ+2 words)

Size of tag field 32 – (n + b + 2)

Therefore,

2ⁿ x (2ᵇ x 32 + 32 – (n + b + 2) + 1)

= 2ⁿ x (2ᵇ x 32 + 31 – n - b)

in the given question,

  Cache size = 128 KB = 2¹⁷ bytes = 2¹⁵ words = 2¹³ blocks

Cache entry size = block data bits + tag bits + valid bit

                  = 128 + (32 – 13 – 2 – 2) + 1 = 144 bits

Therefore, cache size = 2¹³' 144 bits = 2¹³' (1.25 ´ 128) bits = 1.25 ´ 2²⁰ bits = 1.25 Mbits

2.

Cache size = 128 KB = 2¹⁷ bytes = 2¹⁵ words = 2¹³ blocks

Cache entry size = block data bits + tag bits + valid bit

                  = 128 + (32 – 10 – 2 – 2) + 1 = 147 bits

Therefore, cache size = 2¹³' 147 bits

You might be interested in
In order to make schemas that will appear in the Schema Library available in the XML Options dialog box, what file extension sho
Luba_88 [7]

Answer:

You can use your XML parser

Explanation:

hope this helps!

5 0
3 years ago
What is the awnser ?
Igoryamba

Its the second one. Hope this helps.   :)

4 0
4 years ago
I WILL MARK BRAINLIEST IF CORRECT!!!!!!!!!!!!!!!!!!!!!!!!!!!!
e-lub [12.9K]

the second answer is correct

7 0
3 years ago
Read 2 more answers
When the atmosphere has too much carbon dioxide in it, the oceans absorb some of it to achieve a new balance. This is an example
horsena [70]
The answer is B. 
A geochemical cycle. 
8 0
4 years ago
Read 2 more answers
What is the ribbon used for in word
vitfil [10]

Answer:

the ribbon is a set of toolbar at a top of window in office program designed to help you quickly find a commans that you need to complete a task

Explanation:

what is the ribbon in word

6 0
3 years ago
Other questions:
  • It's inventiveness, uncertainty futuristic ideas typically deal with science and technology.what is it?
    14·1 answer
  • Two friends are eating dinner at a restaurant. The bill comes in the amount of 47.28 dollars. The friends decide to split the bi
    5·1 answer
  • .true or false? one disadvantage of cloudware is that it is never free<br> A. true<br> B. false
    12·1 answer
  • Using a single formatting _______ helps to make reading researched information easier; it lets the reader know what to expect.
    7·1 answer
  • The four compass points can be abbreviated by single-letter strings as "N", "E", "S", and "W". Write a function turn_clockwise t
    15·1 answer
  • I need help, thank you
    5·1 answer
  • an early type of GUI is created, which includes windows, pop-ups, icons, and menus. What year did this happen? Please help!!! qu
    12·1 answer
  • How is hashing used?
    6·1 answer
  • The purpose of a flowchart is similar to the purpose of pseudocode.<br> True<br> False
    5·2 answers
  • How to recover deleted photos after deleting from recently deleted
    13·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!