Document information
- University
- Politecnico di Milano
- Degree programme
- Computer Engineering
- Subject
- Advanced Computer Architectures
- Academic year
- 2013-2014
- 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 Email Address Signature (Firma) Politecnico di Milano, Sept. 26th, 2014 Prof. C. Silvano EX1A ( 2.5points) EX1B ( 2.5points) EX1C ( 2.5points) EX2A ( 5 points) EX2B ( 2.5 points) Q3
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 Email Address Signature (Firma) Politecnico di Milano, Sept. 26th, 2014 Prof. C. Silvano EX1A ( 2.5points) EX1B ( 2.5points) EX1C ( 2.5points) EX2A ( 5 points) EX2B ( 2.5 points) Q3
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 Email Address Signature (Firma) Politecnico di Milano, Sept. 26th, 2014 Prof. C. Silvano EX1A ( 2.5points) EX1B ( 2.5points) EX1C ( 2.5points) EX2A ( 5 points) EX2B ( 2.5 points) Q3 ( 5 points) Q4 ( 5 points) Q5 ( 5 points) Q6 ( 3 points) TOTAL (33 points) (33 points) Course on: Advanced Computer Architectures – Prof. C Silvano EXAM 26/09/2014 – Please write in CAPITAL LETTERS AND BLACK/BLUE COLORS!!! (MAIUSCOLO e COLORE NERO/BLU!!!) Page 1 - SOLUTION EXERCISE 1A – PIPELINE BASIC (2.5 points) Given the following loop expressed in a high level language: do {if ( vectA[i] >= 0 ) vectB[i] = vectA[i]; else vectB[i] = vectC[i]; i++; while (i != N) The program has been compiled in MIPS assembly code assuming that registers $t6 and $t7 have been initialized with values 0 and 4N respectively. The symbols VECTA, VECTB and VECTC are 16-bit constant. The processor clock frequency is 1.2 GHz. Let us consider the loop executed by 5-stage pipelined MIPS processor WITHOUT any optimization in the pipeline (PLEASE don’t consider any inter-iteration dependencies) 1. Identify the RAW (Read After Write) Hazards in the pipeline scheme and identify the Hazard Type (Data Hazard or Control Hazard) in the last column 2. Identify in the first column the number of stalls to be inserted before each instruction (or between the stage IF and ID of each instruction) necessary to solve the hazard Course on: Advanced Computer Architectures – Prof. C Silvano EXAM 26/09/2014 – Please write in CAPITAL LETTERS AND BLACK/BLUE COLORS!!! (MAIUSCOLO e COLORE NERO/BLU!!!) Page 2 - SOLUTION Num. Stalls THEN Num. Stalls ELSE Instruction C1 C2 C3 C4 C5 C6 C7 C8 C9 C10 C11 C12 C13 Hazard Type THEN Hazard Type…
First page of the document.