Purchase Solution

Direct Mapped Cache - Memory Blocks

Not what you're looking for?

Ask Custom Question

Suppose that a computer using direct-mapped cache has 2^24 words of main memory and a cache of 64 blocks, where each cache block contains 16 words.

A. How many blocks of main memory are there?

B. What is the format of a memory address as seen by the cache? That is, what are the sizes of the tag, block and word fields?

C. To which cache block will the memory reference (20DB63)base16 map?

Purchase this Solution

Solution Summary

This solution shows brief and relevant computations for number of blocks of main memory, number of bits needed to represent the word, block, and tag field, and which cache block the memory reference will apply to.

Solution Preview

Size of main memory (Sm) = 2^24 words
Size of cache block (Sc) = 16 or 2^4 words
Number of blocks in cache (Nc) = 64

A. Number of blocks of main memory (Nm) = Sm/Sc = 2^24 / 2^4 = 2^20 blocks

B. Number of bits needed to represent word field = 4 (because there are 2^4 words / cache block)
Number of bits ...

Purchase this Solution


Free BrainMass Quizzes
Word 2010: Table of Contents

Ever wondered where a Table of Contents in a Word document comes from? Maybe you need a refresher on the topic? This quiz will remind you of the keywords and options used when working with a T.O.C. in Word 2010.

Inserting and deleting in a linked list

This quiz tests your understanding of how to insert and delete elements in a linked list. Understanding of the use of linked lists, and the related performance aspects, is an important fundamental skill of computer science data structures.

Basic Networking Questions

This quiz consists of some basic networking questions.

Javscript Basics

Quiz on basics of javascript programming language.

Word 2010: Tables

Have you never worked with Tables in Word 2010? Maybe it has been a while since you have used a Table in Word and you need to brush up on your skills. Several keywords and popular options are discussed as you go through this quiz.