FAMU-FSU College of Engineering 1 Computer Architecture EEL 4713/5764, Spring 2006 Dr. Michael Frank Module #13 – Instruction Execution Steps (in a Single-Cycle.

Slides:



Advertisements
Similar presentations
Nov. 2014Computer Architecture, Data Path and ControlSlide 1 Part IV Data Path and Control.
Advertisements

13 Instruction Execution Steps
Part IV Data Path and Control
The Processor: Datapath & Control
Savio Chau Single Cycle Controller Design Last Time: Discussed the Designing of a Single Cycle Datapath Control Datapath Memory Processor (CPU) Input Output.
331 W9.1Spring :332:331 Computer Architecture and Assembly Language Spring 2006 Week 9 Building a Single-Cycle Datapath [Adapted from Dave Patterson’s.
CPSC CPSC 3615 Computer Architecture Chapter 3 Instructions and Addressing (Text Book: Chapter 5)
Lec 17 Nov 2 Chapter 4 – CPU design data path design control logic design single-cycle CPU performance limitations of single cycle CPU multi-cycle CPU.
331 Lec 14.1Fall 2002 Review: Abstract Implementation View  Split memory (Harvard) model - single cycle operation  Simplified to contain only the instructions:
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.
14 Control Unit Synthesis
Copyright 1998 Morgan Kaufmann Publishers, Inc. All rights reserved. Digital Architectures1 Machine instructions execution steps (1) FETCH = Read the instruction.
Feb 18, 2009 Lecture 4-1 instruction set architecture (Part II of [Parhami]) MIPS assembly language instructions MIPS assembly programming.
The Processor: Datapath & Control. Implementing Instructions Simplified instruction set memory-reference instructions: lw, sw arithmetic-logical instructions:
Chapter 4 Sections 4.1 – 4.4 Appendix D.1 and D.2 Dr. Iyad F. Jafar Basic MIPS Architecture: Single-Cycle Datapath and Control.
COSC 3430 L08 Basic MIPS Architecture.1 COSC 3430 Computer Architecture Lecture 08 Processors Single cycle Datapath PH 3: Sections
A Small Set of Instructions Fig MicroMIPS instruction formats and naming of the various fields. Seven R-format ALU instructions ( add, sub,
The CPU Processor (CPU): the active part of the computer, which does all the work (data manipulation and decision-making) Datapath: portion of the processor.
1. 2 Instructions: Words of the language understood by CPU Instruction set: CPU’s vocabulary Instruction Set Architecture (ISA): CPU’s vocabulary together.
Processor: Datapath and Control
Part IV Data Path and Control
ECE 445 – Computer Organization
CS2100 Computer Organisation The Processor: Datapath (AY2015/6) Semester 1.
Computer Architecture and Design – ECEN 350 Part 6 [Some slides adapted from A. Sprintson, M. Irwin, D. Paterson and others]
FAMU-FSU College of Engineering 1 Computer Architecture EEL 4713/5764, Spring 2006 Dr. Michael Frank Module #6 – MIPS ISA, part 1: Instructions and Addressing.
July 2005Computer Architecture, Data Path and ControlSlide 1 Part IV Data Path and Control.
Computer Architecture, Data Path and ControlSlide 1 Part IV Data Path and Control.
Chapter 4 From: Dr. Iyad F. Jafar Basic MIPS Architecture: Single-Cycle Datapath and Control.
Datapath and Control AddressInstruction Memory Write Data Reg Addr Register File ALU Data Memory Address Write Data Read Data PC Read Data Read Data.
COM181 Computer Hardware Lecture 6: The MIPs CPU.
Single Cycle Controller Design
MIPS Processor.
CSCI-365 Computer Organization Lecture Note: Some slides and/or pictures in the following are adapted from: Computer Organization and Design, Patterson.
Computer Architecture Lecture 6.  Our implementation of the MIPS is simplified memory-reference instructions: lw, sw arithmetic-logical instructions:
Access the Instruction from Memory
EE204 Computer Architecture

Single Cycle CPU - Control
CS161 – Design and Architecture of Computer Systems
CS 230: Computer Organization and Assembly Language
Computer Architecture
Part IV Data Path and Control
CS/COE0447 Computer Organization & Assembly Language
Designing MIPS Processor (Single-Cycle) Presentation G
Instruction Execution in Simple Computer
CSCI206 - Computer Organization & Programming
CS/COE0447 Computer Organization & Assembly Language
Single-Cycle CPU DataPath.
CS/COE0447 Computer Organization & Assembly Language
CSCI206 - Computer Organization & Programming
Datapath & Control MIPS
Rocky K. C. Chang 6 November 2017
Composing the Elements
Composing the Elements
The Processor Lecture 3.2: Building a Datapath with Control
Part II Instruction-Set Architecture
Part IV Data Path and Control
COSC 2021: Computer Organization Instructor: Dr. Amir Asif
Part IV Data Path and Control
14.1 A Multicycle Implementation
COMP541 Datapaths I Montek Singh Mar 18, 2010.
CS/COE0447 Computer Organization & Assembly Language
The Processor: Datapath & Control.
COMS 361 Computer Organization
7/6/
MIPS Processor.
9/13/
Processor: Datapath and Control
CS/COE0447 Computer Organization & Assembly Language
Presentation transcript:

FAMU-FSU College of Engineering 1 Computer Architecture EEL 4713/5764, Spring 2006 Dr. Michael Frank Module #13 – Instruction Execution Steps (in a Single-Cycle MIPS Datapath)

July 2005Computer Architecture, Data Path and ControlSlide 2 Part IV Data Path and Control

July 2005Computer Architecture, Data Path and ControlSlide 3 IV Data Path and Control Topics in This Part Chapter 13 Instruction Execution Steps Chapter 14 Control Unit Synthesis Chapter 15 Pipelined Data Paths Chapter 16 Pipeline Performance Limits Design a simple computer (MicroMIPS) to learn about: Data path – part of the CPU where data signals flow Control unit – guides data signals through data path Pipelining – a way of achieving greater performance

July 2005Computer Architecture, Data Path and ControlSlide 4 13 Instruction Execution Steps A simple computer executes instructions one at a time Fetches an instruction from the loc pointed to by PC Interprets and executes the instruction, then repeats Topics in This Chapter 13.1 A Small Set of Instructions 13.2 The Instruction Execution Unit 13.3 A Single-Cycle Data Path 13.4 Branching and Jumping 13.5 Deriving the Control Signals 13.6 Performance of the Single-Cycle Design (Single-Cycle CPU Design)

July 2005Computer Architecture, Data Path and ControlSlide A Small Set of Instructions Fig MicroMIPS instruction formats and naming of the various fields. Seven R-format ALU instructions ( add, sub, slt, and, or, xor, nor ) Six I-format ALU instructions ( lui, addi, slti, andi, ori, xori ) Two I-format memory access instructions ( lw, sw ) Three I-format conditional branch instructions ( bltz, beq, bne ) Four unconditional jump instructions ( j, jr, jal, syscall ) We will refer to this diagram later

July 2005Computer Architecture, Data Path and ControlSlide 6 The MicroMIPS Instruction Set InstructionUsage Load upper immediate lui rt,imm Add add rd,rs,rt Subtract sub rd,rs,rt Set less than slt rd,rs,rt Add immediate addi rt,rs,imm Set less than immediate slti rd,rs,imm AND and rd,rs,rt OR or rd,rs,rt XOR xor rd,rs,rt NOR nor rd,rs,rt AND immediate andi rt,rs,imm OR immediate ori rt,rs,imm XOR immediate xori rt,rs,imm Load word lw rt,imm(rs) Store word sw rt,imm(rs) Jump j L Jump register jr rs Branch less than 0 bltz rs,L Branch equal beq rs,rt,L Branch not equal bne rs,rt,L Jump and link jal L System call syscall Copy Control transfer Logic Arithmetic Memory access op fn Table 13.1

July 2005Computer Architecture, Data Path and ControlSlide The Instruction Execution Unit Fig Abstract view of the instruction execution unit for MicroMIPS. For naming of instruction fields, see Fig

July 2005Computer Architecture, Data Path and ControlSlide A Single-Cycle Data Path Fig Key elements of the single-cycle MicroMIPS data path.

July 2005Computer Architecture, Data Path and ControlSlide 9 An ALU for MicroMIPS Fig A multifunction ALU with 8 control signals (2 for function class, 1 arithmetic, 3 shift, 2 logic) specifying the operation. lui imm

July 2005Computer Architecture, Data Path and ControlSlide Branching and Jumping Fig Next-address logic for MicroMIPS (see top part of Fig. 13.3). (PC) 31:2 + 1Default option (PC) 31: imm When instruction is branch and condition is met (PC) 31:28 | jta When instruction is j or jal ( rs ) 31:2 When the instruction is jr SysCallAddrStart address of an operating system routine Update options for PC

July 2005Computer Architecture, Data Path and ControlSlide Deriving the Control Signals Table 13.2 Control signals for the single-cycle MicroMIPS implementation. Control signal0123 RegWrite Don’t writeWrite RegDst 1, RegDst 0 rtrd$31 RegInSrc 1, RegInSrc 0 Data outALU outIncrPC ALUSrc (rt )imm AddSub AddSubtract LogicFn 1, LogicFn 0 ANDORXORNOR FnClass 1, FnClass 0 luiSet lessArithmeticLogic DataRead Don’t readRead DataWrite Don’t writeWrite BrType 1, BrType 0 No branchbeqbnebltz PCSrc 1, PCSrc 0 IncrPCjta(rs) SysCallAddr Reg file Data cache Next addr ALU

July 2005Computer Architecture, Data Path and ControlSlide 12 Control Signal Settings Table 13.3

July 2005Computer Architecture, Data Path and ControlSlide 13 Instruction Decoding Fig Instruction decoder for MicroMIPS built of two 6-to-64 decoders.

July 2005Computer Architecture, Data Path and ControlSlide 14 Control Signal Generation Auxiliary signals identifying instruction classes arithInst = addInst  subInst  sltInst  addiInst  sltiInst logicInst = andInst  orInst  xorInst  norInst  andiInst  oriInst  xoriInst immInst = luiInst  addiInst  sltiInst  andiInst  oriInst  xoriInst Example logic expressions for control signals RegWrite = luiInst  arithInst  logicInst  lwInst  jalInst ALUSrc = immInst  lwInst  swInst AddSub = subInst  sltInst  sltiInst DataRead = lwInst PCSrc 0 = jInst  jalInst  syscallInst

July 2005Computer Architecture, Data Path and ControlSlide 15 Putting It All Together Fig Fig Fig Control addInst subInst jInst sltInst.

July 2005Computer Architecture, Data Path and ControlSlide Performance of the Single-Cycle Design Fig The MicroMIPS data path unfolded (by depicting the register write step as a separate block) so as to better visualize the critical-path latencies. Instruction access2 ns Register read1 ns ALU operation2 ns Data cache access2 ns Register write1 ns Total8 ns Single-cycle clock = 125 MHz R-type44%6 ns Load24%8 ns Store12%7 ns Branch18%5 ns Jump 2%3 ns Weighted mean  6.36 ns