ECE 313 Computer Organization EXAM 2 November 9, 2001

Similar documents
ECE 313 Computer Organization Name SOLUTION EXAM 2 November 3, Floating Point 20 Points

Multi-cycle Approach. Single cycle CPU. Multi-cycle CPU. Requires state elements to hold intermediate values. one clock cycle or instruction

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

Lab 8: Multicycle Processor (Part 1) 0.0

Systems Architecture I

CSE 2021 Computer Organization. Hugh Chesser, CSEB 1012U W10-M

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

Lecture 10 Multi-Cycle Implementation

Processor (multi-cycle)

CSE 2021 Computer Organization. Hugh Chesser, CSEB 1012U W9-W

Multiple Cycle Data Path

ENE 334 Microprocessors

RISC Design: Multi-Cycle Implementation

Computer Science 141 Computing Hardware

CC 311- Computer Architecture. The Processor - Control

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

CO Computer Architecture and Programming Languages CAPL. Lecture 18 & 19

COMP303 - Computer Architecture Lecture 10. Multi-Cycle Design & Exceptions

Computer Organization & Design The Hardware/Software Interface Chapter 5 The processor : Datapath and control

The Processor: Datapath & Control

Microprogrammed Control Approach

Multicycle conclusion

ECE473 Computer Architecture and Organization. Processor: Combined Datapath

Single-Cycle Examples, Multi-Cycle Introduction

CPE 335. Basic MIPS Architecture Part II

ALUOut. Registers A. I + D Memory IR. combinatorial block. combinatorial block. combinatorial block MDR

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

Mapping Control to Hardware

Review: Abstract Implementation View

Lets Build a Processor

ECE468 Computer Organization and Architecture. Designing a Multiple Cycle Controller

RISC Processor Design

Processor: Multi- Cycle Datapath & Control

CSE 2021 COMPUTER ORGANIZATION

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

Multicycle Approach. Designing MIPS Processor

Inf2C - Computer Systems Lecture 12 Processor Design Multi-Cycle

CENG 3420 Lecture 06: Datapath

Outline. Combinational Element. State (Sequential) Element. Clocking Methodology. Input/Output of Elements

Implementing the Control. Simple Questions

ECE 3056: Architecture, Concurrency and Energy of Computation. Single and Multi-Cycle Datapaths: Practice Problems

CSE 2021 COMPUTER ORGANIZATION

Lecture 5: The Processor

comp 180 Lecture 25 Outline of Lecture The ALU Control Operation & Design The Datapath Control Operation & Design HKUST 1 Computer Science

CS2214 COMPUTER ARCHITECTURE & ORGANIZATION SPRING 2014

Chapter 4 The Processor (Part 2)

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

CS2214 COMPUTER ARCHITECTURE & ORGANIZATION SPRING 2014

RISC Architecture: Multi-Cycle Implementation

CPE 335 Computer Organization. Basic MIPS Architecture Part I

Topic #6. Processor Design

RISC Architecture: Multi-Cycle Implementation

LECTURE 6. Multi-Cycle Datapath and Control

CS152 Computer Architecture and Engineering Lecture 13: Microprogramming and Exceptions. Review of a Multiple Cycle Implementation

ECE369. Chapter 5 ECE369

ECE232: Hardware Organization and Design

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

Points available Your marks Total 100

Microprogramming. Microprogramming

Initial Representation Finite State Diagram Microprogram. Sequencing Control Explicit Next State Microprogram counter

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

Chapter 5 Solutions: For More Practice

Introduction. ENG3380 Computer Organization and Architecture MIPS: Data Path Design Part 3. Topics. References. School of Engineering 1

5.7. Microprogramming: Simplifying Control Design 5.7

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

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

Review Multicycle: What is Happening. Controlling The Multicycle Design

Initial Representation Finite State Diagram. Logic Representation Logic Equations

CS152 Computer Architecture and Engineering. Lecture 8 Multicycle Design and Microcode John Lazzaro (

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

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

COMP303 Computer Architecture Lecture 9. Single Cycle Control

Computer and Information Sciences College / Computer Science Department The Processor: Datapath and Control

Merging datapaths: (add,lw, sw)

ENGN1640: Design of Computing Systems Topic 04: Single-Cycle Processor Design

Major CPU Design Steps

Digital Design and Computer Architecture Harris and Harris

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

The overall datapath for RT, lw,sw beq instrucution

PART I: Adding Instructions to the Datapath. (2 nd Edition):

ECE 361 Computer Architecture Lecture 11: Designing a Multiple Cycle Controller. Review of a Multiple Cycle Implementation

Digital Design and Computer Architecture

CS232 Final Exam May 5, 2001

Lecture 6: Microprogrammed Multi Cycle Implementation. James C. Hoe Department of ECE Carnegie Mellon University

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

Chapter 5: The Processor: Datapath and Control

EECE 417 Computer Systems Architecture

LECTURE 5. Single-Cycle Datapath and Control

Computer Architecture Chapter 5. Fall 2005 Department of Computer Science Kent State University

Grading Results Total 100

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

Design of Digital Circuits Lecture 13: Multi-Cycle Microarch. Prof. Onur Mutlu ETH Zurich Spring April 2017

Control Unit for Multiple Cycle Implementation

Lecture 3: The Processor (Chapter 4 of textbook) Chapter 4.1

CSE 141 Computer Architecture Spring Lectures 11 Exceptions and Introduction to Pipelining. Announcements

Processor Design CSCE Instructor: Saraju P. Mohanty, Ph. D. NOTE: The figures, text etc included in slides are borrowed

Lecture 10: Simple Data Path

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

Pipelined Datapath. One register file is enough

CSE140: Components and Design Techniques for Digital Systems

Transcription:

ECE 33 Computer Organization EA 2 November 9, 2 This exam is open book and open notes. You have 5 minutes. Credit for problems requiring calculation will be given only if you show your work. Choose and work four of the five problems, and cross out the problem that you choose not to work. Only four problems will be graded even if you do not cross out a problem.. Floating Point Representation 25 Points a) Translate the decimal value 7.75 into single-precision floating point representation and show your answer in the space provided below. 3 3 29 28 27 26 25 24 23 22 2 2 9 8 7 6 5 4 3 2 9 8 7 6 5 4 3 2 b) 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. 3 3 29 28 27 26 25 24 23 22 2 2 9 8 7 6 5 4 3 2 9 8 7 6 5 4 3 2 Value of number: Page of 6

ECE 33 Computer Organization EA 2 November 9, 2 2. Single-Cycle Processor Design 25 Points odify the single-cycle datapath and control to implement the jal (jump and link) instruction that is used for subprogram calls. The register transfer description for this instruction is as follows: Reg[3] <- PC + 4; PC <- PC+4[3:28] @ (Instruction[25:] << 2) ark the necessary changes to the datapath and control on the diagrams shown below. PC 4 ADDR ADD Instruction RD jmpaddr I[25:] 26 32 op I[3: Control nit Instruction I 6 WD <<2 Op 2 5 5 RN RN2 WN RD Register File RegWrite 28 Control CONCAT op 6 I[3:26] funct 6I[5:] 5 5 RD2 6 E T N D 32 RegDst 32 PC+4[3-28] Src <<2 Operation 3 ADD Zero PCSrc Jump Branch emwrite ADDR Data WD emread RD emtor Instr RegDst Src emtoreg Reg Write Control Table em Read em Write Branch Op Op jr Page 2 of 6

ECE 33 Computer Organization EA 2 November 9, 2 3. Single-Cycle Processor Performance 25 Points The timing calculations performed on page 374 of the book assumed that the delay of the control units and multiplexers are negligible. In this problem we will consider the impact on timing of when the delays of the control units are not neglible. Specifically, suppose that in Figure 5.29 on p. 372, the block marked control has a delay and the block marked control has a delay Y. Further assume that The output will be stable 2ns after its control and data inputs are stable A multipliexer output is stable ns after its select and data inputs are stable Calculate the longest path through the single-cycle processor design when: (a) = ns, Y = ns (b) = 2ns, Y = ns 4. ulti-cycle Processor Design 25 Points odify the multi-cycle processor datapath and control to implement the jal (jump and link register) instruction. The register transfer description is the same as in the Problem 2. ark your changes on the attached schematic diagram and state diagram. How many clock cycles are required to execute the jump register instruction? Page 3 of 6

ECE 33 Computer Organization EA 2 November 9, 2 Page 4 of 6

ECE 33 Computer Organization EA 2 November 9, 2 ulticycle Design State Diagram Start Instruction Fetch emread SrcA = IorD = IRWrite SrcB = Op = PCWrite PCSource = Instruction decode / register fetch SrcA = SrcB = Op = (OP = BEQ ) address computation SrcA = SrcB = Op = Branch Execution Completion 6 8 9 SrcA = SrcB = Op = SrcA = SrcB = Op = PCWriteCond PCSource = Jump Completion PCWrite PCSource = OP = LW ) emread IorD = access (OP = ( SW ) access 5 7 emwrite IorD = RegDst = RegWrite emtoreg = R-type completion Writeback step RegWrite emtoreg= RegDst = Page 5 of 6

ECE 33 Computer Organization EA 2 November 9, 2 4. icroprogrammed Design 25 Points Extend the microprogrammed implementation of the multicycle design discussed in lecture and the book to implement the addi instruction as in Homework Problem 5.5. Show any modifications to the microprogram (e.g., added microinstructions) and dispatch ROs (jump tables) by modifying the tables shown below. Label control SRC SRC2 Register control PCWrite control Sequencing Fetch Add PC 4 Read PC Seq Add PC Extshft Read Dispatch em Add A Extend Dispatch 2 LW2 Read Seq Write DR Fetch SW2 Write Fetch Rformat Func code A B Seq Write Fetch BEQ Subt A B Out-cond Fetch JP Jump address Fetch Dispatch RO Dispatch RO 2 Op Opcode name Value Op Opcode name Value R-format lw jmp sw beq lw sw Page 6 of 6