MANINDER KAUR Maninder Kaur 1

Slides:



Advertisements
Similar presentations
Introduction to Microprocessors
Advertisements

Control Unit Implemntation
Chapter 1. Basic Structure of Computers
6-1 Chapter 6 - Datapath and Control Department of Information Technology, Radford University ITEC 352 Computer Organization Principles of Computer Architecture.
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.
Processor System 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,
CS364 CH17 Micro-programmed Control
Chapter 7. Register Transfer and Computer Operations
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.
Micro-operations Are the functional, or atomic, operations of a processor. A single micro-operation generally involves a transfer between registers, transfer.
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 ภาษาเครื่อง ไมโครโปรแกรม.
CONTROL UNIT OPERATION MICROPROGRAMMED CONTROL. 2.
Computer Organization - 1. INPUT PROCESS OUTPUT List different input devices Compare the use of voice recognition as opposed to the entry of data via.
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.
Lecture 15 Microarchitecture Level: Level 1. Microarchitecture Level The level above digital logic level. Job: to implement the ISA level above it. The.
Computer operation is of how the different parts of a computer system work together to perform a task.
Basic Elements of Processor ALU Registers Internal data pahs External data paths Control Unit.
GROUP 2 CHAPTER 16 CONTROL UNIT Group Members ๏ Evelio L. Hernandez ๏ Ashwin Soerdien ๏ Andrew Keiper ๏ Hermes Andino.
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”
Hardwired Control Department of Computer Engineering, M.S.P.V.L Polytechnic College, Pavoorchatram. A Presentation On.
Designing a CPU –Reading a programs instruction from memory –Decoding the instruction –Executing the instruction –Transferring Data to/From memory / IO.
1 Basic Processor Architecture. 2 Building Blocks of Processor Systems CPU.
1 3 Computing System Fundamentals 3.2 Computer Architecture.
Chapter 20 Computer Operations Computer Studies Today Chapter 20.
BASIC COMPUTER ARCHITECTURE HOW COMPUTER SYSTEMS WORK.
1 Chapter 1 Basic Structures Of Computers. Computer : Introduction A computer is an electronic machine,devised for performing calculations and controlling.
Chapter 5 Computer Organization TIT 304/TCS 303. Purpose of This Chapter In this chapter we introduce a basic computer and show how its operation can.
Types of Micro-operation  Transfer data between registers  Transfer data from register to external  Transfer data from external to register  Perform.
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
COMPUTER ARCHITECTURE
Micro-Operations A computer executes a program Fetch/execute cycle
William Stallings Computer Organization and Architecture
William Stallings Computer Organization and Architecture 7th Edition
Overview Instruction Codes Computer Registers Computer Instructions
Processor Organization and Architecture
Overview Control Memory Comparison of Implementations
Chapter 15 Control Unit Operation
Computer Organization and Design
Control Unit Introduction Types Comparison Control Memory
Processor Organization and Architecture
William Stallings Computer Organization and Architecture 7th Edition
Chapter 14 Control Unit Operation
William Stallings Computer Organization and Architecture 8th Edition
Computer Architecture and Organization: L07: Control Sequence
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
Processor Organization and Architecture
Presentation transcript:

MANINDER KAUR Maninder Kaur 1

CONTROL UNIT CPU is partitioned into Arithmetic Logic Unit (ALU) and Control Unit (CU). The function of control unit is to generate relevant timing and control signals to all operations in the computer. It controls the flow of data between the processor and memory and peripherals 2 Maninder Kaur

FUNCTIONS OF CONTROL UNIT The control unit directs the entire computer system to carry out stored program instructions. The control unit must communicate with both the arithmetic logic unit (ALU) and main memory. The control unit instructs the arithmetic logic unit that which logical or arithmetic operation is to be performed. The control unit co-ordinates the activities of the other two units as well as all peripherals and auxiliary storage devices linked to the computer. 3 Maninder Kaur

DESIGN OF CONTROL UNIT Control unit generates control signals using one of the two organizations: Hardwired Control Unit Micro-programmed Control Unit 4 Maninder Kaur

HARDWIRED CONTROL UNIT It is implemented as logic circuits (gates, flip-flops, decoders etc.) in the hardware. This organization is very complicated if we have a large control unit. In this organization, if the design has to be modified or changed, requires changes in the wiring among the various components. Thus the modification of all the combinational circuits may be very difficult. 5 Maninder Kaur

HARDWIRED CONTROL UNIT ADVANTAGES Hardwired Control Unit is fast because control signals are generated by combinational circuits. The delay in generation of control signals depends upon the number of gates. 6 Maninder Kaur

HARDWIRED CONTROL UNIT DISADVANTAGES More is the control signals required by CPU; more complex will be the design of control unit. Modifications in control signal are very difficult. That means it requires rearranging of wires in the hardware circuit. It is difficult to correct mistake in original design or adding new feature in existing design of control unit. 7 Maninder Kaur

ARCHITECTURE OF HARDWIRED CONTROL UNIT 8 AddressOpcodeI Maninder Kaur

HARDWIRED CONTROL UNIT Control unit consist of a: Instruction Register Number of Control Logic Gates, Two Decoders 4-bit Sequence Counter 9 Maninder Kaur

HARDWIRED CONTROL UNIT An instruction read from memory is placed in the instruction register (IR). The instruction register is divided into three parts: the I bit, operation code, and address part. First 12-bits (0-11) to specify an address, next 3-bits specify the operation code (opcode) field of the instruction and last left most bit specify the addressing mode I. I = 0 for direct address I = 1 for indirect address 10 Maninder Kaur

HARDWIRED CONTROL UNIT First 12-bits (0-11) are applied to the control logic gates. The operation code bits (12 – 14) are decoded with a 3 x 8 decoder. The eight outputs ( D 0 through D 7 ) from a decoder goes to the control logic gates to perform specific operation. Last bit 15 is transferred to a I flip-flop designated by symbol I Maninder Kaur

HARDWIRED CONTROL UNIT The 4-bit sequence counter SC can count in binary from 0 through 15. The counter output is decoded into 16 timing pulses T 0 through T 15. The sequence counter can be incremented by INR input or clear by CLR input synchronously Maninder Kaur

HARDWIRED CONTROL UNIT For example: Consider the case where SC is incremented to provide timing signals T 0, T 1, T 2, T 3, and T 4 in sequence. At time T 4, SC is cleared to 0 if decoder output D 3 is active. This is expressed symbolically by the statement: D 3 T 4 : SC 0 The timing diagram shows the time relationship of the control signals Maninder Kaur

14 TIMING DIAGRAM Maninder Kaur

MICRO-PROGRAMMED CONTROL UNIT A micro-programmed control unit is implemented using programming approach. A sequence of micro- operations are carried out by executing a program consisting of micro-instructions. Micro-program, consisting of micro-instructions is stored in the control memory of the control unit. Execution of a micro-instruction is responsible for generation of a set of control signals Maninder Kaur

MICRO-PROGRAMMED CONTROL UNIT A micro-instruction consists of: One or more micro-operations to be executed. Address of next microinstruction to be executed. Micro-Operations: The operations performed on the data stored inside the registers are called micro-operations. Micro-Programs: Microprogramming is the concept for generating control signals using programs. These programs are called micro-programs Maninder Kaur

MICRO-PROGRAMMED CONTROL UNIT Micro-Instructions: The instructions that make micro-program are called micro-instructions. Micro-Code: Micro-program is a group of micro- instructions. The micro-program can also be termed as micro-code. Control Memory: Micro-programs are stored in the read only memory (ROM). That memory is called control memory Maninder Kaur

MICRO-PROGRAMMED CONTROL UNIT ADVANTAGES The design of micro-program control unit is less complex because micro-programs are implemented using software routines. The micro-programmed control unit is more flexible because design modifications, correction and enhancement is easily possible. The new or modified instruction set of CPU can be easily implemented by simply rewriting or modifying the contents of control memory. The fault can be easily diagnosed in the micro-program control unit using diagnostics tools by maintaining the contents of flags, registers and counters Maninder Kaur

MICRO-PROGRAMMED CONTROL UNIT DISADVANTAGES The micro-program control unit is slower than hardwired control unit. That means to execute an instruction in micro-program control unit requires more time. The micro-program control unit is expensive than hardwired control unit in case of limited hardware resources. The design duration of micro-program control unit is more than hardwired control unit for smaller CPU Maninder Kaur

ARCHITECTURE OF MICRO-PROGRAMMED CONTROL UNIT 20 Maninder Kaur

ARCHITECTURE OF MICRO-PROGRAMMED CONTROL UNIT The address of micro-instruction that is to be executed is stored in the control address register (CAR). Micro-instruction corresponding to the address stored in CAR is fetched from control memory and is stored in the control data register (CDR). This micro-instruction contains control word to execute one or more micro-operations. After the execution of all micro-operations of micro-instruction, the address of next micro-instruction is located Maninder Kaur

COMPARISON BETWEEN HARDWIRED AND MICRO-PROGRAMMED CONTROL UNIT AttributesHardwired ControlMicro-programmed Control SpeedFastSlow Cost of Implementation MoreCheaper Flexibility Not flexible, difficult to modify for new instruction Flexible, new instructions can easily be added Ability to Handle Complex Instructions DifficultEasier DecodingComplexEasy ApplicationsRISC MicroprocessorCISC Microprocessor Instruction Set SizeSmallLarge Control MemoryAbsentPresent Chip Area RequiredLessMore 22 Maninder Kaur