Question: Segmentation We use simulator segmentation.py to study how virtual - to - physical address translation works with segmentation. We ran a configuration and got the

Segmentation
We use simulator segmentation.py to study how virtual-to-physical
address translation works with segmentation. We ran a configuration
and got the following output with a slight modification.
ARG address space size 2K
ARG phys mem size 1M
Segment register information:
Segment 0 base (grows positive) : 682573(decimal)
Segment 0 limit : 1014(decimal)
Segment 1 base (grows negative) : 10934(decimal)
Segment 1 limit : 869(decimal)
For the following problem, you should assume a simple address
with two segments. Note that the base/limit pairs given to you
in different directions, depending on the segment, i.e., segme
grows in the positive direction, whereas segment 1 in the nega
Given the above configuration, perform address translation for the
following three questions at the right side.
1) For Virtual Address 1,980(decimal), if it is an out-of-bounds address, fill in the blank with -1, otherwise fill in the blank with the mapped physical address in decimal format.
2) For Virtual Address 413(decimal), if it is an out-of-bounds address, fill in the blank with -1, otherwise fill in the blank with the mapped physical address in decimal format.
3) For Virtual Address 1,136(decimal), if it is an out-of-bounds address, fill in the blank with -1, otherwise fill in the blank with the mapped physical address in decimal format.
Segmentation We use simulator segmentation.py to

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!