Tutorial 8
Tutorial 8
Exercises CH8
8.1 Name two differences between
logical and physical addresses.
8.1 Name two differences between
logical and physical addresses.
8.1 Name two differences between
logical and physical addresses.
A logical address does not refer to an actual existing
address; rather, it refers to an abstract address in an
abstract address space. Contrast this with a physical
address that refers to an actual physical address in
memory. A logical address is generated by the CPU
and is translated into a physical address by the
memory management unit(MMU). Therefore,
physical addresses are generated by the MMU.
8.3 Why are page sizes always powers
of 2?
8.3 Why are page sizes always powers
of 2?
Recall that paging is implemented by breaking up an
address into a page and offset number. It is most
efficient to break the address into X page bits and Y
offset bits, rather than perform arithmetic on the
address to calculate the page number and offset.
Because each bit position represents a power of 2,
splitting an address between bits results in a page
size that is a power of 2.
8.4 Consider a logical address space of 64 pages of
1,024 words each, mapped onto a physical memory of
32 frames.
a. How many bits are there in the logical address?
b. How many bits are there in the physical address?
Logical Offset
Logical address Page # Page # Offset
address (10 bits)
(binary) (22 bits) (binary) decimal decimal
(decimal) (binary)