Computer Organization and Architecture (CSCI-365) Sample Final Exam

Similar documents
ECE 2030B 1:00pm Computer Engineering Spring problems, 5 pages Exam Two 10 March 2010

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

ECE 2030D Computer Engineering Spring problems, 5 pages Exam Two 8 March 2012

PART A (22 Marks) 2. a) Briefly write about r's complement and (r-1)'s complement. [8] b) Explain any two ways of adding decimal numbers.

ECE 2020B Fundamentals of Digital Design Spring problems, 6 pages Exam Two 26 February 2014

Computer Organisation CS303

ECE 2020B Fundamentals of Digital Design Spring problems, 6 pages Exam Two Solutions 26 February 2014

ECE 154A Introduction to. Fall 2012

Structure of Computer Systems

Computer Architecture CS372 Exam 3

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

DC57 COMPUTER ORGANIZATION JUNE 2013

CSCE 212: FINAL EXAM Spring 2009

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

CS152 Computer Architecture and Engineering. Complex Pipelines

BEng (Hons.) Telecommunications. BSc (Hons.) Computer Science with Network Security

ECE 30 Introduction to Computer Engineering

Groups of two-state devices are used to represent data in a computer. In general, we say the states are either: high/low, on/off, 1/0,...

Data Types. Numeric Data Types

ECE 341 Midterm Exam

CS/ECE 252: INTRODUCTION TO COMPUTER ENGINEERING UNIVERSITY OF WISCONSIN MADISON

Chapter 03: Computer Arithmetic. Lesson 09: Arithmetic using floating point numbers

DEPARTMENT OF ELECTRONICS & COMMUNICATION ENGINEERING QUESTION BANK

General Instructions. You can use QtSpim simulator to work on these assignments.

2. MACHINE REPRESENTATION OF TYPICAL ARITHMETIC DATA FORMATS (NATURAL AND INTEGER NUMBERS).

ECE 411 Exam 1. Name:

CS152 Computer Architecture and Engineering March 13, 2008 Out of Order Execution and Branch Prediction Assigned March 13 Problem Set #4 Due March 25

CSCI 2121 Computer Organization and Assembly Language PRACTICE QUESTION BANK

CO Computer Architecture and Programming Languages CAPL. Lecture 15

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

Divide: Paper & Pencil

SUPERSCALAR AND VLIW PROCESSORS

Computer Architecture and IC Design Lab. Chapter 3 Part 2 Arithmetic for Computers Floating Point

CSCI 402: Computer Architectures. Arithmetic for Computers (4) Fengguang Song Department of Computer & Information Science IUPUI.

INTELLIGENCE PLUS CHARACTER - THAT IS THE GOAL OF TRUE EDUCATION UNIT-I

ECE 313 Computer Organization FINAL EXAM December 13, 2000

Computer Organization EE 3755 Midterm Examination

Final Exam Fall 2007

Good luck and have fun!

IBM 370 Basic Data Types

SIGNED AND UNSIGNED SYSTEMS

#1 #2 with corrections Monday, March 12 7:00pm to 8:30pm. Please do not write your U of C ID number on this cover page.

Lecture 10: Floating Point, Digital Design

THE HONG KONG UNIVERSITY OF SCIENCE & TECHNOLOGY Computer Organization (COMP 2611) Spring Semester, 2014 Final Examination

15110 PRINCIPLES OF COMPUTING SAMPLE EXAM 2

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

CS146 Computer Architecture. Fall Midterm Exam

COMP2611: Computer Organization. Data Representation

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

October 24. Five Execution Steps

2. (a) Compare the characteristics of a floppy disk and a hard disk. (b) Discuss in detail memory interleaving. [8+7]

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

CS/COE0447: Computer Organization

CS/COE0447: Computer Organization

Course Description: This course includes concepts of instruction set architecture,

CS6303 Computer Architecture Regulation 2013 BE-Computer Science and Engineering III semester 2 MARKS

ECE 3055: Final Exam

Floating Point. The World is Not Just Integers. Programming languages support numbers with fraction

Computer Architecture V Fall Practice Exam Questions

CPE300: Digital System Architecture and Design

UNIVERSITY OF WISCONSIN MADISON

COMPUTER ARITHMETIC (Part 1)

Number Systems. Binary Numbers. Appendix. Decimal notation represents numbers as powers of 10, for example

Chapter 5. A Closer Look at Instruction Set Architectures

P( Hit 2nd ) = P( Hit 2nd Miss 1st )P( Miss 1st ) = (1/15)(15/16) = 1/16. P( Hit 3rd ) = (1/14) * P( Miss 2nd and 1st ) = (1/14)(14/15)(15/16) = 1/16

NAME: 1a. (10 pts.) Describe the characteristics of numbers for which this floating-point data type is well-suited. Give an example.

Signature: 1. (10 points) Basic Microcontroller Concepts

ECE 341 Final Exam Solution

Cache Organizations for Multi-cores

UNIT 7A Data Representation: Numbers and Text. Digital Data

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

SYLLABUS. osmania university CHAPTER - 1 : REGISTER TRANSFER LANGUAGE AND MICRO OPERATION CHAPTER - 2 : BASIC COMPUTER

Write only as much as necessary. Be brief!

Understand the factors involved in instruction set

Data Representation and Architecture Modeling Year 1 Exam preparation

Run time environment of a MIPS program

CS 230 Practice Final Exam & Actual Take-home Question. Part I: Assembly and Machine Languages (22 pts)

Name: CMSC 313 Fall 2001 Computer Organization & Assembly Language Programming Exam 1. Question Points I. /34 II. /30 III.

Computer Organization EE 3755 Midterm Examination

Number System. Introduction. Decimal Numbers

CHETTINAD COLLEGE OF ENGINEERING AND TECHNOLOGY COMPUTER ARCHITECURE- III YEAR EEE-6 TH SEMESTER 16 MARKS QUESTION BANK UNIT-1

Fundamentals of Programming Session 2

Variables Data types Variable I/O. C introduction. Variables. Variables 1 / 14

Floating Point Arithmetic

Final Exam Spring 2017

Chapter 5. A Closer Look at Instruction Set Architectures. Chapter 5 Objectives. 5.1 Introduction. 5.2 Instruction Formats

IT 1204 Section 2.0. Data Representation and Arithmetic. 2009, University of Colombo School of Computing 1

4. What is the average CPI of a 1.4 GHz machine that executes 12.5 million instructions in 12 seconds?

Computer Architecture and Organization

Chapter 5. A Closer Look at Instruction Set Architectures

McGill University Faculty of Engineering FINAL EXAMINATION Fall 2007 (DEC 2007)

CHAPTER V NUMBER SYSTEMS AND ARITHMETIC

CONCORDIA UNIVERSITY Department of Computer Science and Software Engineering COMP 228/4 Section PP Midterm Exam

Chapter Two MIPS Arithmetic

4 Operations On Data 4.1. Foundations of Computer Science Cengage Learning

CS430 Computer Architecture

THE LOGIC OF COMPOUND STATEMENTS

Floating Point Arithmetic. Jin-Soo Kim Computer Systems Laboratory Sungkyunkwan University

Pipelining Exercises, Continued

ICS DEPARTMENT ICS 233 COMPUTER ARCHITECTURE & ASSEMBLY LANGUAGE. Midterm Exam. First Semester (141) Time: 1:00-3:30 PM. Student Name : _KEY

Transcription:

Computer Organization and Architecture (CSCI-365) Sample Final Exam NAME: STUDENT NUMBER 1. Consider a computer system with 64Kbytes main memory and 256bytes cache. If we assume the cache line size is 8 bytes. (15 points) 1. Show the format of main memory address with direct mapping, associative and 2- way set associative mapping, respectively. 2. If direct mapping is used, into what line would bytes with each of the following byte address be stored: 0001 0001 0001 1011 and 1010 1010 1010 1010 3. If direct mapping is used, supposed the byte with byte address 0001 1111 0001 1011 is stored in the cache. What are the addresses of the other bytes stored along with it. 4. If direct mapping is used, why is the tag also stored in the cache. 5. Draw a diagram of the cache organization and show briefly the different fields of the address are interpreted. Assume we still are using direct mapping. Page 1 of 7

2. Convert the C function below to MIPS assembly language. Make sure that your assembly language code could be called from a standard C program (that is to say, make sure you follow the MIPS calling conventions,in page 121 Figure 2.14) (10 points). unsigned int sum(unsigned int n) { if (n == 0) return 0; else return n + sum(n-1); } Page 2 of 7

3. Suppose we are running an application program which requires virtual memory space 32 Gbytes. The available physical memory space is 128 Mbytes. If we plan to use page length 16 Kbytes, describe the virtual and physical address format. Use a figure or texts to illustrate briefly the format of page table and address translation from virtual address to physical address. (15 points) Page 3 of 7

4. Consider a sequence of nine instructions without hazards occurring and show how it passes through a two and six stage pipeline respectively (draw a figure for each of the two situations). How many clock cycles are needed in each case? How about the speedup? In which case is the execution time of the sequence shorter? Can we conclude that an increasing number of stages always provide increasing performance? Bring arguments. (10 points) 5. What are pipeline hazards? Describe shortly three types of hazards with their reasons. Describe briefly how can those penalties be reduced? (7 points) Page 4 of 7

6. Computer Arithmetic (28 points in total) Given the following numbers, convert to decimal, binary, hexadecimal and octoal (6 points): DECIMAL BINARY HEXADECIMAL OCTOAL 37.625 37.625 1110 1110 3A.2D 3A.2D 1212 1212 Find the sum of the following two's complement numbers (one byte is used for storage.) Indicate if an error has occurred. Convert each number to its decimal equivalent to check your results. (2 points) 11111111 01001011 + 11111100 + 01010011 Given (x= -9 and y=3), compute the product p=x*y using two's complement notation by Booth algorithm. (5 points) Page 5 of 7

Show the IEEE 754 binary representations for the floating point number -0.75 10 in single precision. What is the equivalent decimal representation of 1011 1110 1001 0000 0000 0000 0000 0000 (also with IEEE 754 binary representation with single precision)? (5 points) Calculate A x (B + C) by assuming A, B, and C are in the 16-bit NVIDIA format with 1 guard bit, 1 round bit and 1 sticky bit (10 points) A= 1.5234375 x 10-1, B= 2.0703125 x 10-1, C= 9.96875 x 10 1 Page 6 of 7

7. Consider the following superscalar processor organization with 3 processing stages where two instructions can be fetched and decode at a time, three functional units (floating point unit, ADDF; integer adder, ADD; integer multiplier, MUL;) can work in parallel, and two instructions can be written back (completed) at a time. Assume I1 requires two cycles to execute. The left all pipeline stages take one cycle. Consider the following program to be executed on this processor: I1: ADDF R12, R13, R14 I2: ADD R1, R8, R9 I3: MUL R4, R2, R3 I4: MUL R5, R6, R7 I5: ADD R10, R5, R7 I6: ADD R11, R2, R3 I7: MUL R5, R9, R2 What dependencies exist in the program and specify them? (3 points) Which of them can be solved by register naming? (1 point) Which data dependencies have to be considered seriously by this superscalar processor when using in-order issue with in-order completion policies? (1 point) Which data dependencies have to be considered seriously by this superscalar processor when using out-of-order issue with out-of-order completion policies? (1 point) Show the pipeline activities on the processor using in-order issue with in-order completion policies. (3 points) Show the pipeline activities on the processor using in-order issue with out-oforder completion policies. (3 points) Show the pipeline activities on the processor using out-of-order issue with outof-order completion policies. (3 points) Page 7 of 7