For the following cache and RAM memories: Cache structure: R 11 01 Tag (D,A,S) Line 0,011,10...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
For the following cache and RAM memories: Cache structure: R 11 01 Tag (D,A,S) Line 0,011,10 X LO 1,110,01 X L1 1,111,00 L2 - L3 10 00 RAM structure: Tag (D,A,S) Word (hexadecimal) 1A3F 0,000,00 Block BO 4680 AADC 0,001,00 Bl BBBB CCCC 0,010,01 B2 1719 A4E8 0,011,01 B3 2F2A BB33 1,100,10 B4 EDEC 5632 1,101,10 B5 999A FF67 1,110,11 B6 007B FEDC 1,111,11 B7 OBC6 The X sign in the Line field of the cache memory means that this line is used with corresponding Tag value in the Tag field, whereas the sign means that this line is not used (empty). Moreover, the binary values in the Tag (D,A,S) field in both of the cache and RAM memories represent the Tag values when these memories use the direct mapping (D), associative mapping (A), and set associative mapping with two sets (S), respectively. Furthermore, the R field in the cache memory is a two- bit value for replacement such that the order: 00, 01, 10, 11 is from the smallest to the largest. (a) If the CPU generated the binary main memory address 0001 and the cache memory uses the direct mapping. Is the read operation Hit or Miss? What is the word the CPU will read? (b) If the CPU generated the binary main memory address 0100 and the cache memory uses the direct mapping. Is the read operation Hit or Miss? What is the word the CPU will read? (c) If the CPU generated the binary main memory address 0100 and the cache memory uses the associative mapping. Is the read operation Hit or Miss? If the read operation is Miss, in which line in the cache memory this block will be stored using the LRU, FIFO, and LFU replacement algorithms? (d) If the CPU generated the binary main memory address 1011 and the cache memory uses the associative mapping. Is the read operation Hit or Miss? If the read operation is Miss, in which line in the cache memory this block will be stored using the LRU, FIFO, and LFU replacement algorithms? (e) If the CPU generated the binary main memory address 0011 and the cache memory uses the set associative mapping with two sets. Is the read operation Hit or Miss? Which block this generated address is referred to? (f) If the CPU generated the binary main memory address 1100 and the cache memory uses the set associative mapping with two sets. Is the read operation Hit or Miss? If the read operation is Miss, in which line in the cache memory this block will be stored using the LRU, FIFO, and LFU replacement algorithms? What is the word the CPU will read? For the following cache and RAM memories: Cache structure: R 11 01 Tag (D,A,S) Line 0,011,10 X LO 1,110,01 X L1 1,111,00 L2 - L3 10 00 RAM structure: Tag (D,A,S) Word (hexadecimal) 1A3F 0,000,00 Block BO 4680 AADC 0,001,00 Bl BBBB CCCC 0,010,01 B2 1719 A4E8 0,011,01 B3 2F2A BB33 1,100,10 B4 EDEC 5632 1,101,10 B5 999A FF67 1,110,11 B6 007B FEDC 1,111,11 B7 OBC6 The X sign in the Line field of the cache memory means that this line is used with corresponding Tag value in the Tag field, whereas the sign means that this line is not used (empty). Moreover, the binary values in the Tag (D,A,S) field in both of the cache and RAM memories represent the Tag values when these memories use the direct mapping (D), associative mapping (A), and set associative mapping with two sets (S), respectively. Furthermore, the R field in the cache memory is a two- bit value for replacement such that the order: 00, 01, 10, 11 is from the smallest to the largest. (a) If the CPU generated the binary main memory address 0001 and the cache memory uses the direct mapping. Is the read operation Hit or Miss? What is the word the CPU will read? (b) If the CPU generated the binary main memory address 0100 and the cache memory uses the direct mapping. Is the read operation Hit or Miss? What is the word the CPU will read? (c) If the CPU generated the binary main memory address 0100 and the cache memory uses the associative mapping. Is the read operation Hit or Miss? If the read operation is Miss, in which line in the cache memory this block will be stored using the LRU, FIFO, and LFU replacement algorithms? (d) If the CPU generated the binary main memory address 1011 and the cache memory uses the associative mapping. Is the read operation Hit or Miss? If the read operation is Miss, in which line in the cache memory this block will be stored using the LRU, FIFO, and LFU replacement algorithms? (e) If the CPU generated the binary main memory address 0011 and the cache memory uses the set associative mapping with two sets. Is the read operation Hit or Miss? Which block this generated address is referred to? (f) If the CPU generated the binary main memory address 1100 and the cache memory uses the set associative mapping with two sets. Is the read operation Hit or Miss? If the read operation is Miss, in which line in the cache memory this block will be stored using the LRU, FIFO, and LFU replacement algorithms? What is the word the CPU will read?
Expert Answer:
Answer rating: 100% (QA)
Certainly Lets break down each scenario a Direct Mapping The CPUgenerated binary main memory address is 0001 In direct mapping each main memory block ... View the full answer
Related Book For
Understanding Basic Statistics
ISBN: 9781111827021
6th Edition
Authors: Charles Henry Brase, Corrinne Pellillo Brase
Posted Date:
Students also viewed these operating system questions
-
105. Chromosome map for the first time was prepared by (1) A. Sturtevant (3) Watson (2) T.H. Morgan (4) Bridges
-
X, Y and Z were partners sharing profits and losses in the ratio 5 : 3 : 2. Their post-closing trial balance as at 30 June 20x1was: (Ignore VAT.) On 1 July, the partners decided to dissolve the...
-
Yvonne is Director, Technical Operations at Data Technologies Ltd (DTL), based in Auckland. She is highly valued for her technical skills. To recognise her valuable skills and to ensure that Yvonne...
-
If a= <1,0,1>, b= <2,1,-1>, and c= <0,1,3>, show that aX(bXc) is not equal (aXb)Xc.
-
You need to pick up a very hot cooking pot in your kitchen. You have a pair of hot pads. Should you soak them in cold water or keep them dry, to be able to pick up the pot most comfortably?
-
Crocs designs, develops, and manufactures consumer products from specialty resins. The company's primary product line is Crocs-branded footwear for men, women, and children. It sells its products...
-
Regarding the recent advances in drilling technologies that permit natural gas to be recovered from shale deposits cost competitively, present arguments from an environmental perspective in favor and...
-
Which method (direct or indirect) of presenting the statement of cash flows is more intuitively logical? Why?
-
conversion costs are incurred evenly throughout the process. The beginning inventory consists of $51,750 of direct materials. ACCOUNT Work in Process-Forging Department ACCOUNT NO. Balance Date Item...
-
Russian is an Indo-European language of the Slavic family, spoken in Russia. Determine from the following Russian data whether the low front [a] and the low back [a] complement each other as...
-
(a)How many banks existed on January 1, 2008? How about September 30, 2020 in USA? (b)Find the number of banks failed (shut down by the regulators) between January 1, 2008, and September 30, 2020, in...
-
Explain why companies are currently turning to private credit funds to obtain debt financing, why private equity-owned companies in particular are searching for private credit financing, and explain...
-
Amidst the evolving landscape of global finance, what are the emerging trends and challenges pertaining to cross-border insolvency regimes, including the harmonization of legal frameworks,...
-
1. What is the current and future outlook for the luxury goods segment? How does Prada stand in the sector and how should it position itself to prosper in the market? 2. What should be Prada's...
-
How the CLT can be used to intuitively explain that the error term in multiple regression is normally distributed.
-
On January 1 , Jin owed a debt of $ 3 0 , 2 6 0 . An agreement was reached that she would pay the debt plus compound interest in 2 4 monthly installments of $ 1 , 4 0 0 , the first payment to be made...
-
Part A Identify the more metallic element from each of the following pairs. Match the words in the left column to the appropriate blanks in the sentences on the right. less more When comparing Zn and...
-
Use Stokes' Theorem to evaluate f(y+sin x) dx+(z+cos y) dy+rdz, where C is the rve r(t) = (sint, cost, sin 2t), t = [0, 2].
-
For a class activity, your group has been assigned the task of generating a quiz question that requires use of the formula for conditional probability to compute P(B | A). Your group comes up with...
-
The western United States has a number of four-lane interstate highways that cut through long tracts of wilderness. To prevent car accidents with wild animals, the highways are bordered on both sides...
-
Let x be a random variable that represents the level of glucose in the blood (milligrams per deciliter of blood) after a 12-hour fast. Assume that for people under 50 years old, x has a distribution...
-
The period of free vibration of a linear system is independent of initial conditions. Indicate whether the statement presented is true or false. If true, state why. If false, rewrite the statement to...
-
A system with a natural frequency of \(10 \mathrm{rad} / \mathrm{s}\) has a shorter period than a system of natural frequency \(100 \mathrm{rad} / \mathrm{s}\). Indicate whether the statement...
-
The natural frequency determined directly from the differential equation of motion has units of Hertz. Indicate whether the statement presented is true or false. If true, state why. If false, rewrite...
Study smarter with the SolutionInn App