How many bits of the address is the block offset

Assignment Help Computer Engineering
Reference no: EM133553558

Computer Architecture

Question 1

Consider a 64-byte size virtually indexed cache with 8 byte blocks, an associativity of 2, write-back policy, and LRU replacement. Virtual addresses are 16 bits. The physical memory is 16 KiB.

(a) How many bits of the address is the block offset?

(b) How many bits of the address is the index?

(c) How many bits of the address is the tag?

(d) How many bits are needed in hardware to implement the cache?

(e) A problem with virtually-indexed caches are synonyms, or aliases, which occur when multiple virtual addresses map to the same physical address. This is a problem because the cache may store data for the same physical address at different locations (sets) in the cache. In order to avoid this problem, the page size must be big enough that the virtual index is part of the physical address (i.e., part of the page offset). For this cache, what is the minimum page size (in bytes) in order to avoid this problem?

(f) Suppose that each page table entry (PTE) requires 4 additional reserved bitsother than required by the hardware translation algorithm to determine the physical page (frame) number, and PTEs must be an integral number of bytes. If the page table is one level (flat/array), how large (in bytes) is the page table?

Question 2

(g) Assume 1 KiB page size and a 4-entry fully associative TLB with pseudo-LRU replacement. If a physical page must be allocated (i.e., the virtual page is on disk), assume the new page number is the current largest page number plus one. The initial TLB, cache, and page table states are given in the following three tables.

Initial TLB:

LRU1

LRU2

Valid

Tag (Virtual Page Number)

Physical Page Number

1

1

1

11

12

1

3

6

1

1

5

11

0

4

9

Page table: (Invalid mappings omitted)

      Virtual Page Number

Valid

Physical Page Number or In Disk

0

1

5

3

1

6

4

1

9

5

1

11

7

1

4

10

1

3

11

1

12

Cache (first row has set index 0, last row has set index 3):

LRU

Valid

Tag (Base 10)

0

0

1490

1

22

1

1

27

1

105

1

1

398

0

1984

0

0

442

0

311

Complete the following table, showing for each access whether it is a hit in the TLB (answer with hit or miss), a hit in the cache or the kind of miss (hit, compulsory, capacity, or conflict), a page fault (yes or no), and the state of the TLB and Cache after the access completes. The first one has been done for you. Show the final state of the page table after all the accesses.

A sequence of accessed virtual addresses (in decimalbyte address) is: 6900, 11730, 3369, 13672, 6896, 50797, 3372

Attachment:- Computer Architecture.rar

Reference no: EM133553558

Questions Cloud

Analyze the rhetorical elements of a piece of communication : Identify and analyze the rhetorical elements of piece of communication. Assess effectiveness of a speaker's choices, in relation to rhetorical situation.
Define experience expectant : Define experience expectant, experience dependent and plasticity. Please give an example of each.
Why must children immunisation status : Why must children's immunisation status be monitored and what does this involve?
What problems do you anticipate you would have to deal with : What problems do you anticipate you would have to deal with in implementing your group program? Can you think of ways to work within the system and avoid
How many bits of the address is the block offset : CS 5200 Computer Architecture, University of Colorado Colorado Springs - How many bits of the address is the block offset and How many bits are needed
What is autism spectrum disorder : What is Autism Spectrum Disorder (ASD)? Indicators and warning signs of ASD? Early intervention and referrals?
Discuss which profession you would be most interested : Now that you have a better understanding of the various Allied Health Professions, if you had to choose one, discuss which Profession you would be most
How early childhood educators are required to act : Mandate describing what early childhood educators must or must not do. They describe how early childhood educators are required to act.
What movements are considered essential for success : What movements are considered essential for success and what motions are most common in the game of football? Which planes interact with each joint in football?

Reviews

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd