100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Exam (elaborations)

CSE 230 Makeup Exam 3 Questions And Answers With Latest Quizzes

Rating
-
Sold
-
Pages
8
Grade
A+
Uploaded on
02-05-2025
Written in
2024/2025

CSE 230 Makeup Exam 3 Questions And Answers With Latest Quizzes










Whoops! We can’t load your doc right now. Try again or contact support.

Document information

Uploaded on
May 2, 2025
Number of pages
8
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

Content preview

CSE 230 Makeup Exam 3 Questions And Answers
With Latest Quizzes
Assume that the cache miss rate for instruction fetch is 4% and the cache miss rate for data fetch/access is 3%.

Assume that a processor has a CPI of 2.5 without any memory stalls and the miss penalty is 260 clock cycles
for each miss.
Also assume that the frequency of all loads and stores in a program is 10%.


a). Assume that I is the instruction account (# of instructions). Compute the total number of memory-stall
cycles.


b). Compute the effective CPI with this cache and its miss rate.


c). Determine how much faster a processor would run with a perfect cache that never misses. i.e., Compute the
ratio of the CPU execution time = CPU_stall / CPI_no_stall

(CPU_stall is the answer from the part b.) ANS a) The total number of memory-stall cycles: 11.18 * I
cycles


b) Effective CPI: 13.68


c) The ratio of the CPU execution time (round to 3 digits after the decimal point): 5.472



L1 Cache is a cache for ___________ ANS cache



L2 Cache is a cache for ____________ ANS main memory



Main memory is a cache for _______________ ANS disks



TLB is a cache for _________________ ANS page table entries



Assume that main memory access take 65 ns and L1 caches are attached to the processor P1.

, a). For the processor P1, L1 miss rate is 10% and L1 hit time is 0.80 ns.


Compute its AMAT (average memory access time).




b). Now we will consider the addition of an L2 cache to the processor P1. Use the L1 cache capacities and hit
time from the part a) when solving the following problem. The L2 miss rate indicated is its local miss rate.


For the processor P1, L2 miss rate is 65% and L2 hit time is 16 ns.

Compute its AMAT. ANS a) AMAT = 7.3 ns

b) AMAT = 6.625 ns



Write-back ANS It updates values only to the block in the cache, then writing the modified block to the
memory when the block is replaced.



Reference bit ANS Tracks whether a page/block has been accessed and is used to implement a block/page
replacement scheme



Dirty Bit ANS It tracks whether a page/block has been written/changed since it was read into the
Memory/cache.



Page Fault ANS Virtual memory miss



Write-through ANS It updates both the cache and memory, ensuring that data is always consistent between
the two.



Write Buffer ANS A queue that holds data while the data is waiting to be written to memory.



Assume that you have a direct-mapped cache with 16 indices and each block can contain 16 words. Assuming
that each bytes address is 32 bits long (and a word is 32 bits), answer the following questions:


a). How many bits in each address are used for its tag?

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
Nipsey Chamberlain School Of Nursing
View profile
Follow You need to be logged in order to follow users or courses
Sold
2042
Member since
5 year
Number of followers
1524
Documents
14950
Last sold
13 hours ago
LECT EXAMS

FOR THE BEST ASSIGNMENTS,TEST BANKS,EASSY AND TO HELP IN TUTORING I have done papers of various topics and complexities. I am punctual and always submit work on-deadline. I write engaging and informative content on all subjects. Send me your research papers, case studies, psychology papers, etc , and I’ll do them to the best of my abilities. Writing is my passion when it comes to academic work. I’ve got a good sense of structure and enjoy finding interesting ways to deliver information in any given paper. I love impressing clients with my work, and I am very punctual about deadlines. Send me your assignment and I’ll take it to the next level. I strive for my content to be of the highest quality. Your wishes come first— send me your requirements and I’ll make a piece of work with fresh ideas, consistent structure, and following the academic formatting rules For every student you refer to me with an order that is completed and paid transparently, I will do one assignment for you, free of charge!!

Read more Read less
4.1

363 reviews

5
212
4
55
3
55
2
14
1
27

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions