Micro-operations Are the functional, or atomic, operations of a processor. A single micro-operation generally involves a transfer between registers, transfer.

Slides:



Advertisements
Similar presentations
Control Unit Implemntation
Advertisements

Control path Recall that the control path is the physical entity in a processor which: fetches instructions, fetches operands, decodes instructions, schedules.
PART 5: (2/2) Processor Internals CHAPTER 15: CONTROL UNIT OPERATION 1.
ARITHMETIC LOGIC SHIFT UNIT
CHAPTER 16 – CONTROL UNIT OPERATION
Computer Organization and Architecture
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,
Topics covered: CPU Architecture CSE 243: Introduction to Computer Architecture and Hardware/Software Interface.
Chapter 16 Control Unit Implemntation. A Basic Computer Model.
Chapter 15 IA 64 Architecture Review Predication Predication Registers Speculation Control Data Software Pipelining Prolog, Kernel, & Epilog phases Automatic.
Computer Organization and Architecture
Group 1 Michael Bouizza Rolando Abreu Carlos De Cossio Ricardo Urena Michael Hernandez Robert Romano Sun Li Yang.
TEAM 1: Miguel Harmant Rodney Rodriguez Elias Crespo Javier Parra Alfredo Alonso Marc-Wayne Anglin.
Lecture 16 Today’s topics: –MARIE Instruction Decoding and Control –Hardwired control –Micro-programmed control 1.
Multiple-bus organization
Chapter 4 MARIE: An Introduction to a Simple Computer.
CPU Design. Introduction – The CPU must perform three main tasks: Communication with memory – Fetching Instructions – Fetching and storing data Interpretation.
CONTROL UNIT OPERATION MICROPROGRAMMED CONTROL. 2.
Lecture 14 Today’s topics MARIE Architecture Registers Buses
MICROPROGRAMMED CONTROL CH 17 Team # 2 Members: Wilmer Saint-Hilaire Alberto Mollinedo Vinicius Schuina Luis Perez.
1 Purpose of This Chapter In this chapter we introduce a basic computer and show how its operation can be specified with register transfer statements.
Microprogrammed Control Chapter11:. Two methods for generating the control signals are: 1)Hardwired control o Sequential logic circuit that generates.
PART 6: (1/2) Enhancing CPU Performance CHAPTER 16: MICROPROGRAMMED CONTROL 1.
CSE 241 Computer Organization Lecture # 8 Ch. 7 Control Unit Dr. Tamer Samy Gaafar Dept. of Computer & Systems Engineering.
Lecture 15 Microarchitecture Level: Level 1. Microarchitecture Level The level above digital logic level. Job: to implement the ISA level above it. The.
Processor Structure and Function Chapter8:. CPU Structure  CPU must:  Fetch instructions –Read instruction from memory  Interpret instructions –Instruction.
Overview von Neumann Architecture Computer component Computer function
Register Transfer Languages (RTL)
Basic Elements of Processor ALU Registers Internal data pahs External data paths Control Unit.
MICROPROGRAMMED CONTROL
Question What technology differentiates the different stages a computer had gone through from generation 1 to present?
GROUP 2 CHAPTER 16 CONTROL UNIT Group Members ๏ Evelio L. Hernandez ๏ Ashwin Soerdien ๏ Andrew Keiper ๏ Hermes Andino.
PART 4: (1/2) Central Processing Unit (CPU) Basics CHAPTER 12: P ROCESSOR S TRUCTURE AND F UNCTION.
8085 processor.
Control Unit Operations Chapter10:. What is Control Unit (CU)?(1)  Part of a CPU or other device that directs its operation.  Tells the rest of the.
Chapter 10 Control Unit Operation “Controls the operation of the processor”
Processor Organization
Hardwired Control Department of Computer Engineering, M.S.P.V.L Polytechnic College, Pavoorchatram. A Presentation On.
Processor Organization and Architecture Module III.
Designing a CPU –Reading a programs instruction from memory –Decoding the instruction –Executing the instruction –Transferring Data to/From memory / IO.
Types of Micro-operation  Transfer data between registers  Transfer data from register to external  Transfer data from external to register  Perform.
Functions of Processor Operation Addressing modes Registers i/o module interface Memory module interface Interrupts.
Basic Concepts Microinstructions The control unit seems a reasonably simple device. Nevertheless, to implement a control unit as an interconnection of.
Riyadh Philanthropic Society For Science Prince Sultan College For Woman Dept. of Computer & Information Sciences CS 251 Introduction to Computer Organization.
Basic Computer Organization and Design
Computer Organization and Architecture + Networks
Control Unit Operation
Chapter 9 a Instruction Level Parallelism and Superscalar Processors
Micro-Operations A computer executes a program Fetch/execute cycle
William Stallings Computer Organization and Architecture
William Stallings Computer Organization and Architecture 7th Edition
Processor Organization and Architecture
Chapter 15 Control Unit Operation
Functional Units.
Control Unit Introduction Types Comparison Control Memory
William Stallings Computer Organization and Architecture 7th Edition
Chapter 14 Control Unit Operation
William Stallings Computer Organization and Architecture 8th Edition
Computer Architecture
Chapter 14 Control Unit Operation
William Stallings Computer Organization and Architecture 10th Edition
Information Representation: Machine Instructions
Computer Architecture
Presentation transcript:

Micro-operations Are the functional, or atomic, operations of a processor. A single micro-operation generally involves a transfer between registers, transfer between registers and external bus, or a simple ALU operation.

Micro-operations and the Clock Each clock pulse defines a time unit, which are of equal duration. Micro-operations are performed within this time unit. If multiple micro-operations do not interfere with one another then grouping of micro-operations can be performed within one time unit. Grouping can be performed as long as; Proper sequence of events are followed PC  MAR must be done first in order for MEMORY  MDR Conflicts are avoided MEMORY  MDR can not be in the same time unit as MDR  IR

The Fetch Cycle Consists of three time units and four micro-operations. Each micro-operation involves the movement of data into or out of a register.

The Indirect Cycle Occurs if the instruction specifies an indirect address. Consists of three time unit and three micro-operations. Data is transferred to the MAR from the IR, which is used to fetch the address of the operand, the IR is then updated from MDR so it contains a direct address rather than indirect.

The Interrupt Cycle Occurs if any enabled interrupts have occurred at the completion of the execute cycle. The contents of the PC are transferred to the MDR, so that they can be saved for return from the interrupt. MAR is loaded with the address at which the contents of the PC are to be saved PC is loaded with the address at the start of the interrupt routine. Final step is to store the MDR into MEMORY.

The Execute Cycle Execute cycle is not as predictable as other cycles (fetch, indirect, or interrupt). Number of time units and micro-operations varies for every execution cycle. Example; ADD R1, X The following execute cycle adds the contents of the location X to register R1.

Instruction Cycle Each phase decomposed into sequence of elementary micro-operations (fetch, indirect, and interrupt cycles) Execute cycle One sequence of micro-operations for each opcode Need to tie sequences of micro-operations together Assume new 2-bit register Instruction cycle code (ICC) designates which part of cycle the processor is in: 00: Fetch 10: Execute 01: Indirect 11: Interrupt

Flowchart for Instruction Cycle

Functional Requirements Define basic elements of processor Describe micro-operations processor performs Determine functions control unit must perform Basic Elements of the Processor ALU External data paths Control Unit Registers Internal data paths

Types of Micro-operation Transfer data between registers Transfer data from register to external Transfer data from external to register Perform arithmetic or logical operations Functions of Control Unit Sequencing Causes the processor to step through a series of micro-operations Execution Causes the performance of each micro-operation This is done using Control Signals

Model of Control Unit

Control Signals - Input Clock One micro-instruction (or set of simultaneous micro instructions) per clock pulse. Instruction register Op-code of the current instruction Determines which micro-instructions are performed Flags Determines the status of the processor Results of previous ALU operations Control Signals from control bus Interrupts Acknowledgements

Control Signals - Output Control Signals within the processor Cause data movement Activate specific ALU functions Control Signals to control bus To memory To I/O modules

Data Paths and Control Signals

PROCESSOR ORGANIZATION Organization is how features are implemented Control signals, interfaces, memory technology. e.g. Is there a hardware multiply unit or is it done by repeated addition

Internal Organization Usually a single internal bus Using single bus simplifies & saves space Gates control movement of data onto and off the bus Control signals control data transfer to and from external systems bus Temporary registers needed for proper operation of ALU

The Pentium III architecture

The Motorola 68HC11 Evaluation Board

Fetch Sequence (symbolic) t1: MAR <- (IRaddress) address field of IR t2: MBR <- (memory) t3: Y <- (MBR) t4: Z <- (AC) + (Y) t5: AC <- (Z)

CPU Clock Clock Repetitive sequence of pulses Useful for measuring duration of micro-ops Must be long enough to allow signal propagation Different control signals at different times within instruction cycle Need a counter with different control signals for t1, t2 etc.

Intel 8085 OUT Instruction Timing Diagram

Hardwired Implementation Control unit inputs Flags and control bus Each bit means something Instruction register Op-code causes different control signals for each different instruction Decoder takes encoded input and produces single output n binary inputs and 2n outputs

Control Unit with Decoded Inputs

Hardwired Logic Logic Gates Hardwired Internally Functions predefined Truth Tables Boolean Logic used to define timing Connect Instructions Unique logic for each set of op-codes

Problems With Hard Wired Designs Complex sequencing & micro-operation logic Difficult to design and test Inflexible design Difficult to add new instructions

URL Reference http://en.wikipedia.org/wiki/Micro-operation http://www.vocw.edu.vn/content/m10780/latest/ http://en.wikipedia.org/wiki/Control_unit

Review Questions A single micro-operation generally involves? A transfer between registers, transfer between a register and an external bus, or a simple ALU operation. What is the main purpose of grouping micro-operations together? To save time.

What are the basic tasks of a control unit? Sequencing & Execution What are the inputs of a control unit? Clock, IR, Flags, and control signals from control bus. What is the control signal? What is a hardwired Implementation? Each intruction cycle is divided from 1 to 5 machince cycle; each machine cycle into turn is divided any where from 3 to 5 states. The y register is used as temporary storage for the ALU and the X register is used a tempory output storage.