Fetch-execute cycle.

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
Damian BrowneLuis PabonPedro Tovar The operation of a computer in executing a program consists of a sequence of Instruction Cycles, with one machine.
The CPU. Parts of the CPU Control Unit Arithmetic & Logic Unit Registers.
Computer Organization and Architecture Tutorial 2 Kenneth Lee.
Stored Program Concept: The Hardware View
The processor 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.
Elements of the Computer (How a processor works)
The Computer Processor
CH12 CPU Structure and Function
Lecture 13 - Introduction to the Central Processing Unit (CPU)
CPU Fetch/Execute Cycle
Fetch Execute Cycle Travis Griffiths. Naming Conventions and Disclaimer Individual registers in a particular CPU will have different names depending on.
The von Neumann Model – Chapter 4 COMP 2620 Dr. James Money COMP
A-Level Computing#BristolMet Session Objectives#5 MUST identify different buses and registers used in a CPU SHOULD describe the use of buses to send information.
Computer Architecture and the Fetch-Execute Cycle
Computer Architecture and the Fetch-Execute Cycle
Introduction to Computing Systems from bits & gates to C & beyond The Von Neumann Model Basic components Instruction processing.
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.
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
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.
Computer Systems - Registers. Starter… Discuss in pairs the definition of the following Control Unit Arithmetic and Logic Unit Registers Internal clock.
Computer Studies/ICT SS2
Represents different voltage levels High: 5 Volts Low: 0 Volts At this raw level a digital computer is instructed to carry out instructions.
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.
Fetch-Execute Cycle Fetch the next instruction Decode Execute It.
Computer Systems Organization
Dale & Lewis Chapter 5 Computing components
Question What technology differentiates the different stages a computer had gone through from generation 1 to present?
Processor Organization
Structure and Role of a Processor
Designing a CPU –Reading a programs instruction from memory –Decoding the instruction –Executing the instruction –Transferring Data to/From memory / IO.
Central Processing Unit Decode Cycle. Central Processing Unit Current Instruction Register (CIR) I1 The fetch cycle has transferred an instruction from.
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.
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;
Stored Program Concept Learning Objectives Learn the meaning of the stored program concept The processor and its components The fetch-decode-execute and.
OCR GCSE Computer Science Teaching and Learning Resources
Chapter 10: Computer systems (1)
Lecture 13 - Introduction to the Central Processing Unit (CPU)
System Architecture 1 Chapter 2.
The fetch-execute cycle
The Processor and Machine Language
Functional Units.
Computer Organization and ASSEMBLY LANGUAGE
Topic 6 LC-3.
Processor Organization and Architecture
CPU Key Revision Points.
The Little Man Computer
THE FETCH-EXECUTE CYCLE.
GCSE OCR 1 The CPU Computer Science J276 Unit 1
Basic components Instruction processing
CPU Structure and Function
THE FETCH-EXECUTE CYCLE.
Information Representation: Machine Instructions
Objectives Describe common CPU components and their function: ALU Arithmetic Logic Unit), CU (Control Unit), Cache Explain the function of the CPU as.
Instruction execution and ALU
Computer Architecture
Presentation transcript:

Fetch-execute cycle

Fetch decode & execute cycle There are three main parts to this process: Fetch Retrieves the instruction that is required to be used Decode The instructions is interpreted and broken down into it’s constituent parts (eg opcode / operand) Execute The instruction is performed and carried out. Fetch-execute cycle

Fetch decode & execute cycle Instructions called into the processor from main memory having been fetched and decoded. Instruction Instruction Instructions being fetched, decoded and executed. Data Processor Data Instruction Main memory Processor Fetch-execute cycle

Fetch cycle Program Counter +1 Points to the next instruction that needs to be executed. It is incremented by one to point to the next instruction Program Counter PC Fetch cycle

Memory Address Register (MAR) Memory Address Register (MAR) +1 The memory address register (MAR) holds the address of the currently addressed memory location. Program Counter PC Memory Address Register (MAR) Fetch cycle

Memory Address Register (MAR) +1 Program Counter PC Address Bus Memory Address Register (MAR) 1 Data 2 Data 3 ADD #6 Main Memory 4 Data The Memory Address Register (MAR) points the next instruction in main memory. 5 Data 6 Data Main memory Fetch cycle

Fetch cycle Memory Data Register (MDR) +1 Program Counter PC Address Bus Memory Address Register (MAR) 1 Data 2 Data Data Bus Memory Data Register (MDR) 3 ADD #6 4 Data Memory Data Register (MDR) 5 Data The instruction is located and loaded into the memory data register (MDR) also called the MBR. 6 Data Main memory Fetch cycle

Fetch cycle Current Instruction Register (CIR) +1 Program Counter PC Address Bus Memory Address Register (MAR) 1 Data Data Bus 2 Data Memory Data Register (MDR) 3 ADD #6 4 Data Current Instruction Register (CIR) 5 Data 6 Data Current Instruction Register (CIR) The instruction resides in the Current Instruction register (CIR). This is the end of the ‘fetch’ part of the cycle. Main memory Fetch cycle

+1 Decode Program Counter PC The instruction in the current instruction register (CIR) is decoded. Address Bus Memory Address Register (MAR) 1 Data Data Bus 2 Data Memory Data Register (MDR) 3 ADD #6 4 Data Current Instruction Register (CIR) 5 Data 6 Data Decodes the instruction Main memory Instruction decoder Decode cycle

+1 Decode The instruction is separated into the opcode and the operand as part of this process. Program Counter PC Address Bus Memory Address Register (MAR) 1 Data Data Bus 2 Data Memory Data Register (MDR) 3 ADD #6 4 Data Current Instruction Register (CIR) 5 Data 6 Data Instruction decoder Op-code Operand Main memory Decode cycle

Execute cycle Execute ALU +1 The fetched and decoded instruction is now executed to complete the process. Program Counter PC Address Bus Memory Address Register (MAR) 1 Data Data Bus 2 Data Memory Data Register (MDR) 3 ADD #6 4 Data Current Instruction Register (CIR) 5 Data 6 Data Instruction decoder Op-code Operand Main memory ALU Accumulator Finally executes the instruction Execute cycle