Docsity

Assignment 2 for Computer Architecture and Organization | ECE 337, Assignments of Computer Architecture and Organization

Toggle sidebar
bg1
ECE337 / CS341, Fall 2005
Introduction to Computer Architecture and Organization
Instructor: Victor Manuel Murray Herrera
Homework # 2
Date assigned: 09/19/05, 05:00 PM
Due back: 09/30/05, 8:00 AM
Answer in a brief form the following questions:
4.1 What are the differences among sequential access, direct access, and
random access?
4.2 What is the general relationship among access time, memory cost, and
capacity?
4.3 How does the principle of locality relate to the use of multiple memory levels?
4.4 What are the differences among direct mapping, associative mapping, and
set-associative mapping?
4.5 For a direct-mapped cache, a main memory address is viewed as consisting
of three fields. List and define the three fields.
4.6 For an associative cache, a main memory address is viewed as consisting of
two fields. List and define the two fields.
4.7 For a set-associative cache, a main memory address is viewed as consisting
of three fields. List and define the three fields.
4.8 What is the distinction between spatial locality and temporal locality?
4.9 In general, what are the strategies for exploiting spatial locality and temporal
locality?
* Explain the write policy in the memory cache and the possible approaches to
cache coherency.
5.1 What are the key properties of semiconductor memory?
5.2 What are two senses in which the term random-access memory is used?
5.3 What is the difference between DRAM and SRAM, in terms of application?
5.4 What is the difference between DRAM and SRAM, in terms of characteristics
such as speed, size, and cost?
5.5 Explain why one type of RAM is considered to be analog and the other
digital.
5.6 What are some applications for ROM?
* What are the differences among PROM, EPROM, EEPROM, and flash
memory?
5.8 Explain the function of each pin in the next picture:
pf3

Partial preview of the text

Download Assignment 2 for Computer Architecture and Organization | ECE 337 and more Assignments Computer Architecture and Organization in PDF only on Docsity!

ECE337 / CS341, Fall 2005 Introduction to Computer Architecture and Organization Instructor: Victor Manuel Murray Herrera

Homework # 2

Date assigned: 09/19/05, 05:00 PM Due back: 09/30/05, 8:00 AM

Answer in a brief form the following questions:

4.1 What are the differences among sequential access, direct access, and random access? 4.2 What is the general relationship among access time, memory cost, and capacity? 4.3 How does the principle of locality relate to the use of multiple memory levels? 4.4 What are the differences among direct mapping, associative mapping, and set-associative mapping? 4.5 For a direct-mapped cache, a main memory address is viewed as consisting of three fields. List and define the three fields. 4.6 For an associative cache, a main memory address is viewed as consisting of two fields. List and define the two fields. 4.7 For a set-associative cache, a main memory address is viewed as consisting of three fields. List and define the three fields. 4.8 What is the distinction between spatial locality and temporal locality? 4.9 In general, what are the strategies for exploiting spatial locality and temporal locality?

***** Explain the write policy in the memory cache and the possible approaches to cache coherency.

5.1 What are the key properties of semiconductor memory? 5.2 What are two senses in which the term random-access memory is used? 5.3 What is the difference between DRAM and SRAM, in terms of application? 5.4 What is the difference between DRAM and SRAM, in terms of characteristics such as speed, size, and cost? 5.5 Explain why one type of RAM is considered to be analog and the other digital. 5.6 What are some applications for ROM?

***** What are the differences among PROM, EPROM, EEPROM, and flash memory?

5.8 Explain the function of each pin in the next picture:

5.9 What is the parity bit? 5.10 How is the syndrome for the Hamming code interpreted? 5.11 How does SDRAM differ from ordinary DRAM? (Do not forget to explain about the burst length and the latency )

PROBLEMS

4.1 A set associative cache consists of 64 lines, or slots, divided into four-line sets. Main memory contains 4K blocks of 128 words each. Show the format of main memory addresses. 4.3 For the hexadecimal main memory addresses: 111111H, 666666H, BBBBBBH, show the following information, in hexadecimal format: a. Tag, line , and word values for a direct-mapped cache, using the format of figure 4.8. b. Tag and word values for an associative cache, using the format of figure 4.10. c. Tag , set and word values for a two-way set associative cache, using the format of figure 4.12. 4.4 List the following values: a. For the direct cache example of figure 4.8: address length, number of addressable units, block size, number of blocks in main memory, number of lines in cache, size of tag. b. For the associative cache example of figure 4.10: address length, number of addressable units, block size, number of blocks in main memory, number of lines in cache, size of tag. c. For the two-way associative cache example of figure 4.12: address length, number of addressable units, block size, number of blocks in main memory, number of lines in set, number of sets, number of lines in cache, size of tag.