ECE 313 Computer Organization EXAM 2 November 11, 2000

Similar documents
ECE 313 Computer Organization FINAL EXAM December 13, 2000

ECE 313 Computer Organization FINAL EXAM December 14, This exam is open book and open notes. You have 2 hours.

Processor (I) - datapath & control. Hwansoo Han

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

ECE232: Hardware Organization and Design

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

Systems Architecture

CSE 378 Midterm 2/12/10 Sample Solution

Adding Support for jal to Single Cycle Datapath (For More Practice Exercise 5.20)

Digital Design & Computer Architecture (E85) D. Money Harris Fall 2007

COMPUTER ORGANIZATION AND DESIGN. The Hardware/Software Interface. Chapter 4. The Processor: A Based on P&H

CSEN 601: Computer System Architecture Summer 2014

Chapter 4. The Processor. Computer Architecture and IC Design Lab

Chapter 5 Solutions: For More Practice

Project Description EEC 483 Computer Organization, Spring 2019

ELEC 5200/6200 Computer Architecture and Design Spring 2017 Lecture 4: Datapath and Control

EECS150 - Digital Design Lecture 10- CPU Microarchitecture. Processor Microarchitecture Introduction

Design of Digital Circuits 2017 Srdjan Capkun Onur Mutlu (Guest starring: Frank K. Gürkaynak and Aanjhan Ranganathan)

Winter 2006 FINAL EXAMINATION Auxiliary Gymnasium Tuesday, April 18 7:00pm to 10:00pm

CS 351 Exam 2 Mon. 11/2/2015

CSE 2021: Computer Organization Fall 2010 Solution to Assignment # 3: Multicycle Implementation

ECE 313 Computer Organization FINAL EXAM December 11, Multicycle Processor Design 30 Points

Computer Organization and Structure

Chapter 4. The Processor

Lecture 8: Control COS / ELE 375. Computer Architecture and Organization. Princeton University Fall Prof. David August

The Processor. Z. Jerry Shi Department of Computer Science and Engineering University of Connecticut. CSE3666: Introduction to Computer Architecture

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

Topic #6. Processor Design

EECS150 - Digital Design Lecture 9- CPU Microarchitecture. Watson: Jeopardy-playing Computer

CSE 2021 COMPUTER ORGANIZATION

Problem 4 The order, from easiest to hardest, is Bit Equal, Split Register, Replace Under Mask.

Lecture Topics. Announcements. Today: Single-Cycle Processors (P&H ) Next: continued. Milestone #3 (due 2/9) Milestone #4 (due 2/23)

Inf2C - Computer Systems Lecture Processor Design Single Cycle

CS 351 Exam 2, Fall 2012

2. (3 pts) There are two different ways to measure performance. What are they? 3. (3 pts) Why doesn t MIPS have a subtract immediate instruction?

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

Department of Electrical Engineering and Computer Sciences Fall 2003 Instructor: Dave Patterson CS 152 Exam #1. Personal Information

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

CC 311- Computer Architecture. The Processor - Control

Lecture 4: Review of MIPS. Instruction formats, impl. of control and datapath, pipelined impl.

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

Chapter 4. The Processor

Midterm I October 6, 1999 CS152 Computer Architecture and Engineering

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

Guerrilla Session 3: MIPS CPU

ECE Exam I - Solutions February 19 th, :00 pm 4:25pm

CS3350B Computer Architecture Quiz 3 March 15, 2018

Chapter 5: The Processor: Datapath and Control

Points available Your marks Total 100

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

EECS 151/251A Fall 2017 Digital Design and Integrated Circuits. Instructor: John Wawrzynek and Nicholas Weaver. Lecture 13 EE141

ECE369. Chapter 5 ECE369

For More Practice FMP

Computer Architecture V Fall Practice Exam Questions

ECE 313 Computer Organization FINAL EXAM December 14, This exam is open book and open notes. You have 2 hours.

CS/COE0447: Computer Organization

CS/COE0447: Computer Organization

Single Cycle Data Path

Machine Organization & Assembly Language

COMP303 - Computer Architecture Lecture 8. Designing a Single Cycle Datapath

NATIONAL UNIVERSITY OF SINGAPORE

CSE Computer Architecture I Fall 2009 Lecture 13 In Class Notes and Problems October 6, 2009

CSE 2021 COMPUTER ORGANIZATION

COMPUTER ORGANIZATION AND DESIGN. 5 th Edition. The Hardware/Software Interface. Chapter 4. The Processor

CSE Lecture In Class Example Handout

Solution printed. Do not start the test until instructed to do so! CS 2504 Intro Computer Organization Test 2 Spring 2006.

The Processor: Datapath and Control. Jin-Soo Kim Computer Systems Laboratory Sungkyunkwan University

LECTURE 5. Single-Cycle Datapath and Control

Winter 2002 FINAL EXAMINATION

4. (2 pts) What is the only valid and unimpeachable measure of performance?

ﻪﺘﻓﺮﺸﻴﭘ ﺮﺗﻮﻴﭙﻣﺎﻛ يرﺎﻤﻌﻣ MIPS يرﺎﻤﻌﻣ data path and ontrol control

EE 457 Unit 6a. Basic Pipelining Techniques

Systems Architecture I

Final Exam Spring 2017

To design a 4-bit ALU To experimentally check the operation of the ALU

University of Jordan Computer Engineering Department CPE439: Computer Design Lab

ECE Sample Final Examination

Computer Architecture I Midterm I (solutions)

COMP2611: Computer Organization. The Pipelined Processor

University of California, Berkeley College of Engineering

University of California, Berkeley College of Engineering

Sample Exam I PAC II ANSWERS

The Processor: Datapath & Control

CPE 335. Basic MIPS Architecture Part II

CENG 3420 Computer Organization and Design. Lecture 06: MIPS Processor - I. Bei Yu

ECE Exam I February 19 th, :00 pm 4:25pm

University of California, Berkeley College of Engineering

Chapter 4. Instruction Execution. Introduction. CPU Overview. Multiplexers. Chapter 4 The Processor 1. The Processor.

Laboratory 5 Processor Datapath

COMPUTER ORGANIZATION AND DESIGN. 5 th Edition. The Hardware/Software Interface. Chapter 4. The Processor

Lecture 5 and 6. ICS 152 Computer Systems Architecture. Prof. Juan Luis Aragón

EE457. Note: Parts of the solutions are extracted from the solutions manual accompanying the text book.

Computer Science 324 Computer Architecture Mount Holyoke College Fall Topic Notes: Data Paths and Microprogramming

ECE 313 Computer Organization EXAM 2 November 9, 2001

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

Computer Architecture, IFE CS and T&CS, 4 th sem. Single-Cycle Architecture

Single Cycle Datapath

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

Pipelining. lecture 15. MIPS data path and control 3. Five stages of a MIPS (CPU) instruction. - factory assembly line (Henry Ford years ago)

King Fahd University of Petroleum and Minerals College of Computer Science and Engineering Computer Engineering Department

Transcription:

This exam is open book and open notes. You have 50 minutes. Credit for problems requiring calculation will be given only if you show your work. 1. ALU Design / Logic Operations 20 Points The subset of the MIPS instruction set that is supported by the ALU design in Chapter 4 includes two bitwise Boolean operations: AND and OR. The full MIPS architecture specifies also the NOR, NOT, and Exclusive OR (XOR) operations. In this problem we will consider using a four-to-one multiplexer as a universal function unit, as shown here: Control Inputs 0 0 0 1 C0 C1 C2 C3 Data Inputs Ai Bi 0 1 2 3 Yi Data Output In this circuit the select inputs of the multiplexer are treated as data signals, where each possible value of A i and B i selects a control input value C0, C1, C2, or C3. By setting the control inputs to different values, we can make the function unit perform an arbitrary boolean function of the two inputs A i and B i. As shown in the example above, making the inputs C0=0, C1=0, C2=0, and C3=1 makes the output Y i =1 only when A i =1 and B i =1. This computers an AND function, as shown in the table below. Similarly, making the inputs C0=0, C1=1, C2=1, and C3=1 makes the output Y i =1 whenever either A i =1 or B i =1. This computes an OR function. (a) Fill in the rest of the table below to show how the function unit could be used to compute the logic functions A i NOR B i, NOT A i, and A i XOR B i. Function C0 C1 C2 C3 AND 0 0 0 1 OR 0 1 1 1 NOR NOT Ai XOR Page 1 of 6

(b) Redesign the 1-bit ALU slice shown in Figure 4.16 of the book (p. 236) using the function unit to replace the AND and OR gates that perform logic functions, allowing the ALU to perform the additional MIPS boolean instructions. Draw a diagram of your redesigned circuit in the space provided below. How many control inputs does the modified ALU have? 2. Floating Point / Logical & Shifting Instructions 20 Points A single-precision IEEE floating-point number is stored a memory location X. Write a sequence of MIPS assembly instructions that will calculate the absolute value of this number and store the result back in memory location X. Accomplish this without using any floating point instructions. Page 2 of 6

3. Floating Point Representation 20 Points (a) In the space provided below, show the largest positive number that can be represented in IEEE single-precision floating point. Also, write the power of two (i.e., 2 X ) that most closely represents the value of this number. 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 Closest power of two: (b) In the space provided below, show the smallest negative number (where smallest means closest to zero ) that can be represented in IEEE single-precision floating point. Also, write the power of two (i.e., 2 X ) that most closely represents the value of this number. 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 Closest power of two: (c) Translate the number shown below in IEEE single-precision floating point format into its decimal equivalent and writes its value in the space provided below. 1 1 0 0 0 0 0 1 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 Value of number: Page 3 of 6

4. Single-Cycle Processor Design 20 Points Modify the single-cycle datapath and control to implement the jr (jump register) instruction. The register transfer description for this instruction is as follows: PC <- Reg[rs] Mark the necessary changes to the datapath and control on the diagrams shown below. (See Book Figure 5.33, p. 383) Instruction RegDst ALUSrc MemtoReg Reg Write Control Table Mem Read Mem Write Branch ALUOp1 ALUOp0 jr Page 4 of 6

5. Multi-Cycle Processor Design 20 Points Modify the multi-cycle processor datapath and control to implement the jr (jump register) instruction. The register transfer description is the same as in the previous problem. Mark your changes on the attached schematic diagram and state diagram. How many clock cycles are required to execute the jump register instruction? (See Book Figure 5.33, p. 383) Page 5 of 6

Multicycle Design State Diagram (see Book Fig. 5.42, p. 396) Page 6 of 6