Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Data Analytics Systems Engineering Cybersecurity Project Management

Authors: Christopher Greco

1st Edition

168392648X, 978-1683926481

More Books

Students also viewed these Databases questions

Question

Does the wording precisely convey the intended meaning? (220)

Answered: 1 week ago