Systems Architecture II

Slides:



Advertisements
Similar presentations
Pipeline Example: cycle 1 lw R10,9(R1) sub R11,R2, R3 and R12,R4, R5 or R13,R6, R7.
Advertisements

Prof. John Nestor ECE Department Lafayette College Easton, Pennsylvania ECE Computer Organization Pipelined Processor.
The Processor: Datapath & Control
ENEE350 Ankur Srivastava University of Maryland, College Park Based on Slides from Mary Jane Irwin ( )
Prof. John Nestor ECE Department Lafayette College Easton, Pennsylvania ECE Computer Organization Lecture 18 - Pipelined.
CMPUT Computer Organization and Architecture II1 CMPUT329 - Fall 2003 TopicI: Building a Multicycle Data Path and a Control Path for a Microprocessor.
©UCB CS 162 Computer Architecture Lecture 3: Pipelining Contd. Instructor: L.N. Bhuyan
Computer Structure - Datapath and Control Goal: Design a Datapath  We will design the datapath of a processor that includes a subset of the MIPS instruction.
The Processor 2 Andreas Klappenecker CPSC321 Computer Architecture.
Copyright 1998 Morgan Kaufmann Publishers, Inc. All rights reserved. Digital Architectures1 Machine instructions execution steps (1) FETCH = Read the instruction.
The Datapath Andreas Klappenecker CPSC321 Computer Architecture.
Supplementary notes for pipelining LW ____,____ SUB ____,____,____ BEQ ____,____,____ ; assume that, condition for branch is not satisfied OR ____,____,____.
COSC 3430 L08 Basic MIPS Architecture.1 COSC 3430 Computer Architecture Lecture 08 Processors Single cycle Datapath PH 3: Sections
Lec 15Systems Architecture1 Systems Architecture Lecture 15: A Simple Implementation of MIPS Jeremy R. Johnson Anatole D. Ruslanov William M. Mongan Some.
1 A single-cycle MIPS processor  An instruction set architecture is an interface that defines the hardware operations which are available to software.
MIPS processor continued. In Class Exercise Question Show the datapath of a processor that supports only R-type and jr reg instructions.
Oct. 18, 2000Machine Organization1 Machine Organization (CS 570) Lecture 4: Pipelining * Jeremy R. Johnson Wed. Oct. 18, 2000 *This lecture was derived.
MIPS processor continued
Datapath and Control AddressInstruction Memory Write Data Reg Addr Register File ALU Data Memory Address Write Data Read Data PC Read Data Read Data.
1 Chapter 5: Datapath and Control (Part 2) CS 447 Jason Bakos.
May 22, 2000Systems Architecture I1 Systems Architecture I (CS ) Lecture 14: A Simple Implementation of MIPS * Jeremy R. Johnson Mon. May 17, 2000.
Computer Architecture Lecture 6.  Our implementation of the MIPS is simplified memory-reference instructions: lw, sw arithmetic-logical instructions:
Computer Architecture
IT 251 Computer Organization and Architecture
Performance of Single-cycle Design
/ Computer Architecture and Design
Systems Architecture I
Morgan Kaufmann Publishers The Processor
Single Clock Datapath With Control
ECS 154B Computer Architecture II Spring 2009
\course\cpeg323-08F\Topic6b-323
Design of the Control Unit for Single-Cycle Instruction Execution
MIPS processor continued
Review: MIPS Pipeline Data and Control Paths
Morgan Kaufmann Publishers The Processor
Chapter 4 The Processor Part 2
CSCI206 - Computer Organization & Programming
CS/COE0447 Computer Organization & Assembly Language
Single-cycle datapath, slightly rearranged
Systems Architecture I
Systems Architecture I (CS ) Lecture 16: Exceptions
Design of the Control Unit for One-cycle Instruction Execution
Systems Architecture I
CSCI206 - Computer Organization & Programming
Lecturer: Alan Christopher
CS/COE0447 Computer Organization & Assembly Language
\course\cpeg323-05F\Topic6b-323
Rocky K. C. Chang 6 November 2017
Composing the Elements
Composing the Elements
Systems Architecture I
The Processor Lecture 3.2: Building a Datapath with Control
Systems Architecture I
COSC 2021: Computer Organization Instructor: Dr. Amir Asif
Lecture 14: Single Cycle MIPS Processor
Processor: Multi-Cycle Datapath & Control
Control Unit (single cycle implementation)
Systems Architecture I (CS ) Lecture 17: Exceptions
Systems Architecture I
MIPS processor continued
Systems Architecture II
Systems Architecture I
Control Unit (single cycle implementation)
A relevant question Assuming you’ve got: One washer (takes 30 minutes)
The Processor: Datapath & Control.
COMS 361 Computer Organization
MIPS Pipelined Datapath
Processor: Datapath and Control
Pipelined datapath and control
CS/COE0447 Computer Organization & Assembly Language
Presentation transcript:

Systems Architecture II September 4, 1997 Systems Architecture II (CS 282-001) Lecture 4: Pipelined Datapath and Control* Jeremy R. Johnson Wed. June 27, 2001 *This lecture was derived from material in the text (Chap. 6). All figures from Computer Organization and Design: The Hardware/Software Approach, Second Edition, by David Patterson and John Hennessy, are copyrighted material (COPYRIGHT 1998 MORGAN KAUFMANN PUBLISHERS, INC. ALL RIGHTS RESERVED). June 27, 2001 Systems Architecture II

Systems Architecture II September 4, 1997 Introduction Objective: To understand the modifications to the datapath and control used in the single cycle implementation of MIPS needed to support pipelining. Key idea: Separate datapath into 5 pieces, one for each stage of the pipeline. Add registers between pieces to hold the information specific to the currently executing instruction. Note: We will ignore the difficulties due to hazards in this lecture Topics Review of the single cycle implementation of MIPS Pipelined datapath Graphical representation of pipelines (multiple and single clock-cycle pipelining diagrams) Adding control to the pipelined datapath June 27, 2001 Systems Architecture II

Pipeline Stages for MIPS Instruction Execution There are five stages: IF: Fetch instruction ID: Instruction decode and register file EX: Execution or address calculation MEM: Data memory access WB: Write back June 27, 2001 Systems Architecture II

Single-cycle Datapath June 27, 2001 Systems Architecture II

Instruction Execution June 27, 2001 Systems Architecture II

Systems Architecture II Pipeline Registers June 27, 2001 Systems Architecture II

Load Instruction (stages 1-3) June 27, 2001 Systems Architecture II

Load Instruction (stages 4-5) June 27, 2001 Systems Architecture II

Store Instruction (stages 3-5) June 27, 2001 Systems Architecture II

Correction to Datapath for Load June 27, 2001 Systems Architecture II

Datapath with Control Signals June 27, 2001 Systems Architecture II

Systems Architecture II ALU Control June 27, 2001 Systems Architecture II

Systems Architecture II Control Signals RegDst - register destination number if deasserted then rt field (bits 20-16) if asserted then rd field (bits 15-11) RegWrite - write to register file when asserted ALUSrc - select second input to ALU if deasserted then second register file output if asserted then sign-extended 16 bits of instruction PCSrc - select input to PC if deasserted then PC+4 if asserted then branch target MemRead - read from memory if asserted MemWrite - write to memory if asserted MemtoReg - select register write data source if deasserted then ALU output if asserted then data memory June 27, 2001 Systems Architecture II

Passing Control through the Pipeline June 27, 2001 Systems Architecture II

Datapath with Control Signals June 27, 2001 Systems Architecture II

Systems Architecture II Example lw $10, 20($1) sub $11, $2, $3 and $12, $4, $5 or $13, $6, $7 add $14, $8, $9 June 27, 2001 Systems Architecture II

Systems Architecture II June 27, 2001 Systems Architecture II

Systems Architecture II June 27, 2001 Systems Architecture II

Systems Architecture II June 27, 2001 Systems Architecture II

Systems Architecture II June 27, 2001 Systems Architecture II

Systems Architecture II June 27, 2001 Systems Architecture II

Systems Architecture II June 27, 2001 Systems Architecture II

Systems Architecture II June 27, 2001 Systems Architecture II

Systems Architecture II June 27, 2001 Systems Architecture II

Systems Architecture II June 27, 2001 Systems Architecture II