Kristina
Kristina

Reputation: 1

Converting virtual address to physical address. Task solving

I have this: picture

We have 64KB virtual addresses space, 32KB physical adress space, page and frame sizes are 4KB.

And I want to convert the logical addresses 20, 4010, 8300 to a physical addresses.

How can I find the physical addresses?

I tried looking at this : Convert logical (virtual) address to physical address but it wasn't very helpful.

Thanks

Upvotes: 0

Views: 824

Answers (1)

D-hash-pirit
D-hash-pirit

Reputation: 437

page size = offset, when you translate virtual address to physical address, the offset will not change, you need the #page to find the #frame num from the page table.the add offset.first transfer 20 to binary, 12 bits for offset 4 bits for page num, 3 bits for frame num.

Upvotes: 1

Related Questions