------------------------------------------------------------------------------
MC logo
Mapping Example
[^] Chapter 6: Memory Systems
------------------------------------------------------------------------------
[Chapter 1: Introduction] [Chapter 2: Data Representation] [Chapter 3: Boolean Algebra and Digital Logic] [Chapter 4: MARIE: A Very Simple Architecture] [386 Assembler Language] [Chapter 5: Real-World Architectures] [Chapter 6: Memory Systems] [Chapter 7: I/O Systems] [Chapter 9: Alternative Architecture] [Chapter 11: Performance Measurement]
[Direct-Mapped Cache] [Associative Cache] [Mapping Example] [Segment Allocation]
Typical VM systems use 32-bit addresses, with 20 bits of page number and 12 of page offset. For this example, suppose we have have 12-bit addresses with 4-bit page numbers and 8-bit page offsets.
Virtual Memory
000-0FF
100-1FF
200-2FF
300-3FF
400-4FF
500-5FF
600-6FF
700-7FF
800-8FF
900-9FF
a00-aFF
b00-bFF
c00-cFF
d00-dFF
e00-eFF
f00-fFF
Real Memory
000-0FF
100-1FF
200-2FF
300-3FF
400-4FF
500-5FF
600-6FF
700-7FF
Page Table
0
1
2
3
4
5
6
7
8
9
a
b
c
d
e
f