Micro-programmed Control Unit

Slides:



Advertisements
Similar presentations
Control Unit Implemntation
Advertisements

Topics covered: CPU Architecture CSE 243: Introduction to Computer Architecture and Hardware/Software Interface.
1 ITCS 3181 Logic and Computer Systems 2014 B. Wilkinson Slides8.ppt Modification date: Nov 3, 2014 Random Logic Approach The approach described so far.
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
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
Micro-operations Are the functional, or atomic, operations of a processor. A single micro-operation generally involves a transfer between registers, transfer.
Lecture 16 Today’s topics: –MARIE Instruction Decoding and Control –Hardwired control –Micro-programmed control 1.
Microprogrammed Control Chapter 17. Team Members Guillermo Cordon Ernesto Vivanco Brian Hadley Angel Carlos Castro.
Introduction to Computer Organization and Architecture Micro Program ภาษาเครื่อง ไมโครโปรแกรม.
Multiple-bus organization
Florida International University Chapter 17 Micro-programmed Control Molina, Francisco Pineiro, Michael Romero, Rubymir.
1 Microprogrammed Control Computer Organization Prof. H. Yoon MICROPROGRAMMED CONTROL Control Memory Sequencing Microinstructions Microprogram Example.
CONTROL UNIT OPERATION MICROPROGRAMMED CONTROL. 2.
Dr Mohamed Menacer College of Computer Science and Engineering Taibah University CE-321: Computer.
Microprogrammed Control Unit Control Memory Sequencing Microinstructions Microprogram Example Design of Control Unit Microinstruction Format.
Chapter 16 Micro-programmed Control
MICROPROGRAMMED CONTROL CH 17 Team # 2 Members: Wilmer Saint-Hilaire Alberto Mollinedo Vinicius Schuina Luis Perez.
1 Control Unit Operation and Microprogramming Chap 16 & 17 of CO&A Dr. Farag.
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
Lecture 15 Microarchitecture Level: Level 1. Microarchitecture Level The level above digital logic level. Job: to implement the ISA level above it. The.
1  1998 Morgan Kaufmann Publishers Value of control signals is dependent upon: –what instruction is being executed –which step is being performed Use.
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.
HELLOW…… EVERYONE GOOD MORNING AND WELCOME YOU ALL.
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.
Computer Organization and Architecture + Networks
Control Unit Lecture 6.
Micro-programmed Control
Lecture on Microcomputer
Processor Organization and Architecture
Overview Control Memory Comparison of Implementations
MICROPROGRAMMED CONTROL
INDEX UNIT-III PPT SLIDES
Computer Science 210 Computer Organization
Processor Organization and Architecture
The Processor and Machine Language
Basic Processing Unit Unit- 7 Engineered for Tomorrow CSE, MVJCE.
Computer Organization and ASSEMBLY LANGUAGE
Computer Organization and Design
Morgan Kaufmann Publishers Computer Organization and Assembly Language
Control Unit Introduction Types Comparison Control Memory
MARIE: An Introduction to a Simple Computer
The Processor Data Path & Control Chapter 5 Part 3 - Microprogrammed Control Unit N. Guydosh 3/1/04+
Systems Architecture I (CS ) Lecture 2: A Simplified Computer
Processor Organization and Architecture
MICROPROGRAMMED CONTROL
William Stallings Computer Organization and Architecture 8th Edition
Computer Architecture
ECE 352 Digital System Fundamentals
MICROPROGRAMMED CONTROL
MICROPROGRAMMED CONTROL
William Stallings Computer Organization and Architecture
Chapter 7 Microprogrammed Control
Processor Organization and Architecture
Presentation transcript:

Micro-programmed Control Unit

Micro-programmed Control Microprogramming is a method of control unit design in which the control signal selection and the sequencing information is stored in a ROM or RAM called control memory. A sequence of microinstructions designed to control a specific instruction is called a microprogram.

Micro-programmed Control For each micro-operation, control unit have to generate a set of control signals For any micro-operation any control line may be on/off which can be represented by a binary pattern. Thus a control word is constructed for each micro-operation.

Microprogrammed Control The control information is stored in a control memory, and the control memory is programmed to initiate the required sequence of microoperations Adv: Any required change can be done by updating the microprogram in control memory Disadv: Slow operation

Microprogrammed Control Microinstruction The microinstruction specifies one or more microoperations Microprogram A sequence of microinstruction Dynamic microprogramming : Control Memory = RAM RAM can be used for writing (to change a writable control memory) Microprogram is loaded initially from an auxiliary memory such as a magnetic disk Static microprogramming : Control Memory = ROM Control words in ROM are made permanent during the hardware production.

Microprogramming Approach Generally micro-operations consist of two important fields : Control Field : indicates which control signals are to be activated Next Address Field : specify address of next microinstruction Major Design Effort : Minimize Length of microinstruction.

Microprogramming Approach

Microinstruction Formats There are two types of formats: Horizontal Microinstruction Vertical Microinstruction

Horizontal Microinstruction For sequencing control word, an address field is added to it to indicate the next control word to be executed and a few bits are added to specify the condition for next control word execution

Horizontal Microinstruction Format Internal CPU control line: one bit for each internal processor control line. System Bus control line: one bit for each system bus control line.

Horizontal Microinstruction Format Condition field: indicates condition for taking branch Address field: address of the next micro-instruction to be executed, if the branch is taken.

Interpretation of Micro-instruction 1. To execute this microinstruction, turn on all the control lines indicated by a 1 bit; leave off all control lines indicated by a 0 bit. These control signals will execute one or more micro-operations. 2. If the condition (indicated by the condition bits) is false, execute the next microinstruction in sequence. 3. If the condition is true, execute the next microinstruction pointed by the address field.

Disadv of Horizontal Microinstruction Format Length of the microinstructions is high The bits of the micro-program word cannot be used efficiently. i.e. Not all microinstructions allocate useful meanings to all the available fields.

Vertical Microinstruction Format It uses few bits in the control word It has the control word with only two fields: First field is a code Second field indicates the meaning of the code It execute simple operations, such as: load, store, add, branch similar to machine-language instructions and hence it is also called software microprogramming.

Vertical Microinstruction Format

Disadv of Vertical Microinstruction Format Speed of execution reduces proportionally with the number of distinct meanings of the code field

Control Memory Organization Microinstructions in each routine are to be executed sequentially Each routing ends with JUMP instruction indicating where to go next There is a special execute cycle routine to signify which routine is to be executed depending on opcode

Microprogrammed Control Unit

Microprogrammed Control Unit It executes a set of microinstructions are stored in control memory Control Address Register (CAR) Contains address of next microinstruction to be read Similar to MAR Control Buffer Register (CBR) Contains control word of the currently executing microinstruction Sequencing Logic Unit It loads CAR and issues a READ command

Functioning of Micro-programmed CU To execute an instruction, the sequencing logic unit issues a READ command to the control memory. The content of the address specified in CAR is read into CBR CBR generates control signals and next address information for the sequencing logic unit. Sequencing logic unit loads a new address into CAR based on the next-address information from CBR and the ALU flags.

Calculating Next Address Depending on the value of ALU flags and CBR, one of three decisions is made: Get the next instruction: CAR  CAR +1 Jump to a new routine based on a jump microinstruction: Load the address field of CBR into CAR. Jump to a machine instruction routine: Load the CAR based on the opcode in the IR.

Two Decoders Upper Decoder: translates the opcode of the IR into CAR Lower decoder : used only for vertical microinstructions In a vertical microinstruction, a code is used for each action to be performed and the decoder translates this code into individual control signals