UNIVERSITY OF WISCONSIN-MADISON
Computer Sciences Department
CS 537
Fall 2012
Barton Miller
Quiz #9
Wednesday, November 20

Paging and TLB's

Consider a virtual memory architecture with the following parameters (note that these are the same parameters from Quiz #8):

Design the TLB for the memory mapping architecture that is described above. This cache should be 4-way set associative and have 1024 rows.

  1. On the blank page draw a diagram of the TLB, showing the size of each field in the TLB. Indicate how bits of the VA are used for input to the TLB, and describe the outputs from the TLB.
  2. Describe what features you would need to add to your TLB to prevent the TLB from being flushed on each context switch? Describe any other changes that you would have to make to the processor.
  3. You would need to add a "process ID" field to the the TLB tag field. You would also need to have a "process ID" field in the processor status word. This field in the PSW would be loaded with the current process' ID on each context switch.


For your reference, here are the memory mapping tables from the last quiz:

Two-Level Page Table

And here is the diagram for the TLB:


Diagram of a TLB

Last modified: Mon Nov 19 22:17:03 CST 2012 bart