Podcast
Questions and Answers
The hardware uses the top two bits of the virtual address to determine the ______ register to use
The hardware uses the top two bits of the virtual address to determine the ______ register to use
segment
The bottom 12 bits of the virtual address serve as the ______ into the segment
The bottom 12 bits of the virtual address serve as the ______ into the segment
offset
By adding the base register to the offset, the hardware calculates the final ______ address
By adding the base register to the offset, the hardware calculates the final ______ address
physical
If the offset is greater than or equal to the bounds of the segment, a ______ fault is raised
If the offset is greater than or equal to the bounds of the segment, a ______ fault is raised
Signup and view all the answers
The SEG_MASK value would be set to ______
The SEG_MASK value would be set to ______
Signup and view all the answers
The OFFSET_MASK value would be set to ______
The OFFSET_MASK value would be set to ______
Signup and view all the answers
What is the highest legal virtual address in segment 0?
What is the highest legal virtual address in segment 0?
Signup and view all the answers
What about the lowest legal virtual address in segment 1?
What about the lowest legal virtual address in segment 1?
Signup and view all the answers
What are the lowest and highest illegal addresses in this entire address space?
What are the lowest and highest illegal addresses in this entire address space?
Signup and view all the answers
Finally, how would you run segmentation.py with the -A flag to test if you are right?
Finally, how would you run segmentation.py with the -A flag to test if you are right?
Signup and view all the answers
What base and bounds would you set up so as to get the simulator to generate the following translation results for the specified address stream: valid, valid, violation,..., violation, valid, valid?
What base and bounds would you set up so as to get the simulator to generate the following translation results for the specified address stream: valid, valid, violation,..., violation, valid, valid?
Signup and view all the answers
How should you configure the simulator to generate roughly 90% of valid virtual addresses?
How should you configure the simulator to generate roughly 90% of valid virtual addresses?
Signup and view all the answers
The hardware uses segment registers during ______.
The hardware uses segment registers during ______.
Signup and view all the answers
One common approach is to chop up the address space into segments based on the top few bits of the virtual ______.
One common approach is to chop up the address space into segments based on the top few bits of the virtual ______.
Signup and view all the answers
If we use the top two bits of our 14-bit virtual address to select the segment, our virtual address looks like this: 13 12 11 10 9 ______.
If we use the top two bits of our 14-bit virtual address to select the segment, our virtual address looks like this: 13 12 11 10 9 ______.
Signup and view all the answers
If the top two bits are 00, the hardware knows the virtual address is in the ______ segment.
If the top two bits are 00, the hardware knows the virtual address is in the ______ segment.
Signup and view all the answers
If the top two bits are 01, the hardware knows the address is in the ______.
If the top two bits are 01, the hardware knows the address is in the ______.
Signup and view all the answers
The hardware knows the address is in the heap, and thus uses the heap base and ______.
The hardware knows the address is in the heap, and thus uses the heap base and ______.
Signup and view all the answers