Question: Suppose the virtual address space is 1 Mbytes, the physical memory size is 4 Mbytes, and the page / frame size is 1 6 Kbytes.

Suppose the virtual address space is 1Mbytes, the physical memory size is 4Mbytes, and the page/frame size is 16 Kbytes. So we will have:
i. Number of bits for virtual/logical address =,t=20 bits
ii. Number of bits for physical address =q,PA=22 bits
iii. Number of bits for offset (d)=q,d=14 bits
iv. Number of bits for page number (p)=p=6 bits
v. Number of bits for frame number (f)=q,f=8 bits
Suppose you are writing a C program to translate a given logical/virtual address (LA) to a physical address (PA) in the above system. Using the given bits above, show us what C statements would you use to determine pnum, fnum, and PA.
unsigned int pnum, dnum, fnum ,PA;
unsigned int LA=0xF28A3; //11110010100010100011
dnum =
// give your statement using the following format with the correct flag and put just one space character between tokens
 Suppose the virtual address space is 1Mbytes, the physical memory size

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 Databases Questions!