If there are 64 segments, each of size 2KB, then how many bits should a…
2018
If there are 64 segments, each of size 2KB, then how many bits should a logical address have?
- A.
11 bits
- B.
6 bits
- C.
5 bits
- D.
17 bits
Attempted by 113 students.
Show answer & explanation
Correct answer: D
In a segmented memory system, the logical address consists of segment number bits and offset bits. With 64 segments, log2(64) equals 6 bits for the segment number. Each segment is 2KB (2048 bytes), requiring log2(2048) equals 11 bits for the offset. Adding these together gives a total logical address size of 6 plus 11, which equals 17 bits.