Introduction. Chapter 4. Instruction Execution. CPU Overview. University of the District of Columbia 30 September, Chapter 4 The Processor 1

Similar documents
Chapter 4. The Processor

Chapter 4. The Processor

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

Chapter 4. The Processor. Instruction count Determined by ISA and compiler. We will examine two MIPS implementations

Chapter 4. The Processor Designing the datapath

Processor (I) - datapath & control. Hwansoo Han

The Processor (1) Jinkyu Jeong Computer Systems Laboratory Sungkyunkwan University

Introduction. Datapath Basics

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

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

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

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

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

Chapter 4. The Processor

Systems Architecture

ECE260: Fundamentals of Computer Engineering

Chapter 4. The Processor

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

TDT4255 Computer Design. Lecture 4. Magnus Jahre. TDT4255 Computer Design

COMPUTER ORGANIZATION AND DESIGN

The MIPS Processor Datapath

CSSE232 Computer Architecture I. Datapath

Chapter 4 The Processor 1. Chapter 4A. The Processor

ECE232: Hardware Organization and Design

Single Cycle Datapath

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

Single Cycle Datapath

Inf2C - Computer Systems Lecture Processor Design Single Cycle

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

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

Learning Outcomes. Spiral 3-3. Sorting: Software Implementation REVIEW

COMPUTER ORGANIZATION AND DESIGN

COMPUTER ORGANIZATION AND DESIGN

4. The Processor Computer Architecture COMP SCI 2GA3 / SFWR ENG 2GA3. Emil Sekerinski, McMaster University, Fall Term 2015/16

CS61C : Machine Structures

Determined by ISA and compiler. We will examine two MIPS implementations. A simplified version A more realistic pipelined version

Chapter 4. The Processor

Computer Architecture Computer Science & Engineering. Chapter 4. The Processor BK TP.HCM

Stack. Heap. Static. Code

Chapter 4. The Processor

Chapter 4. The Processor

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

LECTURE 5. Single-Cycle Datapath and Control

CS 31: Intro to Systems Digital Logic

Lecture 08: RISC-V Single-Cycle Implementa9on CSE 564 Computer Architecture Summer 2017

Computer Hardware Engineering

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

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

Lecture Topics ECE 341. Lecture # 10. Register File. Hardware Components of a Processor

CS222: Processor Design

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

Pipelining. CSC Friday, November 6, 2015

Fundamentals of Computer Systems

Mark Redekopp and Gandhi Puvvada, All rights reserved. EE 357 Unit 15. Single-Cycle CPU Datapath and Control

Computer Hardware Engineering

CPE 335 Computer Organization. Basic MIPS Architecture Part I

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

Topic #6. Processor Design

LECTURE 3: THE PROCESSOR

Review: Abstract Implementation View

CPU Organization (Design)

Chapter 5: The Processor: Datapath and Control

EIE/ENE 334 Microprocessors

Computer Architecture Computer Science & Engineering. Chapter 4. The Processor BK TP.HCM

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

Block diagram view. Datapath = functional units + registers

The Big Picture: Where are We Now? EEM 486: Computer Architecture. Lecture 3. Designing a Single Cycle Datapath

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

Data paths for MIPS instructions

5 th Edition. The Processor We will examine two MIPS implementations A simplified version A more realistic pipelined version

Computer Organization and Components

Multi Cycle Implementation Scheme for 8 bit Microprocessor by VHDL

Outline. EEL-4713 Computer Architecture Designing a Single Cycle Datapath

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

Computer Hardware Engineering

CS 61C: Great Ideas in Computer Architecture. MIPS CPU Datapath, Control Introduction

COMPUTER ORGANIZATION AND DESI

Computer Architecture CS372 Exam 3

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

Pipelining Analogy. Pipelined laundry: overlapping execution. Parallelism improves performance. Four loads: Non-stop: Speedup = 8/3.5 = 2.3.

Ch 5: Designing a Single Cycle Datapath

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

Instruction word R0 R1 R2 R3 R4 R5 R6 R8 R12 R31

Computer Organization and Structure. Bing-Yu Chen National Taiwan University

ALU Design. 1-bit Full Adder 4-bit Arithmetic circuits. Arithmetic and Logic Unit Flags. Add/Subtract/Increament/Decrement Circuit

3/12/2014. Single Cycle (Review) CSE 2021: Computer Organization. Single Cycle with Jump. Multi-Cycle Implementation. Why Multi-Cycle?

CS/COE1541: Introduction to Computer Architecture

Advanced Topic in Pipeline: Pipeline scheduling

Laboratory 5 Processor Datapath

Chapter 1. Computer Abstractions and Technology. Lesson 3: Understanding Performance

ECE 30, Lab #8 Spring 2014

RISC Processor Design

CC 311- Computer Architecture. The Processor - Control

CS/COE0447: Computer Organization

CS/COE0447: Computer Organization

Computer Organization and Structure

CENG 3420 Lecture 06: Datapath

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

The Processor: Datapath & Control

Basic Processing Unit: Some Fundamental Concepts, Execution of a. Complete Instruction, Multiple Bus Organization, Hard-wired Control,

Transcription:

Chapter 4 The Processor Introduction CPU performance factors Instruction count etermined by IS and compiler CPI and Cycle time etermined by CPU hardware We will examine two MIPS implementations simplified version more realistic pipelined version Simple subset, shows most aspects Memory reference: lw, sw rithmetic/logical: add, sub, and, or, slt Control transfer: beq, j 4.1 Introduction Chapter 4 The Processor 2 Instruction Execution CPU Overview PC instruction memory, fetch instruction Register numbers register file, read registers epending on instruction class Use LU to calculate rithmetic result Memory address for load/store ranch target address ccess data memory for load/store PC target address or PC + 4 Chapter 4 The Processor 3 Chapter 4 The Processor 4 Chapter 4 The Processor 1

Multiplexers Control Can t just join wires together Use multiplexers Chapter 4 The Processor 5 Chapter 4 The Processor 6 Logic esign asics Information encoded in binary Low voltage = 0, High voltage = 1 One wire per bit Multi-bit data encoded on multi-wire buses Combinational element Operate on data Output is a function of input State (sequential) elements Store information 4.2 Logic esign Conventions Combinational Elements N-gate = & Multiplexer = S? I1 : I0 I0 I1 M u x S dder = + rithmetic/logic Unit = F(, ) LU F + Chapter 4 The Processor 7 Chapter 4 The Processor 8 Chapter 4 The Processor 2

Sequential Elements Sequential Elements Register: stores data in a circuit Uses a clock signal to determine when to update the stored value Edge-triggered: update when changes from 0 to 1 Register with write control Only updates on clock edge when write control input is 1 Used when stored value is required later Write Write Chapter 4 The Processor 9 Chapter 4 The Processor 10 Clocking Methodology Combinational logic transforms data during clock cycles etween clock edges Input from state elements, output to state element Longest delay determines clock period uilding a atapath atapath Elements that process data and addresses in the CPU Registers, LUs, mux s, memories, We will build a MIPS datapath incrementally Refining the overview design 4.3 uilding a atapath Chapter 4 The Processor 11 Chapter 4 The Processor 12 Chapter 4 The Processor 3

Instruction Fetch R-Format Instructions Read two register operands Perform arithmetic/logical operation Write register result 32-bit register Increment by 4 for next instruction Chapter 4 The Processor 13 Chapter 4 The Processor 14 Load/Store Instructions Read register operands Calculate address using 16-bit offset Use LU, but sign-extend offset Load: Read memory and update register Store: Write register value to memory ranch Instructions Read register operands Compare operands Use LU, subtract and check Zero output Calculate target address Sign-extend displacement Shift left 2 places (word displacement) dd to PC + 4 lready calculated by instruction fetch Chapter 4 The Processor 15 Chapter 4 The Processor 16 Chapter 4 The Processor 4

ranch Instructions Just re-routes wires Composing the Elements First-cut data path does an instruction in one clock cycle Each datapath element can only do one function at a time Hence, we need separate instruction and data memories Use multiplexers where alternate data sources are used for different instructions Sign-bit wire replicated Chapter 4 The Processor 17 Chapter 4 The Processor 18 R-Type/Load/Store atapath Full atapath Chapter 4 The Processor 19 Chapter 4 The Processor 20 Chapter 4 The Processor 5