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.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s