Full Name: CS Account:

Size: px
Start display at page:

Download "Full Name: CS Account:"

Transcription

1 THE UNIVERSITY OF BRITISH COLUMBIA CPSC 313: QUIZ 4 October 31, 2018 Full Name: CS Account: Signature: UBC Student #: Important notes about this examination 1. Write your 4 or 5 character CS account both on the CS Account box above and on the next page. 2. You have 45 minutes to write this examination. An empty page is provided for you to answer any questions for which you need extra space. Clearly indicate which question the answer is related to. 3. No notes, books, or any type of unauthorized electronic equipment is allowed. You can have pen or pencil, eraser, your ID, a bottle of water, and a plain or scientific calculator on your desk. No programmable calculators allowed. All other material should be turned off and stored in your bag under your desk. 4. The marks allocated to each question are in square brackets alongside the question. Use this information to help you determine how much time you should spend on each question. Student Conduct during Examinations 1. Each examination candidate must be prepared to produce, upon the request of the invigilator or examiner, his or her UBCcard for identification. 2. Examination candidates are not permitted to ask questions of the examiners or invigilators, except in cases of supposed errors or ambiguities in examination questions, illegible or missing material, or the like. 3. No examination candidate shall be permitted to enter the examination room after the expiration of one half hour from the scheduled starting time, or to leave during the first half hour of the examination. Should the examination run fortyfive (45) minutes or less, no examination candidate shall be permitted to enter the examination room once the examination has begun. 4. Examination candidates must conduct themselves honestly and in accordance with established rules for a given examination, which will be articulated by the examiner or invigilator prior to the examination commencing. Should dishonest behaviour be observed by the examiner(s) or invigilator(s), pleas of accident or forgetfulness shall not be received. 5. Examination candidates suspected of any of the following, or any other similar practices, may be immediately dismissed from the examination by the examiner/invigilator, and may be subject to disciplinary action: i. speaking or communicating with other examination candidates, unless ii. iii. iv. otherwise authorized; purposely exposing written papers to the view of other examination candidates or imaging devices; purposely viewing the written papers of other examination candidates; using or having visible at the place of writing any books, papers or other memory aid devices other than those authorized by the examiner(s); and, v. using or operating electronic devices including but not limited to telephones, calculators, computers, or similar devices other than those authorized by the examiner(s) (electronic devices other than those authorized by the examiner(s) must be completely powered down if present at the place of writing). 6. Examination candidates must not destroy or damage any examination material, must hand in all examination papers, and must not take any examination material from the examination room without permission of the examiner or invigilator. 7. Notwithstanding the above, for any mode of examination that does not fall into the traditional, paper based method, examination candidates shall adhere to any special rules for conduct as established and articulated by the examiner. 8. Examination candidates must follow any additional examination rules or directions communicated by the examiner(s) or invigilator(s). Please do not write in this space: Question 1: Question 2: Question 3: Question 4: Question 5: Question 6: Question 7: Question 8: Question 9:

2 page 2 out of 8 Your CS Account: HEX DEC BIN HEX DEC BIN HEX DEC BIN HEX DEC BIN C D A E B F = = = = = = = = = = = = = = = = c Jonatan Schroeder Not to be copied, used, or revised without the explicit written permission of the copyright owner.

3 page 3 out of 8 [5] 1. Short Answers [2] a. Amongst the following properties of a cache, mark Y or N if it can be determined from its memory mountain or not, respectively. ( ) Associativity ( ) Number of levels ( ) Block size ( ) Total size ( ) Write policy (write-through or write-back) [3] b. Consider a cache with direct-mapped addressing, 32 (2 5 ) cache lines, and block size of 128 (2 7 ) bytes. Assume that, in line 5, the valid bit is on, and the tag has the value 0x34. What is the range of addresses currently stored in this cache line? In other words, which addresses would incur a cache hit on this line? List the addresses in hexadecimal. 0x to 0x

4 page 4 out of 8 [9] 2. The following is the actual configuration of the cache for each core of the Intel Core i9-7900x, a 64-bit deca-core processor released by Intel in mid For each of the cache levels, answer: how many cache lines does this cache have per set and in total? How many sets? If the CPU uses 48-bit memory addressing, how many bits are used to represent the tag, set index and offset in the address? You may present your results as powers of two if you wish. Assume 1KiB = 2 10 B and 1MiB = 2 20 B. a. L1-D: 32 KiB, 8-way set associative, 64-byte blocks b. L2: 1MiB, 16-way set associative, 64-byte blocks c. L3: 1.375MiB (1408KiB), 11-way set associative, 64-byte blocks 1 Total lines Lines per set No. of sets Tag bits Index bits Offset bits L1-D L2 L =

5 page 5 out of 8 [14] 3. A CPU has a 8-way set associative (E = 8) cache, with 64-byte block size (B = 2 6 ), 8 sets (S = 2 3 ), and a least recently used (LRU) replacement policy. For each of the following addresses, calculate its tag, set index and offset. You must present your values in hexadecimal (not binary or decimal). 0x8000 0x8008 0x8144 0x839C 0x8800 0x8AC8 0x9340 Tag Set Index Offset

6 page 6 out of 8 [15] 4. Assume the same cache described in the previous question: 8-way set associative (E = 8) cache, with 64-byte block size (B = 2 6 ), 8 sets (S = 2 3 ), and a least recently used (LRU) replacement policy. Assume that we have the following C declaration: long a[16][128]; You may assume that the first element of the array is stored at the beginning of a block stored in set 0, that sizeof(long) is 8 bytes, and that the array is stored in row-major order (the default for C). Assume an initially cold cache (i.e., the cache does not initially contain any block associated to the code below). You may assume that sum, i and j are stored in registers, and that no other code is using the cache at the same time. What will be the approximate miss rate for each of the following loops? In other words, out of all array accesses, what proportion (as a fraction) will cause a cache miss? Justify your answers! HINT: before attempting this exercise, answer the following questions: How many elements of the array fit in one block of the cache? How many blocks are necessary to fit an entire row of the array? If a[0][0] is stored in set 0, in which set is a[1][0] stored? What about a[2][0]? Which other elements conflict with a[0][0]? [5] a. for (i = 0; i < 16; i++) for (j = 0; j < 512; j++) sum += a[i][j];

7 page 7 out of 8 [5] b. for (j = 0; j < 512; j++) for (i = 0; i < 16; i++) sum += a[i][j]; [5] c. for (j = 0; j < 512; j++) for (i = 0; i < 4; i++) sum += a[i][j];

8 Use this page if you need additional space to answer any question. page 8 out of 8

THE UNIVERSITY OF BRITISH COLUMBIA CPSC 110: MIDTERM 1 Part B May 26, Important notes about this examination

THE UNIVERSITY OF BRITISH COLUMBIA CPSC 110: MIDTERM 1 Part B May 26, Important notes about this examination THE UNIVERSITY OF BRITISH COLUMBIA CPSC 110: MIDTERM 1 Part B May 26, 2014 Last Name: First Name: Signature: UBC Student #: Important notes about this examination 1. This exam has two separate parts. Your

More information

THE UNIVERSITY OF BRITISH COLUMBIA CPSC 261: MIDTERM 1 February 14, 2017

THE UNIVERSITY OF BRITISH COLUMBIA CPSC 261: MIDTERM 1 February 14, 2017 THE UNIVERSITY OF BRITISH COLUMBIA CPSC 261: MIDTERM 1 February 14, 2017 Last Name: First Name: Signature: UBC Student #: Important notes about this examination 1. You have 70 minutes to write the 6 questions

More information

THE UNIVERSITY OF BRITISH COLUMBIA CPSC 121: MIDTERM 2 Group March 12, 2014

THE UNIVERSITY OF BRITISH COLUMBIA CPSC 121: MIDTERM 2 Group March 12, 2014 THE UNIVERSITY OF BRITISH COLUMBIA CPSC 121: MIDTERM 2 Group March 12, 2014 Important notes about this examination 1. You have 40 minutes to complete this exam. 2. No electronic aides (e.g., phones or

More information

MATH 253/101,102,103,105 Page 1 of 12 Student-No.:

MATH 253/101,102,103,105 Page 1 of 12 Student-No.: MATH 253/101,102,103,105 Page 1 of 12 Student-No.: Final Examination December 16, 2015 Duration: 2.5 hours This test has 10 questions on 12 pages, for a total of 80 points. Dr. G. Slade, Dr. C. Macdonald,

More information

CPSC 121 Midterm 1 Friday October 14th, Signature: Section (circle one): 11:00 15:30 17:00

CPSC 121 Midterm 1 Friday October 14th, Signature: Section (circle one): 11:00 15:30 17:00 CPSC 121 Midterm 1 Friday October 14th, 2016 Name: Student ID: Signature: Section (circle one): 11:00 15:30 17:00 You have 70 minutes to write the 9 questions on this examination. A total of 60 marks are

More information

CPSC 121 Sample Final Examination December 2013

CPSC 121 Sample Final Examination December 2013 CPSC 121 Sample Final Examination December 2013 Name: Student ID: Signature: You have 150 minutes to write the 11 questions on this examination. A total of 98 marks are available. Justify all of your answers.

More information

CPSC 320 Midterm 2. July 13, 2007

CPSC 320 Midterm 2. July 13, 2007 CPSC 0 Midterm July, 007 Name: Student ID: Signature: You have hour to write the 5 questions on this examination. A total of 0 marks are available. Justify all of your answers. Keep your answers short.

More information

The University of British Columbia Final Examination - December 02, 2014 Mathematics 308. Closed book examination. No calculators.

The University of British Columbia Final Examination - December 02, 2014 Mathematics 308. Closed book examination. No calculators. The University of British Columbia Final Examination - December 02, 2014 Mathematics 308 Closed book examination. No calculators. Time: 2.5 hours Last Name First Signature Student Number No books, notes,

More information

CPSC 121 Some Sample Questions for the Final Exam Tuesday, April 15, 2014, 8:30AM

CPSC 121 Some Sample Questions for the Final Exam Tuesday, April 15, 2014, 8:30AM CPSC 121 Some Sample Questions for the Final Exam Tuesday, April 15, 2014, 8:30AM Name: Student ID: Signature: Section (circle one): George Steve Your signature acknowledges your understanding of and agreement

More information

CPSC 121 Midterm 1 Friday February 5th, Signature: Section (circle one): Morning Afternoon

CPSC 121 Midterm 1 Friday February 5th, Signature: Section (circle one): Morning Afternoon CPSC 121 Midterm 1 Friday February 5th, 2016 Name: Student ID: Signature: Section (circle one): Morning Afternoon You have 70 minutes to write the 8 questions on this examination. A total of 60 marks are

More information

Question Marks 1 /12 2 /6 3 /14 4 /8 5 /5 6 /16 7 /34 8 /25 Total /120

Question Marks 1 /12 2 /6 3 /14 4 /8 5 /5 6 /16 7 /34 8 /25 Total /120 CSC 326, Midterm October 25, 2004 Name: Student ID: Signature: You have 75 minutes to write the 8 questions on this examination. A total of 120 marks is available. Justify all of your answers You may use

More information

Question Marks 1 /20 2 /16 3 /7 4 /10 5 /16 6 /7 7 /24 Total /100

Question Marks 1 /20 2 /16 3 /7 4 /10 5 /16 6 /7 7 /24 Total /100 CSC 460/660, Midterm March 14, 2005 Name: Student ID: Signature: You have 75 minutes to write the 7 questions on this examination. A total of 100 marks is available. Justify all of your answers You may

More information

UNIVERSITY REGULATIONS

UNIVERSITY REGULATIONS CPSC 221: Algorithms and Data Structures Midterm Exam, 2015 October 21 Name: Student ID: Signature: Section (circle one): MWF(101) TTh(102) You have 90 minutes to solve the 8 problems on this exam. A total

More information

UNIVERSITY REGULATIONS

UNIVERSITY REGULATIONS CPSC 221: Algorithms and Data Structures Midterm Exam, 2013 February 15 Name: Student ID: Signature: Section (circle one): MWF(201) TTh(202) You have 60 minutes to solve the 5 problems on this exam. A

More information

Computer Science 304

Computer Science 304 The University of British Columbia Computer Science 304 Final Examination Instructor: Rachel Pottinger Time: 2.5 hours Total marks: 48 Name ANSWER KEY (PRINT) (Last) (First) Signature This examination

More information

CPSC 411, 2015W Term 2 Midterm Exam Date: February 25, 2016; Instructor: Ron Garcia

CPSC 411, 2015W Term 2 Midterm Exam Date: February 25, 2016; Instructor: Ron Garcia CPSC 411, 2015W Term 2 Midterm Exam Date: February 25, 2016; Instructor: Ron Garcia This is a closed book exam; no notes; no calculators. Answer in the space provided. There are 8 questions on 14 pages,

More information

CPSC 311, 2010W1 Midterm Exam #2

CPSC 311, 2010W1 Midterm Exam #2 CPSC 311, 2010W1 Midterm Exam #2 2010/11/02 Page 1 of 18 CPSC 311, 2010W1 Midterm Exam #2 Name: Q1: 20 Student ID: Q2: 20 Signature (required; indicates agreement with rules below): Q3: 20 Q4: 20 Q5: 20

More information

Question Marks 1 /11 2 /4 3 /13 4 /5 5 /11 6 /14 7 /32 8 /6 9 /11 10 /10 Total /117

Question Marks 1 /11 2 /4 3 /13 4 /5 5 /11 6 /14 7 /32 8 /6 9 /11 10 /10 Total /117 CSC 326, Midterm November 3, 2005 Name: Student ID: Signature: You have 75 minutes to write the 10 questions on this examination. A total of 117 marks is available. Justify all of your answers You may

More information

The University of Oregon May 16, 2015 Oregon Invitational Mathematics Tournament:

The University of Oregon May 16, 2015 Oregon Invitational Mathematics Tournament: The University of Oregon May 16, 2015 Oregon Invitational Mathematics Tournament: losed book examination Geometry Exam Time: 90 minutes Last Name First Name School Grade (please circle one): 7 8 9 10 11

More information

Question Marks 1 /16 2 /13 3 /12 4 /15 5 /8 6 /15 7 /8 8 /5 9 /8 Total /100

Question Marks 1 /16 2 /13 3 /12 4 /15 5 /8 6 /15 7 /8 8 /5 9 /8 Total /100 CSC 460/660, Midterm March 22, 2006 Name: Student ID: Signature: You have 75 minutes to write the 9 questions on this examination. A total of 100 marks is available. Justify all of your answers You may

More information

MARKING KEY The University of British Columbia MARKING KEY Computer Science 260 Midterm #1 Examination 12:30 noon, Tuesday, February 14, 2012

MARKING KEY The University of British Columbia MARKING KEY Computer Science 260 Midterm #1 Examination 12:30 noon, Tuesday, February 14, 2012 MARKING KEY The University of British Columbia MARKING KEY Computer Science 260 Midterm #1 Examination 12:30 noon, Tuesday, February 14, 2012 Instructor: K. S. Booth Time: 70 minutes (one hour ten minutes)

More information

EXAMINATION INSTRUCTIONS

EXAMINATION INSTRUCTIONS Midterm exam SAMPLE CSE115 Computer Science I Fall 2018 EXAMINATION INSTRUCTIONS This examination has 9 pages. Check that you have a complete paper. Each candidate should be prepared to produce, upon request,

More information

The University of Oregon May 16, 2015 Oregon Invitational Mathematics Tournament:

The University of Oregon May 16, 2015 Oregon Invitational Mathematics Tournament: The University of Oregon May 16, 015 Oregon Invitational Mathematics Tournament: losed book examination Geometry xam Time: 90 minutes Last Name First Name School Grade (please circle one): 7 8 9 10 11

More information

Com S 321 Problem Set 3

Com S 321 Problem Set 3 Com S 321 Problem Set 3 1. A computer has a main memory of size 8M words and a cache size of 64K words. (a) Give the address format for a direct mapped cache with a block size of 32 words. (b) Give the

More information

EXAMINATION INSTRUCTIONS

EXAMINATION INSTRUCTIONS EXAMINATION INSTRUCTIONS This examination has 6 pages. Check that you have a complete paper. Each candidate should be prepared to produce, upon request, his or her SUNY/UB card. This examination has 5

More information

MARKING KEY The University of British Columbia MARKING KEY Computer Science 260 Midterm #2 Examination 12:30 noon, Thursday, March 15, 2012

MARKING KEY The University of British Columbia MARKING KEY Computer Science 260 Midterm #2 Examination 12:30 noon, Thursday, March 15, 2012 MARKING KEY The University of British Columbia MARKING KEY Computer Science 260 Midterm #2 Examination 12:30 noon, Thursday, March 15, 2012 Instructor: K. S. Booth Time: 70 minutes (one hour ten minutes)

More information

This examination has 11 pages. Check that you have a complete paper.

This examination has 11 pages. Check that you have a complete paper. MARKING KEY The University of British Columbia MARKING KEY Computer Science 252 2nd Midterm Exam 6:30 PM, Monday, November 8, 2004 Instructors: K. Booth & N. Hutchinson Time: 90 minutes Total marks: 90

More information

EXAMINATION INSTRUCTIONS

EXAMINATION INSTRUCTIONS EXAMINATION INSTRUCTIONS This examination has 6 pages. Check that you have a complete paper. Each candidate should be prepared to produce, upon request, his or her SUNY/UB card. This examination has 5

More information

UNIVERSITY REGULATIONS

UNIVERSITY REGULATIONS CPSC 101: Connecting with Computer Science Sample Final Exam, December 2012 Name: Student ID: Signature: You have 150 minutes to solve the 9 problems on this exam. A total of 100 marks is available. You

More information

CE161-4-AU UNIVERSITY OF ESSEX. Undergraduate Examinations 2014 DIGITAL SYSTEMS ARCHITECTURE. Time allowed: TWO hours

CE161-4-AU UNIVERSITY OF ESSEX. Undergraduate Examinations 2014 DIGITAL SYSTEMS ARCHITECTURE. Time allowed: TWO hours CE161-4-AU UNIVERSITY OF ESSEX Undergraduate Examinations 2014 DIGITAL SYSTEMS ARCHITECTURE Time allowed: TWO hours The following items are provided: Graph paper (available on invigilator s desk) Candidates

More information

CS 433 Homework 5. Assigned on 11/7/2017 Due in class on 11/30/2017

CS 433 Homework 5. Assigned on 11/7/2017 Due in class on 11/30/2017 CS 433 Homework 5 Assigned on 11/7/2017 Due in class on 11/30/2017 Instructions: 1. Please write your name and NetID clearly on the first page. 2. Refer to the course fact sheet for policies on collaboration.

More information

ECE 461 Internetworking Fall Quiz 1

ECE 461 Internetworking Fall Quiz 1 ECE 461 Internetworking Fall 2013 Quiz 1 Instructions (read carefully): The time for this quiz is 50 minutes. This is a closed book and closed notes in-class exam. Non-programmable (Type 2) calculators

More information

Instructions to Examination Invigilators

Instructions to Examination Invigilators Instructions to Examination Invigilators APMP APMP for registered PRINCE2 Practitioners Introductory Certificate Risk Level 1 Risk Level 2 Invigilator Guidance Notes v1.3 Page 1 of 9 Introduction.....

More information

CPSC 261 Midterm 2 Thursday March 17 th, 2016

CPSC 261 Midterm 2 Thursday March 17 th, 2016 CPSC 261 Midterm 2 Thursday March 17 th, 2016 [9] 1. Multiple choices [5] (a) Among the following terms, circle all of those that refer to a responsibility of a thread scheduler: Solution : Avoiding deadlocks

More information

The University of British Columbia Computer Science 304 Practice Final Examination

The University of British Columbia Computer Science 304 Practice Final Examination The University of British Columbia Computer Science 304 Practice Final Examination Instructor: Time: 2.5 hours Total marks: 100 Name (PRINT) (Last) (First) Signature This examination has 13 pages. Check

More information

ECE331 Homework 4. Due Monday, August 13, 2018 (via Moodle)

ECE331 Homework 4. Due Monday, August 13, 2018 (via Moodle) ECE331 Homework 4 Due Monday, August 13, 2018 (via Moodle) 1. Below is a list of 32-bit memory address references, given as hexadecimal byte addresses. The memory accesses are all reads and they occur

More information

Project: Visual Cache Simulator Input: Real Addresses Outputs: 1. Number of Hits 2. Number of Misses 3. Hit Ratio 4. Visual Representation of Cache

Project: Visual Cache Simulator Input: Real Addresses Outputs: 1. Number of Hits 2. Number of Misses 3. Hit Ratio 4. Visual Representation of Cache Project: Visual Cache Simulator Input: Real Addresses Outputs: 1. Number of Hits 2. Number of Misses 3. Hit Ratio 4. Visual Representation of Cache including 4.1. Index or Index Set 4.2. Tag 4.3. Cache

More information

CS 411 Midterm Feb 2008

CS 411 Midterm Feb 2008 CS 411 Midterm Feb 2008 Exam number: P1: / 9 P4: / 10 P2: / 4 P5: / 9 Student Name: P3: / 7 P6: / 8 P7: / 8 SUBTOTALS: / 20 / 35 Student ID number: TOTAL: / 55 READ THIS CAREFULLY BEFORE PROCEEDING DO

More information

UW CSE 351, Winter 2013 Final Exam

UW CSE 351, Winter 2013 Final Exam Full Name: Student ID #: UW CSE 351, Winter 2013 Final Exam March 20, 2013 2:30pm - 4:20pm Instructions: Write your full name and UW student ID number on the front of the exam. When the exam begins, make

More information

FUJAA GENERAL EXAMINATION REQUIREMENTS & PROCEDURE

FUJAA GENERAL EXAMINATION REQUIREMENTS & PROCEDURE FUJAA GENERAL EXAMINATION REQUIREMENTS & PROCEDURE Please read and understand the following requirements of Part/CAR 66 Examination before completing the application / registration form. Part/CAR Examinations

More information

EXAMINATION INSTRUCTIONS

EXAMINATION INSTRUCTIONS Midterm exam CSE5/503 Computer Science I Spring 209 EXAMINATION INSTRUCTIONS This examination has 9 pages. If your copy is missing a page, let one of the course staff know. Before starting this test, students

More information

COSC 3406: COMPUTER ORGANIZATION

COSC 3406: COMPUTER ORGANIZATION COSC 3406: COMPUTER ORGANIZATION Home-Work 5 Due Date: Friday, December 8 by 2.00 pm Instructions for submitting: Type your answers and send it by email or take a printout or handwritten (legible) on paper,

More information

CPSC 410 Advanced Software Engineering Mid-term Examination (Term I ): Solution Instructor: Gail Murphy

CPSC 410 Advanced Software Engineering Mid-term Examination (Term I ): Solution Instructor: Gail Murphy CPSC 410 Advanced Software Engineering Mid-term Examination (Term I 2003-2004): Solution Instructor: Gail Murphy Do NOT start until you are informed you can start! This examination has 6 questions. The

More information

CISC 360. Cache Memories Exercises Dec 3, 2009

CISC 360. Cache Memories Exercises Dec 3, 2009 Topics ν CISC 36 Cache Memories Exercises Dec 3, 29 Review of cache memory mapping Cache Memories Cache memories are small, fast SRAM-based memories managed automatically in hardware. ν Hold frequently

More information

ECE 2300 Digital Logic & Computer Organization. More Caches

ECE 2300 Digital Logic & Computer Organization. More Caches ECE 23 Digital Logic & Computer Organization Spring 218 More Caches 1 Announcements Prelim 2 stats High: 79.5 (out of 8), Mean: 65.9, Median: 68 Prelab 5(C) deadline extended to Saturday 3pm No further

More information

Virtual Memory Overview

Virtual Memory Overview Virtual Memory Overview Virtual address (VA): What your program uses Virtual Page Number Page Offset Physical address (PA): What actually determines where in memory to go Physical Page Number Page Offset

More information

Review: Computer Organization

Review: Computer Organization Review: Computer Organization Cache Chansu Yu Caches: The Basic Idea A smaller set of storage locations storing a subset of information from a larger set. Typically, SRAM for DRAM main memory: Processor

More information

EXAMINATION INSTRUCTIONS

EXAMINATION INSTRUCTIONS Midterm exam CSE115/503 Computer Science I Spring 2019 EXAMINATION INSTRUCTIONS This examination has 9 pages. If your copy is missing a page, let one of the course staff know. Before starting this test,

More information

APMP The APM Project Management Qualification. Guide for Candidates DRAFT

APMP The APM Project Management Qualification. Guide for Candidates DRAFT APMP The APM Project Management Qualification Guide for Candidates Contents Introduction 3 Applying for the examination 3 Examination advice 4 Examination materials 4 Examination procedure 5 3 hour examination

More information

and data combined) is equal to 7% of the number of instructions. Miss Rate with Second- Level Cache, Direct- Mapped Speed

and data combined) is equal to 7% of the number of instructions. Miss Rate with Second- Level Cache, Direct- Mapped Speed 5.3 By convention, a cache is named according to the amount of data it contains (i.e., a 4 KiB cache can hold 4 KiB of data); however, caches also require SRAM to store metadata such as tags and valid

More information

St Gregory the Great Catholic School

St Gregory the Great Catholic School St Gregory the Great Catholic School Absence from Exams You must attend all the exams for which you have been entered on your Candidate timetable. Misreading the timetable will NOT be accepted as a satisfactory

More information

CS 433 Homework 4. Assigned on 10/17/2017 Due in class on 11/7/ Please write your name and NetID clearly on the first page.

CS 433 Homework 4. Assigned on 10/17/2017 Due in class on 11/7/ Please write your name and NetID clearly on the first page. CS 433 Homework 4 Assigned on 10/17/2017 Due in class on 11/7/2017 Instructions: 1. Please write your name and NetID clearly on the first page. 2. Refer to the course fact sheet for policies on collaboration.

More information

Lampton School Exam Guide

Lampton School Exam Guide Lampton School Exam Guide Before you sit your exams Exam timetable Candidate number Check: 1. Personal details (spelling of name, date of birth) are correct. 2. All of the exams are shown, remembering

More information

3) Cache, money. Dollar bills, y all. (24 min, 15 pts)

3) Cache, money. Dollar bills, y all. (24 min, 15 pts) Login: cs61c- Answers 3) Cache, money. Dollar bills, y all. (24 min, 15 pts) Suppose we have a standard 32-bit byte-addressed MIPS machine, a single direct-mapped 32KiB cache, a write-through policy, and

More information

GUIDELINES FOR EXAM CANDIDATES AT UNIVERSITY OF NORDLAND

GUIDELINES FOR EXAM CANDIDATES AT UNIVERSITY OF NORDLAND GUIDELINES FOR EXAM CANDIDATES AT UNIVERSITY OF NORDLAND These guidelines are supplementary provisions to The Regulations Concerning Studies and exams at University of Nordland. Decided upon by The Board

More information

Cache Memory and Performance

Cache Memory and Performance Cache Memory and Performance Cache Performance 1 Many of the following slides are taken with permission from Complete Powerpoint Lecture Notes for Computer Systems: A Programmer's Perspective (CS:APP)

More information

CPSC 410? Advanced Software Engineering Mid-term Examination (Term I ) SOLUTION Instructor: Gail Murphy

CPSC 410? Advanced Software Engineering Mid-term Examination (Term I ) SOLUTION Instructor: Gail Murphy CPSC 410? Advanced Software Engineering Mid-term Examination (Term I 2001-2002) SOLUTION Instructor: Gail Murphy Do NOT start until you are informed you can start! This examination has 7 questions. The

More information

ECE 461 Internetworking Fall Quiz 1

ECE 461 Internetworking Fall Quiz 1 ECE 461 Internetworking Fall 2010 Quiz 1 Instructions (read carefully): The time for this quiz is 50 minutes. This is a closed book and closed notes in-class exam. Non-programmable calculators are permitted

More information

Prerequisite Quiz September 3, 2003 CS252 Computer Architecture and Engineering

Prerequisite Quiz September 3, 2003 CS252 Computer Architecture and Engineering University of California, Berkeley College of Engineering Computer Science Division EECS Fall 2003 John Kubiatowicz Prerequisite Quiz September 3, 2003 CS252 Computer Architecture and Engineering This

More information

Information and Rules for Candidates taking IFE Examinations in October 2018

Information and Rules for Candidates taking IFE Examinations in October 2018 Information and Rules for Candidates taking IFE Examinations in October 2018 INTRODUCTION This document provides information and rules for candidates who have booked examinations in October 2018. Candidates

More information

registers data 1 registers MEMORY ADDRESS on-chip cache off-chip cache main memory: real address space part of virtual addr. sp.

registers data 1 registers MEMORY ADDRESS on-chip cache off-chip cache main memory: real address space part of virtual addr. sp. Cache associativity Cache and performance 12 1 CMPE110 Spring 2005 A. Di Blas 110 Spring 2005 CMPE Cache Direct-mapped cache Reads and writes Textbook Edition: 7.1 to 7.3 Second Third Edition: 7.1 to 7.3

More information

Administration and Examination Guidelines for Holding ISEB BSD Written Examinations

Administration and Examination Guidelines for Holding ISEB BSD Written Examinations 1. New BSD Modules Administration and Examination Guidelines for Holding ISEB BSD Written Examinations Examination Guidelines Providers who are eligible to hold an examination for the first time must submit

More information

Industry Competency Examination Proctor Guide

Industry Competency Examination Proctor Guide Industry Competency Examination Proctor Guide TABLE OF CONTENTS INDUSTRY COMPETENCY EXAMINATION...1 INTRODUCTION...1 RECEIPT OF EXAMINATION MATERIALS...1 EXAMINATION SECURITY... 2 EXAMINATION SCHEDULE...

More information

CS 2506 Computer Organization II Test 2. Do not start the test until instructed to do so! printed

CS 2506 Computer Organization II Test 2. Do not start the test until instructed to do so! printed Instructions: Print your name in the space provided below. This examination is closed book and closed notes, aside from the permitted fact sheet, with a restriction: 1) one 8.5x11 sheet, both sides, handwritten

More information

Stockbrokers And Financial Advisers Association (SAFAA) Supervisor Guidelines Ver7

Stockbrokers And Financial Advisers Association (SAFAA) Supervisor Guidelines Ver7 Stockbrokers And Financial Advisers Association (SAFAA) Supervisor Guidelines Ver7 These guidelines outline the online examination scenario for the suite of Stockbrokers And Financial Advisers Association

More information

APM Project Fundamentals Qualification. Guide for Candidates

APM Project Fundamentals Qualification. Guide for Candidates APM Project Fundamentals Qualification Guide for Candidates Contents Introduction Applying for the examination The examination Examination application Project Fundamentals Qualification online Examination

More information

Project Risk Management Single Subject Certificate Level 2. Guide for candidates

Project Risk Management Single Subject Certificate Level 2. Guide for candidates Project Risk Management Single Subject Certificate Level 2 Guide for candidates Introduction. 3 Applying for an exam. 4 Completing your application form.. 4 Taking the exam 5 Exam rules 5 Exam materials...

More information

CPSC 126 SAMPLE FINAL EXAMINATION ANSWERS April, 2003

CPSC 126 SAMPLE FINAL EXAMINATION ANSWERS April, 2003 CPSC 126 SAMPLE FINAL EXAMINATION ANSWERS April, 2003 Name: Student ID: Lab Section: You have 2 hours 45 minutes to write the 8 questions on this examination. A total of 105 marks are available. No notes,

More information

CS 2506 Computer Organization II Test 2. Do not start the test until instructed to do so! printed

CS 2506 Computer Organization II Test 2. Do not start the test until instructed to do so! printed Instructions: Print your name in the space provided below. This examination is closed book and closed notes, aside from the permitted fact sheet, with a restriction: 1) one 8.5x11 sheet, both sides, handwritten

More information

MID II Tuesday, 1 st April 2008

MID II Tuesday, 1 st April 2008 Data Communication & Networks MID II Exam (Spring 2008) Page 1 / 8 Data Communication & Networks Spring 2008 Semester MID II Tuesday, 1 st April 2008 Total Time: 60 Minutes Total Marks: 40 Roll Number

More information

6.004 Tutorial Problems L14 Cache Implementation

6.004 Tutorial Problems L14 Cache Implementation 6.004 Tutorial Problems L14 Cache Implementation Cache Miss Types Compulsory Miss: Starting with an empty cache, a cache line is first referenced (invalid) Capacity Miss: The cache is not big enough to

More information

Guide for candidates

Guide for candidates Guide for candidates 2 APMP Guide for candidates Introduction 3 Applying for an examination 3 Completing your application form 3 Taking the examination 4 Examination rules 4 Examination materials 4 Examination

More information

FREQUENTLY ASKED QUESTIONS REGARDING COMPUTER BASED EXAMINATION (CBE)

FREQUENTLY ASKED QUESTIONS REGARDING COMPUTER BASED EXAMINATION (CBE) FREQUENTLY ASKED QUESTIONS REGARDING COMPUTER BASED EXAMINATION (CBE) The Institute introduced Computer Based Examination (CBE) in place of OMR Based Examination for its Foundation Programme students from

More information

6.004 Tutorial Problems L14 Cache Implementation

6.004 Tutorial Problems L14 Cache Implementation 6.004 Tutorial Problems L14 Cache Implementation Cache Miss Types Compulsory Miss: Starting with an empty cache, a cache line is first referenced (invalid) Capacity Miss: The cache is not big enough to

More information

APMP. The APM Project Management Qualification. Guide for Candidates

APMP. The APM Project Management Qualification. Guide for Candidates APMP The APM Project Management Qualification Guide for Candidates Contents Introduction 3 Applying for the examination 3 Examination advice 4 Examination materials 4 Examination process 5 3 hour examination

More information

ELEC3441: Computer Architecture Second Semester, Homework 3 (r1.1) SOLUTION. r1.1 Page 1 of 12

ELEC3441: Computer Architecture Second Semester, Homework 3 (r1.1) SOLUTION. r1.1 Page 1 of 12 Homework 3, Part ELEC3441: Computer Architecture Second Semester, 2015 16 Homework 3 (r1.1) r1.1 Page 1 of 12 A.1 Cache Access Part A: Problem Set Consider the following sequence of memory accesses to

More information

Guide for candidates

Guide for candidates Guide for candidates 2 Introductory Certificate Guide for candidates Introduction 3 Exam study guide 3 Applying for an exam 3 Completing your application form 3 Introductory Certificate examination online

More information

GUIDELINES FOR EXAMINATION AND INVIGILATION AT SA CAA ACCREDITED TESTING CENTRES

GUIDELINES FOR EXAMINATION AND INVIGILATION AT SA CAA ACCREDITED TESTING CENTRES GUIDELINES FOR EXAMINATION AND INVIGILATION AT SA CAA ACCREDITED TESTING CENTRES CAA Guidance Material Part 61: Test Centres 31 MAY 2007 Page 1 of 12 TABLE OF CONTENTS GUIDELINES FOR EXAMINATION AND INVIGILATION

More information

CS152 Computer Architecture and Engineering

CS152 Computer Architecture and Engineering CS152 Computer Architecture and Engineering Caches and the Memory Hierarchy Assigned 9/17/2016 Problem Set #2 Due Tue, Oct 4 http://inst.eecs.berkeley.edu/~cs152/fa16 The problem sets are intended to help

More information

Information and Rules for Candidates taking IFE Examinations in March 2019

Information and Rules for Candidates taking IFE Examinations in March 2019 Information and Rules for Candidates taking IFE Examinations in March 2019 INTRODUCTION This document provides information and rules for candidates who have booked examinations in March 2019. Candidates

More information

CS 61C: Great Ideas in Computer Architecture. Direct Mapped Caches, Set Associative Caches, Cache Performance

CS 61C: Great Ideas in Computer Architecture. Direct Mapped Caches, Set Associative Caches, Cache Performance CS 6C: Great Ideas in Computer Architecture Direct Mapped Caches, Set Associative Caches, Cache Performance Instructor: Justin Hsia 7//23 Summer 23 Lecture # Great Idea #3: Principle of Locality/ Memory

More information

Improving Cache Performance

Improving Cache Performance Improving Cache Performance Tuesday 27 October 15 Many slides adapted from: and Design, Patterson & Hennessy 5th Edition, 2014, MK and from Prof. Mary Jane Irwin, PSU Summary Previous Class Memory hierarchy

More information

CS 265. Computer Architecture. Wei Lu, Ph.D., P.Eng.

CS 265. Computer Architecture. Wei Lu, Ph.D., P.Eng. CS 265 Computer Architecture Wei Lu, Ph.D., P.Eng. CS 265 Midterm #1 Monday, Oct 18, 12:00pm-1:45pm, SCI 163 Questions on essential terms and concepts of Computer Architecture Mathematical questions on

More information

CSE 351 Spring 2017 Final Exam (7 June 2017)

CSE 351 Spring 2017 Final Exam (7 June 2017) CSE 351 Spring 2017 Final Exam (7 June 2017) Please read through the entire examination first! You have 110 minutes for this exam. Don t spend too much time on any one problem! The last page is a reference

More information

Computer Architecture and Engineering. CS152 Quiz #2. March 3rd, Professor Krste Asanovic. Name:

Computer Architecture and Engineering. CS152 Quiz #2. March 3rd, Professor Krste Asanovic. Name: Computer Architecture and Engineering CS152 Quiz #2 March 3rd, 2008 Professor Krste Asanovic Name: Notes: This is a closed book, closed notes exam. 80 Minutes 10 Pages Not all questions are of equal difficulty,

More information

STOCKBROKERS ASSOCIATION OF AUSTRALIA SUPERVISOR GUIDELINES

STOCKBROKERS ASSOCIATION OF AUSTRALIA SUPERVISOR GUIDELINES STOCKBROKERS ASSOCIATION OF AUSTRALIA SUPERVISOR GUIDELINES These guidelines outline the online examination scenario for the suite of Stockbrokers Association Programs National DTR Accreditation online

More information

CS 61C: Great Ideas in Computer Architecture. Cache Performance, Set Associative Caches

CS 61C: Great Ideas in Computer Architecture. Cache Performance, Set Associative Caches CS 61C: Great Ideas in Computer Architecture Cache Performance, Set Associative Caches Instructor: Justin Hsia 7/09/2012 Summer 2012 Lecture #12 1 Great Idea #3: Principle of Locality/ Memory Hierarchy

More information

The Memory Hierarchy. Cache, Main Memory, and Virtual Memory (Part 2)

The Memory Hierarchy. Cache, Main Memory, and Virtual Memory (Part 2) The Memory Hierarchy Cache, Main Memory, and Virtual Memory (Part 2) Lecture for CPSC 5155 Edward Bosworth, Ph.D. Computer Science Department Columbus State University Cache Line Replacement The cache

More information

ECE 2300 Digital Logic & Computer Organization. More Caches

ECE 2300 Digital Logic & Computer Organization. More Caches ECE 23 Digital Logic & Computer Organization Spring 217 More Caches 1 Prelim 2 stats High: 9 (out of 9) Mean: 7.2, Median: 73 Announcements Prelab 5(C) due tomorrow 2 Example: Direct Mapped (DM) Cache

More information

Problem 3. (12 points):

Problem 3. (12 points): Problem 3. (12 points): This problem tests your understanding of basic cache operations. Harry Q. Bovik has written the mother of all game-of-life programs. The Game-of-life is a computer game that was

More information

Name :. Roll No. :... Invigilator s Signature :.. CS/B.TECH (NEW)/SEM-2/CS-201/ BASIC COMPUTATION & PRINCIPLES OF COMPUTER PROGRAMMING

Name :. Roll No. :... Invigilator s Signature :.. CS/B.TECH (NEW)/SEM-2/CS-201/ BASIC COMPUTATION & PRINCIPLES OF COMPUTER PROGRAMMING Name :. Roll No. :..... Invigilator s Signature :.. CS/B.TECH (NEW)/SEM-2/CS-201/2012 2012 BASIC COMPUTATION & PRINCIPLES OF COMPUTER PROGRAMMING Time Allotted : 3 Hours Full Marks : 70 The figures in

More information

University of Western Ontario, Computer Science Department CS3350B, Computer Architecture Quiz 1 (30 minutes) January 21, 2015

University of Western Ontario, Computer Science Department CS3350B, Computer Architecture Quiz 1 (30 minutes) January 21, 2015 University of Western Ontario, Computer Science Department CS3350B, Computer Architecture Quiz (30 minutes) January 2, 205 Student ID number: Student Last Name: Exercise. In the following list of performance

More information

CS , Fall 2001 Exam 2

CS , Fall 2001 Exam 2 Andrew login ID: Full Name: CS 15-213, Fall 2001 Exam 2 November 13, 2001 Instructions: Make sure that your exam is not missing any sheets, then write your full name and Andrew login ID on the front. Write

More information

Caches II. CSE 351 Spring Instructor: Ruth Anderson

Caches II. CSE 351 Spring Instructor: Ruth Anderson Caches II CSE 35 Spring 27 Instructor: Ruth Anderson Teaching Assistants: Dylan Johnson Kevin Bi Linxing Preston Jiang Cody Ohlsen Yufang Sun Joshua Curtis Administrivia Office Hours Changes check calendar!!

More information

UW CSE 351, Summer 2013 Final Exam

UW CSE 351, Summer 2013 Final Exam Name Instructions: UW CSE 351, Summer 2013 Final Exam 9:40am - 10:40am, Friday, 23 August 2013 Make sure that your exam is not missing any of the 11 pages, then write your full name and UW student ID on

More information

CSE351 Spring 2018, Final Exam June 6, 2018

CSE351 Spring 2018, Final Exam June 6, 2018 CSE351 Spring 2018, Final Exam June 6, 2018 Please do not turn the page until 2:30. Last Name: First Name: Student ID Number: Name of person to your left: Name of person to your right: Signature indicating:

More information

Caches III. CSE 351 Autumn Instructor: Justin Hsia

Caches III. CSE 351 Autumn Instructor: Justin Hsia Caches III CSE 351 Autumn 2017 Instructor: Justin Hsia Teaching Assistants: Lucas Wotton Michael Zhang Parker DeWilde Ryan Wong Sam Gehman Sam Wolfson Savanna Yee Vinny Palaniappan https://what if.xkcd.com/111/

More information

Cache Memory and Performance

Cache Memory and Performance Cache Memory and Performance Cache Organization 1 Many of the following slides are taken with permission from Complete Powerpoint Lecture Notes for Computer Systems: A Programmer's Perspective (CS:APP)

More information

Kathryn Chan, Kevin Bi, Ryan Wong, Waylon Huang, Xinyu Sui

Kathryn Chan, Kevin Bi, Ryan Wong, Waylon Huang, Xinyu Sui Caches II CSE 4 Winter 27 Instructor: Justin Hsia Teaching Assistants: Kathryn Chan, Kevin Bi, Ryan Wong, Waylon Huang, Xinyu Sui IBM s hub for wearables could shorten your hospital stay Researchers at

More information

Cache and Virtual Memory Simulations

Cache and Virtual Memory Simulations Cache and Virtual Memory Simulations Does it really matter if you pull a USB out before it safely ejects? Data structure: Cache struct Cache { }; Set *sets; int set_count; int line_count; int block_size;

More information