Document information
- University
- Politecnico di Milano
- Degree programme
- Computer Engineering
- Subject
- Advanced Computer Architectures
- Academic year
- 2017-2018
- Classification
- Exam · Full exam
- Content
- Exam paper only
- Original format
- Text
- Searchable text
Full exam for Advanced Computer Architectures in the Computer Engineering degree programme at Politecnico di Milano. The document covers: Course on Advanced Computer Architectures Surname (Cognome) SOLUTION Name (Nome) POLIMI ID Number Signature (Firma) Politecnico di Milano, February 21st, 2018 Prof. D. Sciuto Prof. C. Silvano EX1 ( 6 points) EX2 ( 6 points) EX3 ( 4 points) Q1 ( 6 points) Q2 ( 5 points) Q3 ( 5
Full exam for Advanced Computer Architectures in the Computer Engineering degree programme at Politecnico di Milano. The document covers: Course on Advanced Computer Architectures Surname (Cognome) SOLUTION Name (Nome) POLIMI ID Number Signature (Firma) Politecnico di Milano, February 21st, 2018 Prof. D. Sciuto Prof. C. Silvano EX1 ( 6 points) EX2 ( 6 points) EX3 ( 4 points) Q1 ( 6 points) Q2 ( 5 points) Q3 ( 5
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.
Course on Advanced Computer Architectures Surname (Cognome) SOLUTION Name (Nome) POLIMI ID Number Signature (Firma) Politecnico di Milano, February 21st, 2018 Prof. D. Sciuto Prof. C. Silvano EX1 ( 6 points) EX2 ( 6 points) EX3 ( 4 points) Q1 ( 6 points) Q2 ( 5 points) Q3 ( 5 points) TOTAL (32 points) Course on: Advanced Computer Architectures – Prof. C Silvano EXAM 21/02/2018 – Please write in CAPITAL LETTERS AND BLACK/BLUE COLORS!!! (MAIUSCOLO e COLORE NERO/BLU!!!) Page 1 - SOLUTION EXERCISE 1 – MULTI-CYCLE PIPELINE (6 points) In this problem we will examine the execution of the following code segment on the following single-issue out-of-order processor: for (i =0; i < N; i ++) FOR: beq $t6,$t7, END lw $t2,VECTB($t6) vectA[i] = vectB[i]; sw $t2,VECTA($t6) vectC[i] = vectC[i] + k; lw $t2,VECTC($t6) addi $t2,$t2,k sw $t2,VECTC($t6) addi $t6,$t6,4 j FOR END Course on: Advanced Computer Architectures – Prof. C Silvano EXAM 21/02/2018 – Please write in CAPITAL LETTERS AND BLACK/BLUE COLORS!!! (MAIUSCOLO e COLORE NERO/BLU!!!) Page 2 - SOLUTION You can assume that: All functional units are pipelined ALU operations take 1 cycle Memory operations take 3 cycles (includes time in ALU) The Write Back unit has a single write port There is no register renaming Instructions are fetched, decoded and issued in order An instruction will only enter the ISSUE stage if it does not cause a WAR or WAW hazard Only one instruction can be issued at a time, and in the case multiple instructions are ready, the oldest one will go first Program Counter calculation for conditional and unconditional branches is anticipated in the ISSUE stage No Branch Prediction and no Branch Target Buffer No simultaneous Read and Write in the Register File at the same address Fill in the…
First page of the document.