Vous êtes sur la page 1sur 1

Assignment# 2

Date: 03/05/2011

Section: BSCS-3A

Subject: CSC 212-Computer Organization and Assembly

Due Date: 10/05/2011

Rules:

1. Copied Assignments will be marked zero-do your self even if you do it


wrong (you will get 80% of the marks just for your effort)

2. Submit Hard Copy whether printed or handwritten. Do not email. If you


can not take print, give handwritten. Mention you registration number,
name ,section, and assignment number

 Q (1) Suppose a computer using direct mapped cache has 220 words of main
memory, and a cache of 32 blocks, where each cache block contains 16
words.

 How many blocks of main memory are there?

 What is the format of a memory address as seen by the cache, i.e.,


what are the sizes of the tag, block, and word fields?

 To which cache block will the memory reference 0DB6316 map?

 Q (2) Suppose a computer using direct mapped cache has 232 words of main
memory, and a cache of 1024 blocks, where each cache block contains 32 words.

 How many blocks of main memory are there?

 What is the format of a memory address as seen by the cache, i.e.,


what are the sizes of the tag, block, and word fields?

 To which cache block will the memory reference 000063FA16 map?

 Q (3) Consider a byte-addressable computer with 24-bit addresses, a cache


capable of storing a total of 64K bytes of data and blocks of 32 bytes. Show
the format of a 24-bit memory address for direct mapped cache.

Vous aimerez peut-être aussi