The Essentials of Computer Organization and Architecture
The Essentials of Computer Organization and Architecture
4th Edition
ISBN: 9781284045611
Author: Linda Null, Julia Lobur
Publisher: Jones & Bartlett Learning
bartleby

Concept explainers

Expert Solution & Answer
Book Icon
Chapter 6, Problem 13E

a)

Explanation of Solution

In direct mapped cache the address of the main memory is being subdivided into 3 parts and they are:

  • Tag
  • Block
  • Word.

Given:

Byte addressable memory= 4K×8 bytes is required.

log2(4K×8)=215 ; 15 will be the total size of the address.

Number of blocks present in the cache is 8 and it is equivalent to 23blocks.

It requires 3 bits for a block field

b)

Explanation of Solution

Calculating the hit ratio:

  • The first address is 0=(000000000000000)2and is considered to be a miss.
  • Thus the blocks containing in this address is moved to the cache.
  • The block that is moved to the cache is from 010 to 710.
  • According to the bit size of the block field (000)2 is equivalent to 0 and it is being moved to the block 0.
  • All the bytes are now moved to the block 0.
  • The above mentioned process of actions will be continued repeatedly until the address 6310
  • The process will be continued in such a way for every miss there would be 7 hits because the starting block is considered to be as miss.
  • After continuing this process, the cache will be found to be full at this stage.
  • Therefore, there will be 8 misses and 56 hits.
  • At the address is 6410=(000000001000000)2and is considered to be a miss.
  • Thus the blocks containing 8 bytes are moved to the main memory.
  • The block 010 to 710 that resides in the main memory is now being replaced to be 6410 to 6710
  • Therefore, there will be 1 miss and 3 hits.
  • At the end of first loop there will be 9 miss and 59 hits.
  • The above mentioned process will be repeated again and again for the remaining loops.
  • The block that resides in the memory will be again gets replaced.
  • Thus 7 hits will be followed for the bytes that remain in the block.
  • For the remaining bytes till 6310 it will be all hit.
  • There will be 1miss followed by 63 hits which are followed by 1 miss and 3 hits.
  • Therefore, in total there will be 2 misses and 66 hits in the second iteration.
  • The process will be repeated for the next third and fourth loop...

c)

Explanation of Solution

Effective Access time (EAT):

  • EAT is a measure of Hierarchal memory performance.
  • A weighted average that utilizes the hit ratio and the relative access time of the levels present in successful order of the memory hierarchy is called as effective access time.

Formula for the effective access time:

The formula for effective access time where the memory contains two levels that includes a main memory and the cache memory is obtained as shown below:

EAT=H×Accessc+(1-H)×AccessMM

In the above formula,

H=cachehitAccessc=cacheaccesstime

Blurred answer
Students have asked these similar questions
We are doing a custom JSTL custom tag to make display page to access a tag handler.   Write two custom tags: 1) A single tag which prints a number (from 0-99) as words. Ex:    <abc:numAsWords val="32"/>   --> produces: thirty-two   2) A paired tag which puts the body in a DIV with our team colors. Ex:    <abc:teamColors school="gophers" reverse="true">     <p>Big game today</p>     <p>Bring your lucky hat</p>      <-- these will be green text on blue background   </abc:teamColors> Details: The attribute for numAsWords will be just val, from 0 to 99   - spelling, etc... isn't important here. Print "twenty-six" or "Twenty six" ... .  Attributes for teamColors are: school, a "required" string, and reversed, a non-required boolean.   - pick any four schools. I picked gophers, cyclones, hawkeyes and cornhuskers   - each school has two colors. Pick whatever seems best. For oine I picked "cyclones" and       red text on a gold body   - if…
I want a database on MySQL to analyze blood disease analyses with a selection of all its commands, with an ER drawing, and a complete chart for normalization. I want them completely.
Assignment Instructions: You are tasked with developing a program to use city data from an online database and generate a city details report. 1) Create a new Project in Eclipse called "HW7". 2) Create a class "City.java" in the project and implement the UML diagram shown below and add comments to your program. 3) The logic for the method "getCityCategory" of City Class is below: a. If the population of a city is greater than 10000000, then the method returns "MEGA" b. If the population of a city is greater than 1000000 and less than 10000000, then the method returns "LARGE" c. If the population of a city is greater than 100000 and less than 1000000, then the method returns "MEDIUM" d. If the population of a city is below 100000, then the method returns "SMALL" 4) You should create another new Java program inside the project. Name the program as "xxxx_program.java”, where xxxx is your Kean username. 3) Implement the following methods inside the xxxx_program program The main method…
Knowledge Booster
Background pattern image
Computer Science
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
Text book image
Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education
Text book image
Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON
Text book image
Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON
Text book image
C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON
Text book image
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
Text book image
Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education