ECE 3055: Final Exam

Similar documents
Main Points of the Computer Organization and System Software Module

Computer Architecture CS372 Exam 3

CSCE 212: FINAL EXAM Spring 2009

ENGN 2910A Homework 03 (140 points) Due Date: Oct 3rd 2013

Written Exam / Tentamen

JNTUWORLD. 1. Discuss in detail inter processor arbitration logics and procedures with necessary diagrams? [15]

ECE331: Hardware Organization and Design

CSE 141 Spring 2016 Homework 5 PID: Name: 1. Consider the following matrix transpose code int i, j,k; double *A, *B, *C; A = (double

UNIT I BASIC STRUCTURE OF COMPUTERS Part A( 2Marks) 1. What is meant by the stored program concept? 2. What are the basic functional units of a

DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING UNIT I

4.1 Introduction 4.3 Datapath 4.4 Control 4.5 Pipeline overview 4.6 Pipeline control * 4.7 Data hazard & forwarding * 4.

Final Exam Fall 2007

Pipelined processors and Hazards

Student Name:.. Student ID... Course Code: CSC 227 Course Title: Semester: Fall Exercises Cover Sheet:

Virtual Memory - Objectives

ELE 375 Final Exam Fall, 2000 Prof. Martonosi

MaanavaN.Com CS1202 COMPUTER ARCHITECHTURE

Two hours UNIVERSITY OF MANCHESTER SCHOOL OF COMPUTER SCIENCE

INSTITUTE OF AERONAUTICAL ENGINEERING Dundigal, Hyderabad COMPUTER SCIENCE AND ENGINEERING QUESTION BANK OPERATING SYSTEMS

Predict Not Taken. Revisiting Branch Hazard Solutions. Filling the delay slot (e.g., in the compiler) Delayed Branch

INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad

c. What are the machine cycle times (in nanoseconds) of the non-pipelined and the pipelined implementations?

ECE 485/585 Midterm Exam


ECE 341 Final Exam Solution

Operating Systems Comprehensive Exam. Spring Student ID # 2/17/2011

CMSC411 Fall 2013 Midterm 1

Chapter Seven Morgan Kaufmann Publishers

T T T T T T N T T T T T T T T N T T T T T T T T T N T T T T T T T T T T T N.

Midterm Exam. October 20th, Thursday NSC

COMP 3361: Operating Systems 1 Final Exam Winter 2009

QUESTION BANK UNIT I

ISA Instruction Operation

INSTITUTE OF AERONAUTICAL ENGINEERING

ECE 30 Introduction to Computer Engineering

Final Exam Preparation Questions

Operating Systems (1DT020 & 1TT802)

There are 19 total numbered pages, 8 Questions. You have 2.5 hours. Budget your time carefully!

UNIVERSITY OF MASSACHUSETTS Dept. of Electrical & Computer Engineering. Computer Architecture ECE 568

CPSC/ECE 3220 Summer 2017 Exam 2

Memory Hierarchies 2009 DAT105

Faculty of Science FINAL EXAMINATION

NAME: Problem Points Score. 7 (bonus) 15. Total

ECE Sample Final Examination

DEPARTMENT OF ELECTRONICS & COMMUNICATION ENGINEERING QUESTION BANK

CSE 141 Computer Architecture Spring Lectures 17 Virtual Memory. Announcements Office Hour

SNS COLLEGE OF ENGINEERING

s complement 1-bit Booth s 2-bit Booth s

OPEN BOOK, OPEN NOTES. NO COMPUTERS, OR SOLVING PROBLEMS DIRECTLY USING CALCULATORS.

1995 Paper 10 Question 7

CSE 378 Final 3/18/10

ECE 485/585 Midterm Exam

Chapter 3. Pipelining. EE511 In-Cheol Park, KAIST

CS433 Final Exam. Prof Josep Torrellas. December 12, Time: 2 hours

2. Which of the following resources is not one which can result in deadlocking processes? a. a disk file b. a semaphore c. the central processor (CPU)

Semaphore. Originally called P() and V() wait (S) { while S <= 0 ; // no-op S--; } signal (S) { S++; }

ECE331: Hardware Organization and Design

Sections 01 (11:30), 02 (16:00), 03 (8:30) Ashraf Aboulnaga & Borzoo Bonakdarpour

ECE331: Hardware Organization and Design

LECTURE 5: MEMORY HIERARCHY DESIGN

DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING UNIT-1

Deadlock. Concurrency: Deadlock and Starvation. Reusable Resources

ECE232: Hardware Organization and Design

Adapted from David Patterson s slides on graduate computer architecture

CMSC 411 Practice Exam 1 w/answers. 1. CPU performance Suppose we have the following instruction mix and clock cycles per instruction.

Midterm #2 Solutions April 23, 1997

Pipelining, Instruction Level Parallelism and Memory in Processors. Advanced Topics ICOM 4215 Computer Architecture and Organization Fall 2010

CS370 Operating Systems

ECE 486/586. Computer Architecture. Lecture # 12

CSI3131 Final Exam Review

The Processor Pipeline. Chapter 4, Patterson and Hennessy, 4ed. Section 5.3, 5.4: J P Hayes.

Do not start the test until instructed to do so!

Department of Computer Science, Institute for System Architecture, Operating Systems Group. Real-Time Systems '08 / '09. Hardware.

CPS 104 Final Exam. 2pm to 5pm Open book exam. Answer all questions, state all your assumptions, clearly mark your final answer. 1.

(b) External fragmentation can happen in a virtual memory paging system.

CS 152 Exam #2 Solutions

Readings. Storage Hierarchy III: I/O System. I/O (Disk) Performance. I/O Device Characteristics. often boring, but still quite important

CLASS: II YEAR / IV SEMESTER CSE SUBJECT CODE AND NAME: CS6401 OPERATING SYSTEMS UNIT I OPERATING SYSTEMS OVERVIEW

CPE 631 Advanced Computer Systems Architecture: Homework #2

Virtual Memory. Patterson & Hennessey Chapter 5 ELEC 5200/6200 1

CSE 4/521 Introduction to Operating Systems. Lecture 27 (Final Exam Review) Summer 2018

CS152 Exam #2 Fall Professor Dave Patterson

Some material adapted from Mohamed Younis, UMBC CMSC 611 Spr 2003 course slides Some material adapted from Hennessy & Patterson / 2003 Elsevier

Department of Computer Science and Engineering

Topic 18: Virtual Memory

Keywords and Review Questions

CS 341l Fall 2008 Test #4 NAME: Key

Memory Hierarchies. Instructor: Dmitri A. Gusev. Fall Lecture 10, October 8, CS 502: Computers and Communications Technology

ECE232: Hardware Organization and Design

Course on Advanced Computer Architectures

Two hours. No special instructions. UNIVERSITY OF MANCHESTER SCHOOL OF COMPUTER SCIENCE. Date. Time

Adapted from instructor s supplementary material from Computer. Patterson & Hennessy, 2008, MK]

QUESTION BANK UNIT-I. 4. With a neat diagram explain Von Neumann computer architecture

CISC 662 Graduate Computer Architecture Lecture 16 - Cache and virtual memory review

Cache Organizations for Multi-cores

cs470 - Computer Architecture 1 Spring 2002 Final Exam open books, open notes

a number of pencil-and-paper(-and-calculator) questions two Intel assembly programming questions

CS2253 COMPUTER ORGANIZATION AND ARCHITECTURE 1 KINGS COLLEGE OF ENGINEERING DEPARTMENT OF INFORMATION TECHNOLOGY

Virtual Memory Review. Page faults. Paging system summary (so far)

Problem Points 1 /20 2 /20 3 /20 4 /20 5 /20 Total /100

Transcription:

ECE 3055: Final Exam Instructions: You have 2 hours and 50 minutes to complete this quiz. The quiz is closed book and closed notes, except for one 8.5 x 11 sheet. No calculators are allowed. Multiple Choice Problem 1 Problem 2 Problem 3 Problem 4 Problem 5 Problem 6 TOTAL

Part I Multiple Choice 1) 2 points Which of the following statements is not true? a) In a pipelined design, the critical path delay is the delay through all pipeline stages b) There can be more than one critical path in a system c) The critical path delay is the maximum register-to-register delay in the system d) The critical path delay determines the maximum clock frequency of the system e) None of the above 2) 2 points For which of the following dependences can a pair of instructions never be re-ordered in a pipelined system? a) RAW b) WAR c) WAW d) Both a and c e) Both b and c 3) 2 points Which of the following statements is not true? a) With all other factors being equal, a virtual cache has a larger tag than a physical cache b) If there is a hit in a virtual cache, no address translation is necessary c) There is no reason to have a TLB in a system with a virtual cache d) Virtual caches can have a problem when the system allows different processes to share memory pages e) None of the above A

4) 2 points Which of the following statements is not true? a) A binary semaphore is equivalent to a lock b) A semaphore implementation must use busy waiting c) A counting semaphore is initialized to an integer value k > 1 d) When a semaphore is probed, the testing and decrementing operations must be done atomically e) None of the above 5) 2 points Which of the following statements is not true? a) During a context switch, the OS saves the internal processor state to disk b) Fast context switching is extremely important to reduce the overhead of multitasking c) Context switches are triggered periodically by timer interrupts d) Some processors use very large register files to store the states of multiple processes simultaneously in order to reduce average context switch time e) None of the above

Part II Problems 1) 15 points Consider the pipelined MIPS processor of Patterson and Hennessy, Chapter 6, with the following characteristics: 2-cycle branch penalty with no branch prediction all data hazards except for the lw hazard handled by forwarding no instruction re-ordering by the compiler 20-cycle miss penalty for both instruction and data caches instruction cache misses and data cache misses can not be handled concurrently Assume this processor executes a sequence of 1000 instructions with the following characteristics: 100 branches 150 loads, out of which 50 cause lw hazards 150 stores 15 data cache misses and 10 instruction cache misses a) Calculate how many cycles are required by the processor to execute fully the 1000 instructions. Show your work. b) Calculate the speedup achieved by the pipelined processor on the 1000 instructions compared to a multi-cycle processor that requires 3 cycles for a branch, 5 cycles for lw, and 4 cycles for all other instructions. Assume the same cache behavior described above and show your work.

2) 15 points Consider a direct-mapped write-back cache with 2 words per block and 16 words total. Assume the cache is initially empty. For the following sequence of hexadecimal word addresses, indicate whether each reference is a hit or a miss and show the final contents of the cache. The subscript on each address indicates whether the reference is a read or a write, R = read and W = write. Show your work. A4 R, 9D W, 3A R, B7 R, C1 W, 6B W, 74 W, 2E R, 1F R, 80 W

3) 15 points Consider a system with 32-bit virtual byte addresses, 16-bit physical byte addresses, and a page size of 4 KB. Assume that an entry in a non-inverted page table requires 4 bytes and an entry in an inverted page table requires 10 bytes. Show your work. a) What is the size of the root page table in a 2-level paging scheme for this system? b) What is the size of an inverted page table for this system?

4) 15 points Consider a 16 KB page of data being transferred from a hard disk to memory using DMA. Show your work. a) If the hard disk has the following parameters, how much time is required to read the data from the disk? You need only be concerned with the disk-related part of the transfer time. rotational speed is 100 rotations per second average seek time is 8 milliseconds disk controller overhead is 2 milliseconds disk transfer rate is 8 MB/second b) For a synchronous bus and memory with the following characteristics, how much memory and bus time will be required for the transfer? You need only be concerned with the time taken by the memory and the bus, i.e. you can assume that the disk supplies data as fast the memory and bus can process it. You can further assume that no other device uses the bus during the transfer time. 32-bit wide data bus bus clock rate of 100 MHz 4-word block transfer capability on bus (32-bit word size) bus arbitration takes 1 bus cycle memory access to first word in a block takes 30 ns, access to each subsequent word in the same block takes 20 ns the bus has separate address and data lines

5) 15 points Consider the following set of processes, their arrival times, their priorities, and the CPU times they require. Process Arrival Time Priority CPU Time P0 0 ms 3 4 ms P1 2 ms 1 3 ms P2 3 ms 5 8 ms P3 6 ms 6 6 ms P4 7 ms 2 8 ms P5 14 ms 4 2 ms Show the schedule generated by a preemptive priority scheduling algorithm and calculate the average waiting time for this schedule. Assume a larger priority value indicates a higher priority. Show your work.

6) 15 points Consider the Banker s Algorithm applied to the dining philosophers problem with five processes. Assume that the processes make the following sequence of resource requests: P0 requests left chopstick P1 requests left chopstick P2 requests left chopstick P3 requests left chopstick P4 requests left chopstick P0 requests right chopstick P1 requests right chopstick P2 requests right chopstick P3 requests right chopstick P4 requests right chopstick State which requests are granted and which are denied by the Banker s Algorithm. Justify your answer.