1 Control Unit Operation and Microprogramming Chap 16 & 17 of CO&A Dr. Farag.

Slides:



Advertisements
Similar presentations
Computer Architecture
Advertisements

MANINDER KAUR Maninder Kaur 1
Control Unit Implemntation
6-1 Chapter 6 - Datapath and Control Department of Information Technology, Radford University ITEC 352 Computer Organization Principles of Computer Architecture.
1 ITCS 3181 Logic and Computer Systems B. Wilkinson Slides9.ppt Modification date: March 30, 2015 Processor Design.
Topics covered: CPU Architecture CSE 243: Introduction to Computer Architecture and Hardware/Software Interface.
PART 5: (2/2) Processor Internals CHAPTER 15: CONTROL UNIT OPERATION 1.
MICROPROGRAM CONTROL.
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,
CS364 CH17 Micro-programmed Control
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.
Chapter 7. Basic Processing Unit
S. Barua – CPSC 440 CHAPTER 5 THE PROCESSOR: DATAPATH AND CONTROL Goals – Understand how the various.
Computer Organization and Architecture
Micro-operations Are the functional, or atomic, operations of a processor. A single micro-operation generally involves a transfer between registers, transfer.
Chapter 5 Basic Processing Unit
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.
Introduction to Computer Organization and Architecture Micro Program ภาษาเครื่อง ไมโครโปรแกรม.
Multiple-bus organization
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.
Chapter 16 Micro-programmed Control
MICROPROGRAMMED CONTROL CH 17 Team # 2 Members: Wilmer Saint-Hilaire Alberto Mollinedo Vinicius Schuina Luis Perez.
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.
Computer architecture
Computer Structure & Architecture 7b - CPU & Buses.
Dale Roberts Department of Computer and Information Science, School of Science, IUPUI CSCI N305 Information Representation: Machine Instructions.
Lecture 15 Microarchitecture Level: Level 1. Microarchitecture Level The level above digital logic level. Job: to implement the ISA level above it. The.
Chapter 3 Basic Processing Unit.
Basic Elements of Processor ALU Registers Internal data pahs External data paths Control Unit.
MICROPROGRAMMED CONTROL
GROUP 2 CHAPTER 16 CONTROL UNIT Group Members ๏ Evelio L. Hernandez ๏ Ashwin Soerdien ๏ Andrew Keiper ๏ Hermes Andino.
Simple ALU How to perform this C language integer operation in the computer C=A+B; ? The arithmetic/logic unit (ALU) of a processor performs integer arithmetic.
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”
Designing a CPU –Reading a programs instruction from memory –Decoding the instruction –Executing the instruction –Transferring Data to/From memory / IO.
Chapter 20 Computer Operations Computer Studies Today Chapter 20.
BASIC COMPUTER ARCHITECTURE HOW COMPUTER SYSTEMS WORK.
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.
Computer Organization and Architecture + Networks
Micro-programmed Control
Overview Instruction Codes Computer Registers Computer Instructions
Processor Organization and Architecture
Overview Control Memory Comparison of Implementations
Micro-programmed Control Unit
Computer Organization and Design
Control Unit Introduction Types Comparison Control Memory
Processor Organization and Architecture
William Stallings Computer Organization and Architecture 8th Edition
Computer Architecture
Chapter 14 Control Unit Operation
MANINDER KAUR Maninder Kaur 1
A Top-Level View Of Computer Function And Interconnection
William Stallings Computer Organization and Architecture
Information Representation: Machine Instructions
Processor Organization and Architecture
Presentation transcript:

1 Control Unit Operation and Microprogramming Chap 16 & 17 of CO&A Dr. Farag

2 Main components of the CPU Special Registers (Y and Z) The two cycles (fetch and execute phases) The basic functions of CU –Sequencing: stepping through microinstructions –Execution: executing microinstructions CU block diagram –Inputs ( IR, flags, clock, & control signals from system bus) –Outputs (control signals to system and internal buses) Internal processor organization (single bus architecture) Introduction

3 Four basic operations can be used to construct more complex ones –Register transfer (LOAD MQ) –Performing an arithmetic or logic operation –Fetching a word from memory (Load M(100)) –Storing a word into memory (Store M(100)) Complete example: Write the control steps for executing IAS assembly instruction: ADD M(3000) Basic Operations

4 Two Main techniques to implement CU: –Hardwired implementation –Microprogrammed implementation In hardwired implementations the CU is considered as a combinational logic circuit the produces its outputs (control signals) based on its inputs (IR, flags, step counter, etc.) Ex: To derive a logical expression for Zin: Zin = T1. (fetch phase) + T6. Add + ……… Control Unit Implementation

5 All control steps for each instruction should be specified then the logical expression for each control signal is derived. This process becomes very complex with the increase in processor complexity. An effective alternative is microprogrammed implementation. The idea of microprogramming is to consider each instruction as a sequence of much simpler steps called microinstructions. Control Unit Implementation (Cont.)

6 Each microinstruction basically activates a number of control signals. Microinstructions can be stored into memory locations as control words. Each control word contains a number of bits equals to the number of CPU & bus control signals in addition to an address field and a jump condition field. For those active control signals in a microinstruction corresponding bits will be set otherwise all other bits store zero. Control Unit Implementation (Cont.)

7 The previously described technique is called horizontal microinstruction. To execute such instructions: –Issue control signals for active bits –If condition is false, execute the following instruction –Otherwise, execute the instruction whose address is stored in the address field Another for of structuring the microinstruction is called vertical organization where the system bus and the internal CPU control signals are coded. Think of the pros and cons Control Unit Implementation (Cont.)

8 Now the components of a microprogrammed CU are : –Decoder: to decode the IR –Sequencing logic: to determine the address Of the next microinstruction to be executed –Control address register: to hold the above address –Control memory: to store control words –Control buffer register: to store the currently read microinstruction –Decoder: to decode microinstructions if need Control Unit Implementation (Cont.)

9 Simplicity –Cheaper –Less error-prone Flexibility: The content of the control memory can be modified or even replaced to update the instruction set architecture of the computer. This is impossible in can of Hardwires control. The principle disadvantage of microprogramming is performance. Despite this, it is the dominant technique to implement CUs in CISC processors. RISC processors usually use Hardwired control. Advantages and Disadvantages

10 Realization of CUs. Emulation. Operating system support: Implement primitives that replace important portions of OS S/W. HLL support: various functions and data type can be implemented directly in firmware. Monitoring, detecting, isolating, and repairing system errors (microdiagnostics). User tailoring: Enable the use to write to the control memory by implementing it using RAM. Microprogramming Applications