Consider a logical address space of 32 pages of 512 words each ,mapped onto a physical memory of 16 frames
1. How many bits are there in the logical addres?
2. How many bits are there in the physical address?
Answers
k
uxlzhzuduritotoy0y t0t5050t9ighoglfofocicixixixkyjdf
Answer:
- 15 bits are there in the logical address
- 14 bits are there in the Physical address
Explanation:
Address Translation:
Given: Consider a logical address space of 32 pages of 512 words each ,mapped onto a physical memory of 16 frames
To find: Bits are there in the logical address and physical address?
Solution:
- Logical address is generated fig the CPU, this address is also called as virtual address.
- Main memory address uses physical address and this address is called as read address.
- Set of all logical address generated by a program is called as logical address space.
- Memory management unit (MMU) is responsible for routine address mapping from virtual to physical address.
we know that Number of pages = virtual memory space / page size.
and Number of frames = physical memory space / frame size.
and page size is equal to frame size.
According to question and given data:
virtual memory space = Number of pages * page size
i.e. virtual memory space = 64 * 512 B
virtual memory space = 26 * 29B
i.e. = 215B.
So, 15 bits are required for virtual memory space.
physical memory space = Number of frames * frame size.
physical memory space = 32 * 512 B
physical memory space = 25 * 29B
i.e. = 214B.
So, 14 bits are required for virtual memory space