Document information
- University
- Politecnico di Milano
- Degree programme
- Computer Engineering
- Subject
- Advanced Computer Architectures
- Academic year
- 2024-2025
- Classification
- Exam · Full exam
- Content
- Exam paper only
- Original format
- Text
- Searchable text
Study material for Advanced Computer Architectures, shared by the Studwiz community and reviewed by moderators.
Study material for Advanced Computer Architectures, shared by the Studwiz community and reviewed by moderators.
Import quality: text was extracted directly from the original document.
Representative passages recognised in different parts of the material. The full extracted text remains available to search, while this compact preview makes the page easier to read.
Surname Name POLIMI Personal code Signature SOLUTION Politecnico di Milano, 5 May 2025 Course on Advanced Computer Architectures Prof. C. Silvano EXERCISE 1 ( 5 points) EXERCISE 2 ( 5 points) EXERCISE 3 ( 3 points) QUIZ 4 ( 1 point) QUIZ 5 ( 1 point) TOTAL ( 15 points) QUIZ 6 OPTIONAL + 3 extra points Course on Advanced Computer Architectures EXAM 05/05/2025 – Please write in CAPITAL LETTERS AND BLACK/BLUE COLORS!!! Page 1 - SOLUTION EXERCISE 1.A - SOFTWARE PIPELINING (2 points) Consider the following software pipelined loop SP_LOOP and the corresponding start-up and finish-up code: START_UP: LD F0, 0 (R1) LD F2, 0 (R2) FADD F4, F0, F0 FADD F6, F2, F2 LD F0, 8 (R1) LD F2, 8 (R2) SP_LOOP: SD F4, 0 (R1) SD F6, 0 (R2) FADD F4, F0, F0 FADD F6, F2, F2 LD F0, 16 (R1) LD F2, 16 (R2) ADDUI R1, R1, 8 ADDUI R2, R2, 8 ADD R3, R2, R1 BNE R3, R4, SP_LOOP FINISH-UP: SD F4, 8 (R1) SD F6, 8 (R2) FADD F4, F0, F0 FADD F6, F2, F2 SD F4, 16 (R1) SD F6, 16 (R2) 1. Reconstruct the original (non-pipelined) version of the code: ______________________________________________________________________ ______________________________________________________________________ ______________________________________________________________________ ______________________________________________________________________ ______________________________________________________________________ ______________________________________________________________________ ______________________________________________________________________ ______________________________________________________________________ Course on Advanced Computer Architectures EXAM 05/05/2025 – Please write in CAPITAL LETTERS AND BLACK/BLUE COLORS!!! Page 2 - SOLUTION Feedback: LOOP: LD F0, 0 (R1) LD F2, 0 (R2) FADD F4, F0, F0 FADD F6, F2, F2…
First page of the document.