Docsity

Computer Architecture Qualifying Examination Fall 2012, Slides of Data Structures and Algorithms

Toggle sidebar
bg1
COMPUTER SCIENCES DEPARTMENT
UNIVERSITY OF WISCONSIN—MADISON
PH.D. QUALIFYING EXAMINATION
Computer Architecture
Qualifying Examination
Fall 2012
GENERAL INSTRUCTIONS:
1. Answer each question in a separate book.
2. Indicate on the cover of each book the area of the exam, your code number, and
the question answered in that book. On one of your books list the numbers of all
the questions answered. Do not write your name on any answer book.
3. Return all answer books in the folder provided. Additional answer books are
available if needed.
SPECIFIC INSTRUCTIONS:
Answer all of the following SIX questions. The questions are quite specific. If, however,
some confusion should arise, be sure to state all your assumptions explicitly.
POLICY ON MISPRINTS AND AMBIGUITIES:
The Exam Committee tries to proofread the exam as carefully as possible. Nevertheless,
the exam sometimes contains misprints and ambiguities. If you are convinced a problem
has been stated incorrectly, mention this to the proctor. If necessary, the proctor can
contact a representative of the area to resolve problems during the first hour of the exam.
In any case, you should indicate your interpretation of the problem in your written
answer. Your interpretation should be such that the problem is non-trivial.
pf3
pf4

Partial preview of the text

Download Computer Architecture Qualifying Examination Fall 2012 and more Slides Data Structures and Algorithms in PDF only on Docsity!

COMPUTER SCIENCES DEPARTMENT

UNIVERSITY OF WISCONSIN—MADISON

PH.D. QUALIFYING EXAMINATION

Computer Architecture

Qualifying Examination

Fall 2012

GENERAL INSTRUCTIONS:

  1. Answer each question in a separate book.
  2. Indicate on the cover of each book the area of the exam, your code number, and the question answered in that book. On one of your books list the numbers of all the questions answered. Do not write your name on any answer book.
  3. Return all answer books in the folder provided. Additional answer books are available if needed.

SPECIFIC INSTRUCTIONS:

Answer all of the following SIX questions. The questions are quite specific. If, however, some confusion should arise, be sure to state all your assumptions explicitly.

POLICY ON MISPRINTS AND AMBIGUITIES:

The Exam Committee tries to proofread the exam as carefully as possible. Nevertheless, the exam sometimes contains misprints and ambiguities. If you are convinced a problem has been stated incorrectly, mention this to the proctor. If necessary, the proctor can contact a representative of the area to resolve problems during the first hour of the exam. In any case, you should indicate your interpretation of the problem in your written answer. Your interpretation should be such that the problem is non-trivial.

1. Translation Lookaside Buffers (TLBs)

Translation lookaside buffers (TLBs) are widely used to speed up the process of translation from virtual to physical addresses. Consider an architecture with 64-bit virtual addresses <V 63 V 62 .......V 1 V 0 > and 16K-byte pages. Assume that a TLB has 256 entries.

  1. Show how the bits of a virtual address are used to access the TLB if the TLB is fully associative. Do the same if the TLB is 4-way set associative.

  2. How many bytes of virtual memory are mapped by the fully associative TLB? By the 4-way set associative TLB?

  3. Suppose you wanted to support 2 different page sizes: a 16Kbyte page size and a 1Mbyte page size, in the fully-associative TLB. Discuss options and trade-offs for both modifying the TLB or adding additional structures/mechanisms.

  4. Suppose you wanted to support 2 different page sizes: a 16Kbyte page size and a 1Mbyte page size, in the 4-way set-associative TLB. Discuss options and trade- offs for both modifying the TLB or adding additional structures/mechanisms.

2. Sharing Patterns & Implications

While shared memory programs can share information in arbitrary ways, there can be value in a taxonomy of sharing patterns, such as Weber and Gupta’s classification of sharing into read-only, migratory, mostly-read, frequently read/written, and synchronization.

  1. Describe memory reference characteristics for each of Weber and Gupta’s classification (or another classification of your choosing).

  2. How might cache coherence protocols be adapted to target reference patterns from part (a)?

  3. How might other memory systems aspects be adapted to target reference patterns from part (a)?

6. Special vs. General Purpose Processors

Computer designers have for long proposed special-purpose architectures that are very effective at carrying out a specific function, but are less adept than general-purpose processors for running of variety of different applications. Today, with semiconductor technology providing plentiful transistor resources, many are proposing to integrate special-purpose accelerators alongside general-purpose processors. Others are arguing against special-purpose accelerators.

  1. Argue why and under what conditions, if any, special-purpose accelerators are a good idea going forward.

  2. Argue why and under what conditions, if any, special-purpose accelarators are not a good idea going forward.