A special purpose microprocessor performs the following sequence of operations repetitively: i. Fetch an instruction from...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
A special purpose microprocessor performs the following sequence of operations repetitively: i. Fetch an instruction from memory, ii. Decode it, iii. Fetch two operands A and B, iv. Execute the instruction and v. Write the result to memory The decode and execute operations take a clock cycle each. Each read or write from/to the memory takes 3 clock cycles. We propose to add a fast on-chip cache for all memory accesses to speed up its operation. A read from or a write to the cache can be done in a single clock cycle. The internal data paths are so designed that up to two data operands can be fetched together in a single clock cycle, if found in the cache. However, the bus to the main memory permits only a single read/write, which takes 3 clock cycles. (Notice that it is possible that one operand is in the cache but not the other. In this case the two operand fetches will proceed in parallel - one from the cache and the other from the external memory.) a) Assume that the probability of finding any address (for instruc- tion, operand or the result) in the cache is P. Find the average number of clock cycles taken for completing an instruction on the microprocessor. The answer must be given as a fully simplified function of P. b) What should be the value of P if we want to cut the average time taken for instruction execution to half (as compared to operation without cache). c) An empirical model relates the cache size to the probability of finding an address in it as: Cache Size (in KB) = P/(1-P). What cache size should we use to cut the average instruction ex- ecution time to half? A special purpose microprocessor performs the following sequence of operations repetitively: i. Fetch an instruction from memory, ii. Decode it, iii. Fetch two operands A and B, iv. Execute the instruction and v. Write the result to memory The decode and execute operations take a clock cycle each. Each read or write from/to the memory takes 3 clock cycles. We propose to add a fast on-chip cache for all memory accesses to speed up its operation. A read from or a write to the cache can be done in a single clock cycle. The internal data paths are so designed that up to two data operands can be fetched together in a single clock cycle, if found in the cache. However, the bus to the main memory permits only a single read/write, which takes 3 clock cycles. (Notice that it is possible that one operand is in the cache but not the other. In this case the two operand fetches will proceed in parallel - one from the cache and the other from the external memory.) a) Assume that the probability of finding any address (for instruc- tion, operand or the result) in the cache is P. Find the average number of clock cycles taken for completing an instruction on the microprocessor. The answer must be given as a fully simplified function of P. b) What should be the value of P if we want to cut the average time taken for instruction execution to half (as compared to operation without cache). c) An empirical model relates the cache size to the probability of finding an address in it as: Cache Size (in KB) = P/(1-P). What cache size should we use to cut the average instruction ex- ecution time to half?
Expert Answer:
Related Book For
Automation Production Systems and Computer Integrated Manufacturing
ISBN: 978-0132393218
3rd edition
Authors: Mikell P.Groover
Posted Date:
Students also viewed these electrical engineering questions
-
The herbicide trifluralin is prepared by the following sequence of reactions. Identify compound A and deduce the structure of trifluralin. CF3 (CH,CH,CHNH Trifluralin HCompound A CH CIFN204) Cl
-
A segment of human DNA has the following sequence of nucleotide pairs: When this segment of DNA is transcribed by RNA polymerase, what will be the sequence of nucleotides in the RNA transcript?...
-
This project can be done in groups or by individuals. Each person or group must find a set of data, preferably from (but not restricted to) their field of study. The data need to fit the regression...
-
Create the Control Panel interface that has the following 3 methods: public int warningLevel (); public String status (); public boolean isok (); Write 2 public static methods 1) Write a public...
-
Nathan Farmer, chief financial officer of Bosworth Wireless, is responsible for the companys budgeting process. Farmers staff is preparing the Bosworth cash budget for 2013. A key input to the...
-
The Geneva wheel A provides intermittent rotary motion A for continuous motion D of disk D. By choosing d = 2r, the wheel has zero angular velocity at the instant pin B enters or leaves one of the...
-
The Sun has mass \(M_{\odot}=1.9910^{30} \mathrm{~kg}\), radius \(R_{\odot}=7.010^{8} \mathrm{~m}\) and rotates on itself (approximately) in 30 days. Using the data in Table 11.1, determine: 1. the...
-
For the year ended June 30, 2014, net income for Flake Corporation was $14,800. Depreciation expense was $4,000. During the year, Accounts Receivable increased by $8,800, Inventories increased by...
-
(08 Marks) In the Fig.1(c), compare the output of the network, if the activation function is a sigmoid 1 function y=- and (X1, X2) (1, 1). 1+e 1+1 AYY Y YC.) B YC. ye D 46 (06 Marks)
-
This Mini Practice Set will aid in putting the pieces of payroll together. In this project, you are the bookkeeper and will have the responsibility of recording payroll in the payroll register,...
-
Fibonacci numbers appear in nature and art and in classical theories of beauty and proportion. The Fibonacci sequence is defined as F Fn1 + n-2. That is, any number in the sequence is the sum of =
-
Puerto Rico enacted a law that required specific labels on cement sold in Puerto Rico and imposed fines for any violations of these requirements. The law prohibited the sale or distribution of cement...
-
A state legislature enacted a statute that required any motorcycle operator or passenger on the states highways to wear a protective helmet. Jim Alderman, a licensed motorcycle operator, sued the...
-
Marguerite Eaton and Bobby Joe Waldrop moved into a mobile home on land owned by her son, James. Bobby Joe asked James to transfer that portion of the land to him and Marguerite, stating falsely that...
-
Lisa Goldstein reserved space for a marriage ceremony in a building owned by Orensanz Events, LLC, in New York City. The rental agreement provided that on cancellation of the event for any reason...
-
Vals Foods signs a contract to buy 1,500 pounds of basil from Sun Farms, a small organic herb grower, if an independent organization inspects the crop and certifies that it contains no pesticide or...
-
How can business communication strategies be tailored to different stakeholders, such as clients, employees, and shareholders?
-
The Alert Company is a closely held investment-services group that has been very successful over the past five years, consistently providing most members of the top management group with 50% bonuses....
-
What are the four basic components of nearly all automated storage/retrieval systems?
-
What is the difference between manual part programming and computer-assisted part programming?
-
What is the difference between a process parameter and a process variable?
-
A driver holds his hands on opposite sides of the 35-cm-diameter steering wheel in a modern sports car. A torque of 4.5 N m is required to turn the wheel. If the driver applies an equal force on...
-
U.S. nickels have a mass of 5.00 g and are 1.95 mm thick. If you stack 3 nickels on a table, how far above the table is their center of gravity?
-
A gymnast on the uneven parallel bars is at rest, tipped at a 45 angle from the vertical. The distance from her hands to her feet is 1.8 m. If we model her body as having a uniform cross section and...
Study smarter with the SolutionInn App