Numerical To Calculate Physical Address

Q1. Consider the following segment table:

Segment Base Length Logical Address
0 219 600 430
1 2300 14 10
2 90 100 2500
3 1327 580 3400
4 1952 96 4112

Calculate the Physical Address.

Solu:

Step 1:

Check logical address, it must be less than length.

Formula:

Physical Address = Logical Address + Base Address

So, for segment 0

Length is less than logical address,

that is,        600 > 430.

Therefore,

Physical Address = 430 + 219

= 649

For segment 1

Length is less than logical address,

That is,       14>10.

Therefore,

Physical Address = 10 + 2300

= 2310

For segment 2

Length is not less than logical address,

that is         100 ≥ 2500.

Therefore,

no physical address.

For segment 3

Length is not less than logical address,

that is, 580 ≥ 3400.

Therefore,

no physical address.

For segment 4

Length is not less than logical address,

that is, 96 ≥ 4112.

Therefore,

no physical address.

Leave a Reply

Your email address will not be published. Required fields are marked *

%d bloggers like this: