Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

CSE490-590 Quiz 1 2025 Quiz 1 – V2| Answered 2025/2026., Exams of Computer Science

CSE490-590 Quiz 1 2025 Quiz 1 – V2| Answered 2025/2026.

Typology: Exams

2024/2025

Available from 07/11/2025

dennis-mburu
dennis-mburu 🇺🇸

100 documents

1 / 6

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
CSE 490/590 Quiz 1 2025/26.
Instructions:
1. This Quiz is closed book and closed notes.
2. You may have pens, pencils, erasers, a calculator, and a water bottle/drink.
3. Electronic devices are NOT ALLOWED during this Quiz, with the exception of a
calculator. You shall NOT share a calculator with others during the Quiz.
4. Place your student ID card on your desk for us to review.
5. When you are finished, remain in your seat and raise your hand and we will come and
collect your Quiz. You must not talk to anyone in the room until your Quiz has been
collected, and you have left the room.
6. Any form of cheating/academic integrity violation, including (but not limited to)
violation of the rules above will result in an automatic 0 for the Quiz.
Please fill your name in the blank and sign the statement below:
I, ,
have read, and acknowledge that I will adhere to the instructions above and if not followed, I will
accept the penalty given by the instructor.
Signature:
STOP!! PLEASE DO NOT START THE QUIZ
UNTIL YOU ARE TOLD TO DO SO
FOR GRADERS ONLY:
Q1: 6 points
Q2: 6 points
Q3: 6 points
Q4: 10 points
Q5: 12 points
Q6: 10 points
Total: 50 points
pf3
pf4
pf5

Partial preview of the text

Download CSE490-590 Quiz 1 2025 Quiz 1 – V2| Answered 2025/2026. and more Exams Computer Science in PDF only on Docsity!

CSE 490/590 – Quiz 1 2025/26. Instructions:

  1. This Quiz is closed book and closed notes.
  2. You may have pens, pencils, erasers, a calculator, and a water bottle/drink.
  3. Electronic devices are NOT ALLOWED during this Quiz, with the exception of a calculator. You shall NOT share a calculator with others during the Quiz.
  4. Place your student ID card on your desk for us to review.
  5. When you are finished, remain in your seat and raise your hand and we will come and collect your Quiz. You must not talk to anyone in the room until your Quiz has been collected, and you have left the room.
  6. Any form of cheating/academic integrity violation, including (but not limited to) violation of the rules above will result in an automatic 0 for the Quiz. Please fill your name in the blank and sign the statement below: I, , have read, and acknowledge that I will adhere to the instructions above and if not followed, I will accept the penalty given by the instructor. Signature: STOP!! PLEASE DO NOT START THE QUIZ UNTIL YOU ARE TOLD TO DO SO FOR GRADERS ONLY: Q1: 6 points Q2: 6 points Q3: 6 points Q4: 10 points Q5: 12 points Q6: 10 points Total: 50 points

[Question 1] (6 Points) Suppose that we want to enhance the processor used for web serving. The new processor is 4 times faster on computation in a given web serving application than the original processor. Assuming that the original processor was busy with computation 60% of the time and was waiting for I/O 40% of the time, what is the overall speedup gained by incorporating the enhancement? Show your work. [Question 2] (6 Points) A program's run time for a given processor is determined using the number of instructions per program, the number of cycles per instruction, and clock frequency of the processer. Consider a program with the following instruction mix. Find the CPI for the same. Show your work. Instructions % cycle branch 20% 3 integer ALU 45% 1 load 20% 4 sw 15% 2

Updated [Question^ 3]^ (6^ Points)^ Provide^ the^ binary^ representation^ for^ the^ following^ instruction:^ [Use

Green Sheet attached] (Show your work) lw $s1,6($t1)

Updated [Question^ 5]^ (12^ Points)^ Given^ the^ following^ single^ cycle^ MIPS^ datapath:

a. For each of the following instructions, list the stages that are necessary for the execution of the given instruction: (IF, ID, EX, MEM, WB) i. add $t6, $s3, $s ii. b. For each of the following instructions, list the component numbers (as shown in the diagram above) that are required for the given instruction: i. add $t6, $s3, $s

in red

Page 5 sw $s3, 24($s1)

Instr. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 Page 6 sub $s4, $s2, $s lw $t0, 8($s1) addi $t1, $t0, 2 sw $t0, 4($s1) ii. sw $s3, 24($s1)

in green

Updated [Question^ 6]^ (10^ Points)

Consider the following MIPS instruction sequence: add $s3, $s2, $s a. Find the data (RAW) hazards for the above instruction sequence and explain why it creates such hazard(s). (3 Points)

Line 2 reads from $s3 while line 1 hasn't updated the value stored in the register yet,

causing a RAW hazard.

Line 4 and 5 read from $t0 while line 3 hasn't fetched the data from memory yet,

causing a RAW hazard.

b. Show the pipeline diagram after inserting Data Forwarding Unit to overcome data dependencies: (5 Points)