Fetch Execute Cycle Travis Griffiths. Naming Conventions and Disclaimer Individual registers in a particular CPU will have different names depending on.

Slides:



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

Fetch-Execute cycle. Memory Read operation Read from memory.
The Fetch – Execute Cycle
Machine cycle.
Computer Architecture and the Fetch-Execute Cycle
Central Processing Unit
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.
Microprocessor.  The CPU of Microcomputer is called microprocessor.  It is a CPU on a single chip (microchip).  It is called brain or heart of the.
DH2T 34 Computer Architecture 1 LO2 Lesson Two CPU and Buses.
The CPU. Parts of the CPU Control Unit Arithmetic & Logic Unit Registers.
Computer Organization. This module surveys the physical resources of a computer system. –Basic components CPUMemoryBus I/O devices –CPU structure Registers.
Microprocessor and Microcontroller Based Systems Instructor: Eng.Moayed N. EL Mobaied The Islamic University of Gaza Faculty of Engineering Electrical.
Room: E-3-31 Phone: Dr Masri Ayob TK 2123 COMPUTER ORGANISATION & ARCHITECTURE Lecture 5: CPU and Memory.
Computer Systems. Computer System Components Computer Networks.
Stored Program Concept: The Hardware View
The central processing unit and main memory chapter 4, Exploring the Digital Domain The Development and Basic Organization of Computers.
Basic Computer Organization, CPU L1 Prof. Sin-Min Lee Department of Computer Science.
CPU Structure and Instruction Execution Timothy C. Rice Jr., MIT.
The Computer Processor
CPU Fetch/Execute Cycle
Basic Operational Concepts of a Computer
Processor Structure & Operations of an Accumulator Machine
Computer Organization Computer Organization & Assembly Language: Module 2.
Computer Systems 1 Fundamentals of Computing The CPU & Von Neumann.
Basic Microcomputer Design. Inside the CPU Registers – storage locations Control Unit (CU) – coordinates the sequencing of steps involved in executing.
Computer Architecture and the Fetch-Execute Cycle
Computer Architecture and the Fetch-Execute Cycle
The CPU Central Processing Unit. 2 Reminder - how it fits together processor (CPU) memory I/O devices bus.
CPU Design. Introduction – The CPU must perform three main tasks: Communication with memory – Fetching Instructions – Fetching and storing data Interpretation.
Model Computer CPU Arithmetic Logic Unit Control Unit Memory Unit
Computer Architecture Memory, Math and Logic. Basic Building Blocks Seen: – Memory – Logic & Math.
DH2T 34 – HNC Computer Architecture 1 Lecture 14 The Fetch-Decode-Execute Cycle [1]. © C Nyssen/Aberdeen College 2003 All images © C Nyssen/Aberdeen College.
Fetch-execute cycle.
Computer Systems - Registers. Starter… Discuss in pairs the definition of the following Control Unit Arithmetic and Logic Unit Registers Internal clock.
Computer Organization. This module surveys the physical resources of a computer system.  Basic components  CPU  Memory  Bus  I/O devices  CPU structure.
Computer Hardware A computer is made of internal components Central Processor Unit Internal External and external components.
Computer Structure & Architecture 7b - CPU & Buses.
Computer Studies/ICT SS2
COMPILERS CLASS 22/7,23/7. Introduction Compiler: A Compiler is a program that can read a program in one language (Source) and translate it into an equivalent.
Computer Systems Organization
University of Tehran 1 Microprocessor System Design Processor Timing.
System Unit Working of CPU. The CPU CPU The CPU CPU stands for central processing unit. it is brain of computer It is most important component of the.
Chapter 3 : Top Level View of Computer Functions Basic CPU function, Interconnection, Instruction Format and Interrupt.
Question What technology differentiates the different stages a computer had gone through from generation 1 to present?
Structure and Role of a Processor
1 Computer Architecture. 2 Basic Elements Processor Main Memory –volatile –referred to as real memory or primary memory I/O modules –secondary memory.
CPUz 4 n00bz.
Chapter 20 Computer Operations Computer Studies Today Chapter 20.
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.
Software Design and Development Computer Architecture Computing Science.
3.1.4 Hardware a. describe the function and purpose of the control unit, memory unit and ALU (arithmetic logic unit) as individual parts of a computer;
OCR GCSE Computer Science Teaching and Learning Resources
Chapter 10: Computer systems (1)
Edexcel GCSE Computer Science Topic 15 - The Processor (CPU)
Computer Architecture
System Architecture 1 Chapter 2.
The fetch-execute cycle
The Little Man Computer
Fundamental Concepts Processor fetches one instruction at a time and perform the operation specified. Instructions are fetched from successive memory locations.
THE FETCH-EXECUTE CYCLE.
GCSE OCR 1 The CPU Computer Science J276 Unit 1
THE FETCH-EXECUTE CYCLE.
A Top-Level View Of Computer Function And Interconnection
Objectives Describe common CPU components and their function: ALU Arithmetic Logic Unit), CU (Control Unit), Cache Explain the function of the CPU as.
Computer Architecture
COMPUTER ARCHITECTURE
Presentation transcript:

Fetch Execute Cycle Travis Griffiths

Naming Conventions and Disclaimer Individual registers in a particular CPU will have different names depending on the documentation used. Due to differences in design the exact specifics of any particular processor will be different, possibly even within the same processor Example: large addresses may require multiple passes to fully decode.

Steps of Fetch Execute Cycle Fetch –The next instruction must be located, moved across at least one system bus to the processor Execute –The instruction must be carried out, this often requires information be moved around in one or more registers and system memory.

Registers Instruction Pointer (IP) –The location of the next instruction. –Sometimes called the Program Counter (PC) Memory Access Register (MAR) Current Instruction Register (CIR) or (IR) –The current instruction. Accumulator (AX) –Used for short term storage, and in many instructions

Busses Address Bus –Moves locations of data to different registers, particularly between the Instruction Pointer, Memory Address Register, and Memory Data Bus –Moves contents of memory addresses

What is a Bus Anyway? Explicitly connecting every component in a system results in an exponential growth of connections. Bus interconnection solves this. (n(n-1))/2 connections A bus connection

Fetching an Instruction 0001 Instruction Pointer Memory location contents 0FFF 0FA0 010D 00C Address Bus

Fetching an Instruction 0001 Instruction Pointer Memory location contents 0FFF 0FA0 010D 00C Address Bus Contents of the Program Counter are passed across the Address Bus

Fetching an Instruction 0001 Instruction Pointer Memory location contents 0FFF 0FA0 010D 00C Address Bus 0001 Memory Access Register The address moves over the address bus to the Memory Access Register

Fetching an Instruction Memory location contents 0FFF 0FA0 010D 00C Memory Access Register The memory location of the next instruction is located.

Fetching an Instruction Memory location contents 0FFF 0FA0 010D 00C Data Bus The contents of memory at the given location are moved across the data bus

Fetching an Instruction Memory location contents 0FFF 0FA0 010D 00C FFF Instruction Register Data Bus Into the instruction register (IR)

Fetching an Instruction 0FFF Instruction Register With the instruction loaded from memory into the Instruction Register the fetch portion of the cycle is complete.

Notes on Fetch This model assumes a simple fetch as our memory length all fits as a single unit in our registers. Some processors make use of a queue to “preload” instructions. This speeds up execution as memory is slower than the CPU and many cycles are wasted waiting for instructions to arrive.

Execute The specifics of an Execute cycle are particular to the instruction that has just been loaded. Instruction sets are particular to a processor and will often make use of other registers within the system.

Questions?