Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Memory Addressing. Please show calculations. # Variables: # NBA: number of bits in the virtual address # NBO: number of bits for offset in the

Memory Addressing. Please show calculations.

# Variables: # NBA: number of bits in the virtual address # NBO: number of bits for offset in the virtual address # NBP: number of bits for VPN in the virtual address # NP: number of pages # SA: size of the virtual address space # SP: size of a virtual page

# NBA = log2(SA), or equally SA = 2^NBA

# NBP = log2(NP), or equally NP = 2^NBP # NBO = log2(SP), or equally SP = 2^NBO # NBO + NBP = NBA

#@ 1 If the size of the virtual address space is 32 KB, and # each page is 2 KB, how many page bits in a virtual address? # (enter an NBP value)

#@ 2 How many offset bits? (see previous problem) # (enter an NBO value)

#@ 3 If a page is 4 KB, and there are 32 virtual pages, how # many page bits in a virtual address? # (enter an NBP value)

#@ 4 How many offset bits in a virtual address? (see previous problem) # (enter an NBO value)

#@ 5 If the size of the virtual address space is 32 MB, and there are # 2048 virtual pages, how many page bits in a virtual address? # (enter an NBP value)

#@ 6 How many offset bits in a virtual address? (see previous problem) # (enter an NBO value)

#@ 7 If a virtual address is 8 bits, and there are 32 virtual pages, # how many page bits and offset bits in a virtual address? # (enter an NBP value)

#@ 8 How many offset bits in a virtual address? (see previous problem) # (enter an NBO value)

#@ 9 If a virtual address is 32 bits, and a page is 4 KB, how # many page bits in a virtual address? # (enter a NBP value)

#@ 10 How many offset bits in a virtual address? (see previous problem) # (enter an NBO value)

#@ 11 If there are 1024 virtual pages, and 10 offset bits in a # virtual address, then what is the size of the virtual address space, # in bytes? # (enter an SA value)

#@ 12 If the virtual address space is 64 MB, and there are 12 # page bits in a virtual address, then what is the page size? # (enter an SP value)

#@ 13 If the virtual address space is 32 KB, and each page is 2 KB, # then how many virtual pages are there? # (enter an NP value)

#@ 14 If there are 4096 pages, and each page is 8 KB, then # how many bits in a virtual address? # (enter an NBA value)

#@ 15 If a virtual address has 32 bits, and the number of pages # is 1024*1024, then how many offset bits in a virtual address? # (enter an NBO value)

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

Step: 3

blur-text-image

Ace Your Homework with AI

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

Get Started

Students also viewed these Databases questions