The diagram below shows a 20‐bit virtual address. Identify the bits of the virtual address that constitute the following fields: VPO      virtual page offset VPN       virtual page number TLBI      TLB index TLBT     TLB tag   19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0                                             b. The diagram below shows a 16‐bit physical address. Identify the bits of the physical address that constitute the following fields: PPO       physical page offset PPN       physical page number 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0

Systems Architecture
7th Edition
ISBN:9781305080195
Author:Stephen D. Burd
Publisher:Stephen D. Burd
Chapter11: Operating Systems
Section: Chapter Questions
Problem 26VE
icon
Related questions
Topic Video
Question

Please help with a, b, and c: 

  1. Consider a virtual memory system that uses paging and a translation lookaside buffer (TLB) to cache the most recent virtual page-to-physical page translations. The following assumptions are made:
  • The memory is byte addressable.
  • Memory accesses are to 4-byte words.
  • Virtual addresses are 20 bits wide.
  • Physical addresses are 16 bits wide.
  • The page size is 4096 bytes.
  • The TLB is 4-way set associative with 16 total entries.

The contents of the TLB and the page table for the first 32 pages are shown in the figure below:

 

TLB

 

Page Table

Index

Tag

PPN

Valid

 

VPN

PPN

Valid

VPN

PPN

Valid

0

03

B

1

 

00

7

1

10

6

0

 

07

6

0

 

01

8

0

11

7

0

 

28

3

1

 

02

9

1

12

8

0

 

01

F

0

 

03

A

1

13

3

0

1

31

0

1

 

04

6

0

14

D

0

 

12

3

0

 

05

3

0

15

B

0

 

07

E

1

 

06

1

0

16

9

0

 

0B

1

1

 

07

8

0

17

6

0

2

2A

A

0

 

08

2

0

18

C

1

 

11

1

0

 

09

3

0

19

4

1

 

1F

8

1

 

0A

1

0

1A

F

0

 

07

5

1

 

0B

6

1

1B

2

1

3

07

3

1

 

0C

B

1

1C

0

0

 

3F

F

0

 

0D

D

0

1D

E

1

 

10

D

0

 

0E

E

0

1E

5

1

 

32

0

0

 

0F

D

1

1F

3

1

 

a. The diagram below shows a 20‐bit virtual address. Identify the bits of the virtual address that constitute the following fields:

VPO      virtual page offset

VPN       virtual page number

TLBI      TLB index

TLBT     TLB tag

 

19

18

17

16

15

14

13

12

11

10

9

8

7

6

5

4

3

2

1

0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

b. The diagram below shows a 16‐bit physical address. Identify the bits of the physical address that constitute the following fields:

PPO       physical page offset

PPN       physical page number

15

14

13

12

11

10

9

8

7

6

5

4

3

2

1

0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

c. Suppose that a reference is made to virtual address 0x7E37C.

    1. Write the binary equivalent of the virtual address in the diagram below.

 

19

18

17

16

15

14

13

12

11

10

9

8

7

6

5

4

3

2

1

0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps

Blurred answer
Knowledge Booster
Instruction Format
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Systems Architecture
Systems Architecture
Computer Science
ISBN:
9781305080195
Author:
Stephen D. Burd
Publisher:
Cengage Learning