edited by
948 views
2 votes
2 votes
  • 16 bit virtual address space
  • 20 bit physical address space

Page Table

      0x1F
      0x3F
      0x23
      0x17

What are the physical address for virtual address 0xF0F0 and 0x001F?

edited by

1 Answer

Best answer
6 votes
6 votes

Here Page table entry is described by 8 bits.

Hence block offset = 20-8 = 12 bits.

Now in virtual address => total bits - block offset = bits for pages = > 16-12 = 4 bits (Hence pages must be 16) but given only 4 in PT.

Still for virtual address 0xF0F0 = 1111 0000 1111 0000 => last 12 bits = block offset AND first 4 bits = page Number. Page is not present  Hence Physical address =NA

for virtual address 0x001F = 0000 0000 0001 1111 => last 12 bits = block offset AND first 4 bits = page Number. I have taken it as first page(since page number =0000). Hence Physical address = Frame No + offset = 0x1F01F

selected by

Related questions

2 votes
2 votes
0 answers
1
srestha asked Nov 24, 2017
1,258 views
Which one is TRUE? Give explaination1)The main reason to have multilevel page to speed up address translation2)The main reason to have hardware TLB to speed up address tr...
2 votes
2 votes
1 answer
2
A_i_$_h asked Sep 21, 2017
2,342 views
a) What is address translation table??b) is it converting virtual adress to physical address??c) if so Then for a system having no virtual memory , will not have aaddress...
0 votes
0 votes
0 answers
3
Sunnydrall asked May 17, 2016
222 views
1 votes
1 votes
1 answer
4
Monisha asked Nov 28, 2014
558 views
A cpu generates 32- bit virtual address .The page size is 4kb .The processor has a tlb which can hold 128 entries and is 4-way set associative .The minimum size of tlb ta...