Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Given a virtual address and a type of access (Read, Write, eXecute), determine the physical address accessed. If the translation fails or the permissions do
Given a virtual address and a type of access (Read, Write, eXecute), determine the physical address accessed. If the translation fails or the permissions do not allow that type of access, the correct answer is FAULT. If the translation succeeds and the access type is permitted, the correct answer is the entire physical address to be accessed by the MMU (page frame number and offset).
Given my choices for virtual page number length, how big is my virtual address space in pages? In bytes?
How big is my physical address space in pages? In bytes?
I've perfected my machine's page table implementation. I need you independently verify my implementation. Note: I've expressed all of the numbers in binary. I've decided to use 4 bits for my page offset and 6 bits for virtual page number. The most significant 3 bits are used to index the page directory and the next 3 bits are used to index the corresponding page table. \begin{tabular}{|c|c|c|} \hline \multicolumn{1}{c|}{} & \multicolumn{2}{c|}{ Page Directory } \\ \hline Index & Valid & Page Table \\ \hline 000 & 0 & PT2 \\ \hline 001 & 1 & PT5 \\ \hline 010 & 0 & PT4 \\ \hline 011 & 1 & PT3 \\ \hline 100 & 0 & PT6 \\ \hline 101 & 0 & PT7 \\ \hline 110 & 0 & PT1 \\ \hline 111 & 1 & PT0 \\ \hline \end{tabular} \begin{tabular}{|c|c|c|c|c|c|} \hline \multicolumn{1}{c|}{} & \multicolumn{3}{l}{ Page Table: 5} \\ \hline Index & Valid & PFN & R & W & X \\ \hline 000 & 1 & 011000 & 1 & 0 & 1 \\ \hline 001 & 0 & 000001 & 1 & 1 & 1 \\ \hline 010 & 0 & 001010 & 0 & 1 & 1 \\ \hline 011 & 0 & 000010 & 1 & 0 & 1 \\ \hline 100 & 0 & 101101 & 0 & 1 & 1 \\ \hline 101 & 0 & 000001 & 1 & 1 & 1 \\ \hline 110 & 0 & 000001 & 0 & 0 & 0 \\ \hline 111 & 0 & 010011 & 1 & 1 & 0 \\ \hline \end{tabular} Page Table: 3 \begin{tabular}{|c|c|c|c|c|c|} \hline Index & Valid & PFN & R & W & X \\ \hline 000 & 1 & 101010 & 1 & 1 & 0 \\ \hline 001 & 0 & 111101 & 1 & 1 & 1 \\ \hline 010 & 0 & 100011 & 0 & 1 & 1 \\ \hline 011 & 1 & 000110 & 1 & 0 & 0 \\ \hline 100 & 0 & 000001 & 0 & 1 & 1 \\ \hline 101 & 0 & 001010 & 1 & 1 & 1 \\ \hline 110 & 0 & 000010 & 0 & 0 & 0 \\ \hline 111 & 0 & 101101 & 1 & 1 & 0 \\ \hline \end{tabular}
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started