The Gateway to Computer Science Excellence
First time here? Checkout the FAQ!
0 votes

This is one of a question in a past paper:

On a simple paging system with $4GB$ of physical memory,$16GB$ of virtual memory,and a page size of $8KB$

asked in Theory of Computation by (7 points)
retagged by | 30 views

1 Answer

0 votes

I hope you are trying to find the number of bits for all the mentioned terms. Assuming word size to be $1$ $Byte$, as nothing is mentioned about it.

Page size is $8KB$ = $2^{3+10}$ = $2^{13}Bytes$. So in page offset $13$ $bits$ are there.

Virtual memory(or logical memory) is $16 GB$ = $2^{4+30}$ = $2^{34}Bytes$. So total bits in virtual address is $34 bits$.

This means that page number has $34 -13 = 21 bits $.

Physical memory is $4GB$ = $2^{2+30}$ = $2^{32}Bytes$. This means that physical address is $32 bits$. 

Answer would change is word size is NOT 1 Byte.

answered by Junior (557 points)

Related questions

0 votes
1 answer

Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true

38,106 questions
45,608 answers
49,235 users