Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Consider a machine with main memory 2^16 bytes and block size of 8 bytes (also 1 byte = 1 word). Assume that a direct mapped

Consider a machine with main memory 2^16 bytes and block size of 8 bytes (also 1 byte = 1 word). Assume that a direct mapped cache consisting of 32 total cache lines is used with this machine. a) How would the 16 bit address be divided into tag, line number, and word number?

b) Suppose that the word at the 16-bit address 0001 1010 0001 1010 in main memory is to be stored in the cache. Which cache line will this word be stored at? What will be the addresses in main memory of the other other words that will be stored along with this word in cache at the same time (remember each cache line is a block of words)?

c) How many maximum total bytes of data can be stored in the cache at a given time?

d) Do you need to store the tag since direct mapping is used? Why or why not?

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Data Analysis Using SQL And Excel

Authors: Gordon S Linoff

2nd Edition

111902143X, 9781119021438

More Books

Students also viewed these Databases questions

Question

=+ 4. Why should policymakers think about incentives?

Answered: 1 week ago

Question

=+ 2. What is the opportunity cost of seeing a movie?

Answered: 1 week ago

Question

=+ what roles should government play in them ?

Answered: 1 week ago