Multiple-Cycle Hardwired Control Digital Logic Design Instructor: Kasım Sinan YILDIRIM.

Slides:



Advertisements
Similar presentations
Chapter 1. Basic Structure of Computers
Advertisements

Adding the Jump Instruction
9-6 The Control Word Fig The selection variables for the datapath control the microoperations executed within datapath for any given clock pulse.
ARITHMETIC LOGIC SHIFT UNIT
Instructor: Yuzhuang Hu The Shifter 3 clock cycles will be needed if using a bidirectional shift register with parallel load.  A clock.
Chapter 16 Control Unit Operation No HW problems on this chapter. It is important to understand this material on the architecture of computer control units,
Midterm Wednesday Chapter 1-3: Number /character representation and conversion Number arithmetic Combinational logic elements and design (DeMorgan’s Law)
1 COMP541 Sequencing – III (Sequencing a Computer) Montek Singh April 9, 2007.
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.
Chapter 16 Control Unit Implemntation. A Basic Computer Model.
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.
Chapter 15 IA 64 Architecture Review Predication Predication Registers Speculation Control Data Software Pipelining Prolog, Kernel, & Epilog phases Automatic.
Henry Hexmoor1 Chapter 10- Control units We introduced the basic structure of a control unit, and translated assembly instructions into a binary representation.
CPEN Digital System Design Chapter 9 – Computer Design
Charles Kime & Thomas Kaminski © 2004 Pearson Education, Inc. Terms of Use (Hyperlinks are active in View Show mode) Terms of Use Chapter 10 – Computer.
Chapter 6 Memory and Programmable Logic Devices
Dr. Iyad F. Jafar Basic MIPS Architecture: Multi-Cycle Datapath and Control.
Princess Sumaya Univ. Computer Engineering Dept. Chapter 4: IT Students.
The von Neumann Model – Chapter 4 COMP 2620 Dr. James Money COMP
Micro-operations Are the functional, or atomic, operations of a processor. A single micro-operation generally involves a transfer between registers, transfer.
Computer Science 210 Computer Organization The von Neumann Architecture.
1 Computer Organization Today: First Hour: Computer Organization –Section 11.3 of Katz’s Textbook –In-class Activity #1 Second Hour: Test Review.
Chap 8. Sequencing and Control. 8.1 Introduction Binary information in a digital computer –data manipulated in a datapath with ALUs, registers, multiplexers,
Charles Kime & Thomas Kaminski © 2004 Pearson Education, Inc. Terms of Use (Hyperlinks are active in View Show mode) Terms of Use ECE/CS 352: Digital Systems.
Computer Design Basics
Charles Kime & Thomas Kaminski © 2008 Pearson Education, Inc. (Hyperlinks are active in View Show mode) Chapter 9 – Computer Design Basics Part 2 – A Simple.
EKT221 ELECTRONICS DIGITAL II CHAPTER 4: Computer Design Basics
Chap 7. Register Transfers and Datapaths. 7.1 Datapaths and Operations Two types of modules of digital systems –Datapath perform data-processing operations.
Chapter 4 Computer Design Basics. Chapter Overview Part 1 – Datapaths  Introduction  Datapath Example  Arithmetic Logic Unit (ALU)  Shifter  Datapath.
A Simple Computer Architecture Digital Logic Design Instructor: Kasım Sinan YILDIRIM.
Instructor: Yuzhuang Hu Midterm The midterm is schedule on June 17 th, 17:30-19:30 pm. It covers the following:  VHDL Programming. 
Chap. 8 Sequencing and Control A Simple Computer Architecture A Simple Computer Architecture Single-Cycle Hardwired Control Single-Cycle Hardwired Control.
CoE3DJ4 Digital Systems Design
EKT 221 : Chapter 4 Computer Design Basics
Lecture 15 Microarchitecture Level: Level 1. Microarchitecture Level The level above digital logic level. Job: to implement the ISA level above it. The.
Von Neumann Model Computer Organization I 1 September 2009 © McQuain, Feng & Ribbens The Stored Program Computer 1945: John von Neumann –
Ch. 10 Central Processing Unit Designs - CISC. Two CPU designs CISC –Non-pipelined datapath with a micro- programmed control unit RISC –Pipelined datapath.
Basic Elements of Processor ALU Registers Internal data pahs External data paths Control Unit.
Datapath and Control AddressInstruction Memory Write Data Reg Addr Register File ALU Data Memory Address Write Data Read Data PC Read Data Read Data.
Hardwired Control Department of Computer Engineering, M.S.P.V.L Polytechnic College, Pavoorchatram. A Presentation On.
Elements of Datapath for the fetch and increment The first element we need: a memory unit to store the instructions of a program and supply instructions.
Lecture 15: Pipelined Datapath Soon Tee Teoh CS 147.
COM181 Computer Hardware Lecture 6: The MIPs CPU.
EKT 221 : Digital 2 Computer Design Basics Date : Lecture : 2 hrs.
Chapter 4 From: Dr. Iyad F. Jafar Basic MIPS Architecture: Multi-Cycle Datapath and Control.
Types of Micro-operation  Transfer data between registers  Transfer data from register to external  Transfer data from external to register  Perform.
Computer Organization and Architecture + Networks
Computer Science 210 Computer Organization
Chap 7. Register Transfers and Datapaths
Morgan Kaufmann Publishers The Processor
Morgan Kaufmann Publishers The Processor
CS/COE0447 Computer Organization & Assembly Language
Design of the Control Unit for Single-Cycle Instruction Execution
Computer Science 210 Computer Organization
Design of the Control Unit for One-cycle Instruction Execution
A Multiple Clock Cycle Instruction Implementation
Processor Organization and Architecture
The Processor Lecture 3.2: Building a Datapath with Control
Unit 12 CPU Design & Programming
CSC 220: Computer Organization
Fundamental Concepts Processor fetches one instruction at a time and perform the operation specified. Instructions are fetched from successive memory locations.
COSC 2021: Computer Organization Instructor: Dr. Amir Asif
A Discussion on Assemblers
Control Unit (single cycle implementation)
8-6 The Control Word The selection variables for the datapath control the microoperations executed within datapath for any given clock pulse Fig
Control Unit for Multiple Cycle Implementation
Control Unit for Multiple Cycle Implementation
Processor: Datapath and Control
Presentation transcript:

Multiple-Cycle Hardwired Control Digital Logic Design Instructor: Kasım Sinan YILDIRIM

Single-Cycle Computer

Single-Cycle Computer Issues Shortcoming of Single Cycle Design – Complexity of instructions executable in a single cycle is limited – Accessing both an instruction and data from a simple single memory impossible – A long worst case delay path limits clock frequency and the rate of performing instructions Handling of Shortcomings – The first two shortcomings can be handled by the multiple-cycle computer discussed here – The third shortcoming is dealt with by using a technique called pipelining

Datapath Modifications Use a single memory for both instructions and data – Requires new MUX M with control signal MM to select the instruction address from the PC or the data address – Requires path from Memory Data Out to the instruction path in the control unit

Inst. & Data Address Mux New Instruction Path Inst. & Data Memory

Datapath Modifications (continued) To hold operands between cycles, need additional registers – Add 8 temporary storage registers to the Register File Register File becomes 16 x 16 Addresses to Register File increase from 3 to 4 bits – Register File addresses come from: The instruction for the Storage Resource registers (0 to 7) The control word for the Temporary Storage registers (8 to 15) The control word specifies the source for Register File addresses – Add Register Address Logic to the Register File to select the register address sources – Three new control fields for register address source selection and temporary storage addressing: DX, AX, BX

Register Address Logic 16 x 16 Register File

Control Unit Modifications Must hold instruction over the multiple cycles to draw on instruction information throughout instruction execution – Requires an Instruction Register (IR) to hold the instruction Load control signal IL – Requires the addition of a "hold" operation to the PC since it only counts up to obtain a new instruction New encoding for the PC operations uses 2 bits

Instruction Register IR Add "hold" operation

Sequential Control Design In order to control microoperations over multiple cycles, a Sequential Control replaces the Instruction Decoder – Input: Opcode, Status Bits – Output: Control Word (Modified Datapath Control part) – Control State – Next State: Control Word (New Sequencing Control part) Register to store the Control State Combinational Logic to generate the Control Word (both sequencing and datapath control parts)

Control State Register Combinational Control Logic New/ Modified Control Word

Control Word Datapath part: fields DA, AA, and BA replaced by DX, AX, and BX, respectively, and field MM added – If the MSB of a field is 0, e.g., AX = 0XXX, then AA is 0 concatenated with 3 bits obtained from the SA field in the IR – If the MSB of a field is 1, e. g. AX = 1011, then AA = 1011 Sequencing part: – IL controls the loading of the IR – PS controls the operations of the PC – NS gives the next state of the Control State register NS is 4 bits, the length of the Control State register - 16 states are viewed as adequate for this design NSPS I L M B M D R W M M M W DX AXBXFS Datapath Sequencing

Encoding for Datapath Control

Encoding for Sequencing Control

State Machine Diagrams for Sequential Control An instruction requires two steps: – Instruction fetch – obtaining an instruction from memory – Instruction execution – the execution of a sequence of microoperations to perform instruction processing – Due to the use of the IR, these two steps require a minimum of two clock cycles

Two-Cycle Instructions

INF: IR <- M[PC] EX0: R0 <- R1 + R2

R[DR] <- M[M[R[SA]]] Load Register Indirect (LRI)

Right Shift and Left Shift Multiple (SLM and SRM)