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

CSE 490/590 – Midterm Exam –2025. V2 Solution|100% Answered Correctly.

Rating
-
Sold
-
Pages
7
Grade
A+
Uploaded on
11-07-2025
Written in
2024/2025

CSE 490/590 – Midterm Exam –2025. V2 Solution|100% Answered Correctly.










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

Document information

Uploaded on
July 11, 2025
Number of pages
7
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

Content preview

.CSE 490/590 – Midterm Exam –2025. V2 Solution


[Question 1] (10 Points)
Assume the presence of the following memories in a MIPS system:

i. L1 cache
ii. Main Memory
iii. L3 cache
iv. Registers
v. SSDs
vi. L2 cache
vii. Hard drive

Show the memory hierarchy and order them in terms of (State Increasing or decreasing order):
a. Speed
Registers -> L1 -> L2 -> L3 -> Main Memory -> SSDs -> Hard Drive (decreasing)


b. Cost per byte
Registers -> L1 -> L2 -> L3 -> Main Memory -> SSD -> Hard Drive (decreasing)


a. Memory capacity (Size)
Registers -> L1 -> L2 -> L3 -> Main Memory -> SSD -> Hard Drive (increasing)




[Question 2] (10 Points)
a) Consider a direct-mapped cache of size 4 bytes. Each index in the cache can hold only 1
word (here 1 word = 1 byte). Fill in the missing cache blocks at each step according to
the address reference and specify whether it is a hit or a miss. The initial state of the
cache is provided. Address references are (in order):

Reference: 0x4 0x6 0xC 0x6
Tag Cache Tag Cache Tag Cache Tag Cache Tag Cache
Content Content Content Content Content
10b Mem(0x8) 01b M(0x4) 01b M(0x4) 11b M(0xC) 11b M(0xC)
01b Mem(0x5) 01b M(0x5) 01b M(0x5) 01b M(0x5) 01b M(0x5)
10b Mem(0xA) 10b M(0xA) 01b M(0x6) 01b M(0x6) 01b M(0x6)
11b Mem(0xF) 11b M(0xF) 11b M(0xF) 11b M(0xF) 11b M(0xF)
hit / miss hit / miss hit / miss hit / miss


b) Calculate the hit rate for part a.
¼ = 0.25

, March 12, 2025 CSE 490/590 Spring 2025 Midterm Exam Duration: 40 min



[Question 3] (12 Points)
Consider three different processors P1, P2, and P3 executing the same instruction set.

Processor Clock Speed in GHz CPI
P1 3 2.5
P2 1.5 1.5
P3 4.0 2.0


Which processor has the highest performance expressed in instructions per second?
(1 GHz = 109 Hz). Show your work.

IPS = Cycles per second/CPI

P1: 3/2.5 = 1.2
P2: 1.5/1.5 = 1
P3: 4/2 = 2

P3 is highest performance


[Question 4] (12 Points)
In the following instruction sequence, find all hazards. Rename the registers to eliminate the
anti-dependencies and output dependences. Assume you have FP registers up to $F16 available.
Show your work.

div.s F0, F2, F1
mult.s F1, F0, F6
add.s F0, F2, F12
sub.s F8, F14, F2

Potential hazards
RAW: F0 -> div.s and mult.s;
WAR: F1 -> div.s and mult.s, F0 -> mult.s and add.s
WAW: F0 -> div.s and add.s

div.s F0, F2, F1
mult.s F9, F0, F6
add.s F10, F2, F12
sub.s F8, F14, F2


[Question 5] (12 Points)

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.
melleystuvia Nightingale College
View profile
Follow You need to be logged in order to follow users or courses
Sold
85
Member since
8 months
Number of followers
4
Documents
1247
Last sold
1 hour ago
Edusolutionguides.

We learn all subject preparation for the final exam. We give the online assignment and homework for all the subjects. That's why you prepare well for all the paperwork.

3.0

18 reviews

5
5
4
4
3
2
2
0
1
7

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