Processor Organization and Architecture Module III.

Slides:



Advertisements
Similar presentations
The CPU The Central Presentation Unit What is the CPU?
Advertisements

CS364 CH16 Control Unit Operation
Control path Recall that the control path is the physical entity in a processor which: fetches instructions, fetches operands, decodes instructions, schedules.
Damian BrowneLuis PabonPedro Tovar The operation of a computer in executing a program consists of a sequence of Instruction Cycles, with one machine.
PART 5: (2/2) Processor Internals CHAPTER 15: CONTROL UNIT OPERATION 1.
ARITHMETIC LOGIC SHIFT UNIT
Computer Organization and Architecture
CHAPTER 16 – CONTROL UNIT OPERATION
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,
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
Lecture 13 - Introduction to the Central Processing Unit (CPU)
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.
The Structure of the CPU
TEAM 1: Miguel Harmant Rodney Rodriguez Elias Crespo Javier Parra Alfredo Alonso Marc-Wayne Anglin.
1 Computer Organization Today: First Hour: Computer Organization –Section 11.3 of Katz’s Textbook –In-class Activity #1 Second Hour: Test Review.
The CPU Central Processing Unit. 2 Reminder - how it fits together processor (CPU) memory I/O devices bus.
Chapter 4 MARIE: An Introduction to a Simple Computer.
CONTROL UNIT OPERATION MICROPROGRAMMED CONTROL. 2.
REGISTER TRANSFER & MICROOPERATIONS By Sohaib. Digital System Overview  Each module is built from digital components  Registers  Decoders  Arithmetic.
Lecture 14 Today’s topics MARIE Architecture Registers Buses
Fetch-execute cycle.
Computer Hardware A computer is made of internal components Central Processor Unit Internal External and external components.
Dale Roberts Department of Computer and Information Science, School of Science, IUPUI CSCI N305 Information Representation: Machine Instructions.
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.
Register Transfer Languages (RTL)
Basic Elements of Processor ALU Registers Internal data pahs External data paths Control Unit.
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.
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
Designing a CPU –Reading a programs instruction from memory –Decoding the instruction –Executing the instruction –Transferring Data to/From memory / IO.
1 Computer Architecture. 2 Basic Elements Processor Main Memory –volatile –referred to as real memory or primary memory I/O modules –secondary memory.
Lec 4-2 Five operations of the machine cycle Fetch- fetch the next program instruction from memory. (PC+1); instruction to IR Decode- decode the instruction.
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.
Computer Organization and Architecture + Networks
Control Unit Operation
CHAPTER 4 TOP LEVEL VIEW OF COMPUTER FUNCTION AND INTERCONNECTION
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
Control Unit Introduction Types Comparison Control Memory
Processor Organization and Architecture
MARIE: An Introduction to a Simple Computer
William Stallings Computer Organization and Architecture 7th Edition
Chapter 14 Control Unit Operation
William Stallings Computer Organization and Architecture 8th Edition
Chapter 14 Control Unit Operation
William Stallings Computer Organization and Architecture 10th Edition
A Top-Level View Of Computer Function And Interconnection
Information Representation: Machine Instructions
Computer Architecture
Computer Architecture
Presentation transcript:

Processor Organization and Architecture Module III

Control Unit

Micro-operations Program : Sequence of instructions Instruction Cycle: Fetch, Indirect, Execute & Interrupt To design control unit : further subdivision is required Each of the smaller cycle involves processor registers and they are called micro-operations Micro-operations are atomic operations of a processor

Fetch Cycle

Processor Registers for Fetch Cycle Memory Address Register (MAR) – Connected to address bus – Specifies address for read or write operation Memory Buffer Register (MBR) – Connected to data bus – Holds data to write or last data read Program Counter (PC) – Holds address of next instruction to be fetched Instruction Register (IR) – Holds last instruction fetched

Fetch Sequence Address of next instruction is in PC

Fetch Sequence Step 1: Move address in PC to MAR

Fetch Sequence Step 2: To bring instruction 1.The address is placed on address bus from MAR 2.Control unit issues READ command on control bus 3.Data is kept on data bus which is copied to MBR & PC is incremented by 1

Fetch Sequence Step 3: Move contents of MBR to IR

Fetch Sequence Address of next instruction is in PC Step 1: Move address in PC to MAR Step 2: To bring instruction 1.The address is placed on address bus from MAR 2.Control unit issues READ command on control bus 3.Data is kept on data bus which is copied to MBR & PC is incremented by 1 Step 3: Move contents of MBR to IR

Fetch Cycle It involves 3 steps and 4 micro-operations. Each micro-operation involves movement of data into or out of a register As long as they do not interfere each other, multiple micro-ops can take place in one step.

Symbolic Representation t1:MAR <- (PC) t2:MBR <- (memory) PC <- (PC) +1 t3:IR <- (MBR) or t1:MAR <- (PC) t2:MBR <- (memory) t3:PC <- (PC) +1 IR <- (MBR)

Rules for Grouping of Micro- operations 1. The proper sequence of events must be followed. – (MAR  (PC)) must precede (MBR  Memory) because it should makes use of the address in MAR. 2. Conflicts must be avoided. – One should not attempt to read to and write from the same register in one time unit. – E.g. (MBR  Memory) and (IR  MBR) should not occur during the same time unit.

Functional Requirements for Control Unit 3 step process to implement control unit 1.Define the basic elements of the processor. 2.Describe the micro-operations that the processor performs. 3.Determine the functions of control unit to perform the micro-operations.

Basic elements of the Processor ALU Registers Internal data paths External data paths Control unit

Micro-operations All micro-operations fall into one of the following categories: Transfer data from one register to another. Transfer data from a register to an external interface (e.g., system bus). Transfer data from an external interface to a register. Perform an arithmetic or logic operation, using registers for input and output.

Functions of Control Unit Sequencing: The control unit causes the processor to step through a series of micro- operations in the proper sequence, based on the program being executed. Execution: The control unit causes each micro-operation to be performed.

Control Unit Specifications External : It must have – Inputs : to determine the state of the system and – Outputs : to control the behaviour of the system. Internal: It requires a logic to perform its sequencing and execution functions.

Block Diagram of Control Unit

Inputs to Control Unit Clock – One micro-operation (or set of parallel micro- operations) per clock cycle Instruction Register – Op-code and addressing mode of current instruction to determine which micro-operations need to be performed Flags – Status of CPU and outcome of previous ALU operations Control Signals from control bus – Signals to control unit like Interrupts and Acknowledgements

Outputs from Control Unit Control Signals within CPU – Cause data movement between registers – Activate specific ALU functions Control Signals to control bus – To memory – To I/O modules

Control Signal Example

It has single accumulator(AC). Data paths are shown Termination of Control signals are shown C i and indicated by a circle With each clock cycle, CU reads all its input and emit a set of control signals