Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

What is the physical address corresponding to logical address 6? Answer: Logical

ID: 3838119 • Letter: W

Question

What is the physical address corresponding to logical address 6?

Answer:

Logical: byte 2 in page 1 (i.e., the 3rd byte)

Physical: byte 2 in frame 6 (per the page table)

Therefore: physical address = 6 * + 2 = 26

Kindly explain how to get these answers above?

32-byte memory 16-byte address space

4-byte pages 4-bit logical addresses 5-bit physical addresses

4 15 619 81m 32 1111 page table 121 m 12 131 n 14 15 16 gical memory 20 | a 24 28 physical memory abcdef ijklmnop abcdefgh 5612 ta 0 123g ab cd jk I ef ghi kl| m n o p er 01234 5 6 7-8 9 10 11 2 3 45-al

Explanation / Answer

Solution:

Ans: 4-bit logical address.

The logical memory here consists of consequent data of 16 bytes totally (0-15 bytes).

The page table consists of page number and frame number. It consists of pages 0-3 and frames 0-7, totally 4 pages and 8 frames.

The page number points to logical blocks and the frame number points to the physical blocks of memory.

The physical memory consists of 8frames (0-7) and each frame has 4 bytes data (0-3).

We want to calculate the physical address of data in 6th byte of logical address.

To know that using page table,

6th byte of logical data resides in 1st block which means page number 1. In the page table, page 1 has its corresponding frame number 6.

So, the logical 6th byte data resides in the frame 6 of physical memory. As the logical data is of 1byte (4bits each) and as it is the 3rd byte of 6th frame, the starting physical address is

Frame number * physical address size + location of the data =6*4+2 = 26

Where,

Frame number = 6

Physical address size = 4 bits

Location of data = 2(3rd byte in 0-3 bytes)

Hope this helps you. Thank you.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote