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.

Slides:



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

Computer Architecture and the Fetch-Execute Cycle
 Suppose for a moment that you were asked to perform a task and were given the following list of instructions to perform:
The Little man computer
The CPU. Parts of the CPU Control Unit Arithmetic & Logic Unit Registers.
CHAPTER 4 COMPUTER SYSTEM – Von Neumann Model
Stored Program Concept: The Hardware View
The processor and main memory chapter 4, Exploring the Digital Domain The Development and Basic Organization of Computers.
The central processing unit and main memory chapter 4, Exploring the Digital Domain The Development and Basic Organization of Computers.
Elements of the Computer (How a processor works)
1 Sec (2.3) Program Execution. 2 In the CPU we have CU and ALU, in CU there are two special purpose registers: 1. Instruction Register 2. Program Counter.
6. The CPU and Memory Chapt. 7.
A-Level Computing#BristolMet Session Objectives#4 MUST describe the differences between the main types of primary memory SHOULD describe the function and.
Inside The CPU. Buses There are 3 Types of Buses There are 3 Types of Buses Address bus Address bus –between CPU and Main Memory –Carries address of where.
The Computer Processor
Lecture 13 - Introduction to the Central Processing Unit (CPU)
CPU Fetch/Execute Cycle
Computer Structure.
Processor Structure & Operations of an Accumulator Machine
Chapter 5: Computer Systems Organization Invitation to Computer Science, Java Version, Third Edition.
Central Processing Unit
GCSE Computing#BristolMet Session Objectives#11 MUST identify what program instructions consist of SHOULD describe how instructions are coded as bit patterns.
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.
Von Neumann Machine Objectives: Explain Von Neumann architecture:  Memory –Organization –Decoding memory addresses, MAR & MDR  ALU and Control Unit –Executing.
The Central Processing Unit (CPU) and the Machine Cycle.
Model Computer CPU Arithmetic Logic Unit Control Unit Memory Unit
PHY 201 (Blum)1 Microcode Source: Digital Computer Electronics (Malvino and Brown)
Computer Architecture Memory, Math and Logic. Basic Building Blocks Seen: – Memory – Logic & Math.
Little Man Computer When your program gets “translated to machine code” all 0’s & 1’s The translator must know the language of the program (java) as well.
Fetch-execute cycle.
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
© GCSE Computing Candidates should be able to:  describe the characteristics of an assembler Slide 1.
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.
Dale & Lewis Chapter 5 Computing components
Processor Structure and Function Chapter8:. CPU Structure  CPU must:  Fetch instructions –Read instruction from memory  Interpret instructions –Instruction.
Computer operation is of how the different parts of a computer system work together to perform a task.
Question What technology differentiates the different stages a computer had gone through from generation 1 to present?
CS61C L20 Datapath © UC Regents 1 Microprocessor James Tan Adapted from D. Patterson’s CS61C Copyright 2000.
Simple ALU How to perform this C language integer operation in the computer C=A+B; ? The arithmetic/logic unit (ALU) of a processor performs integer arithmetic.
Structure and Role of a Processor
1 Basic Processor Architecture. 2 Building Blocks of Processor Systems CPU.
1 3 Computing System Fundamentals 3.2 Computer Architecture.
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.
Program to multiply 2 numbers 500-Input x 291-Store acc. as x 500-Input y 292-Store acc. as y 193-Load y in to acc. (0 on 1 st parse) 391-Add x to acc.
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;
CPU Lesson 2.
Computing Science Computer Structure: Lesson 1: Processor Structure
Systems Architecture Keywords Fetch Execute Cycle
Von Neumann architecture
Chapter 10: Computer systems (1)
Lecture 13 - Introduction to the Central Processing Unit (CPU)
Lesson Objectives A note about notes: Aims
Computer Architecture
Hook – CPU Knowledge Check
The Processor and Machine Language
Functional Units.
CPU Key Revision Points.
The Little Man Computer
1-2 – Central Processing Unit
Unit 1.1 System Architecture Lesson 2
GCSE OCR 1 The CPU Computer Science J276 Unit 1
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
Sec (2.3) Program Execution.
Presentation transcript:

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 around the CPU. COULD explain the need for and use of registers during the fetch decode execute cycle Create solutions to the LMC assignments

A-Level Computing#BristolMet Visit the following site and follow the simulations of the Fetch-Execute cycle using the Little Man Computer (LMC) This is an interpretation of how a processor handles machine code. TASK: Follow the instructions and create a flow diagram of where the Little Man goes to throughout the Fetch Execute Cycle. REMEMBER: Instructions are split into 2 parts, the instruction (+,-, x, store etc) and the data itself (or memory location/address of where the data to be used is stored) 1) The Op Code (or Operation Code Field) is part of the binary code giving the instruction to be carried out i.e add or jump 2) The Operand (Operand Field or address field) gives the address (memory location) where the data to be used in the operation is stored. Machine Code with The Little Man Computer

A-Level Computing#BristolMet Little Man Code Library CODEMEANING 1abLoad 2abStore 3abAdd 4abSubtract 500Input 600Output 700Stop 800Skip If Negative 801Skip If Zero 802If Skip Positive 9ABJump Beware: the Little Man 0 is a positive number, so the instruction 802 is actually Skip if Non-negative.

A-Level Computing#BristolMet Little Man Which parts of the processor does each LCM item belong to?

A-Level Computing#BristolMet System Block Diagram

A-Level Computing#BristolMet Little Man Machine Code Tasks Assignments 1. Create a simple that will add any 2 numbers and display the results. 2. Create a simple programs that will calculate the perimeter of any rectangle. 3. Create a program using the LMC to allow the input of 2 integer values and then order them to output the largest value first and then the smallest RGB conversion SW 4. Colors of a pixel on a color are often represented with three values ​​ (r, g, b) that the red, green and blue value display. Grayscale on a monochrome display are represented by only one gray value. Choose a program that adds three inputs and divide by three, and so rgb values ​​ to the grayscale.

A-Level Computing#BristolMet Flow Chart to LMC Assignment 1 Input A Store A Add BLoad A Store B Input B Output Result START END

A-Level Computing#BristolMet Coded Solution to Assignment INPUT A STORE Value A at memory location (address 99) INPUT B LOAD A ADD B OUTPUT Result STORE Value B at address 98

A-Level Computing#BristolMet Flow Chart Flow chart of solution to LMC Assignment 3

A-Level Computing#BristolMet More on Buses The signals being sent around the processor are again called buses. These components are the information highway for the CPU. Buses are bundles of tiny wires that carry data between components. The three most important buses are the address, the data, and the control buses. 3 buses you need to remember are: The Control Bus – The CU uses this to send commands to different parts of the processor or devices in the computer, for requesting a disk drive to read or write. The Address Bus – carries the location address to where the data is going. The Data Bus – carries the actual data being used.

A-Level Computing#BristolMet Registers Know that we have a greater understanding of a processort and the Fetch-Execute cycle, we should now consider the CPU of being composed of five basic components: RAM, registers, buses, the ALU, and the Control Unit. Registers are special memory locations that can be accessed very fast. They keep a check on the progress of the instructions and data as it moves around the processor. Think of them as part of a logical operation rather than individual registers.

A-Level Computing#BristolMet Regsiters Program Counter (PC) – In the CU. Counts the instructions as they are carried out and increments by (+1). Contains the address of the next instruction to be executed(Instructions are always stored in order) Memory Address Register (MAR) –stores the address of the memory location currently in use, sent by the PC. Memory Data Register (MDR) – A copy of the instruction held in the MAR is stored here so that the memory unit and processor can work on it at the same time. Current Instruction Register (CIR) – the instruction now in the MDR is copied into the CIR. In here it can be spilt into 2 parts; 1 part is sent to be decoded so that the processor knows what the instruction is (and signals can be sent to other parts of the processor which may be required to carry out the instruction). The other part is an address stating whereabouts in the memory the required data is.

A-Level Computing#BristolMet Registers CIR continued... E.G if an instruction of ADD 20 is given it will be split into: ADD – ALU works out how to do an add 20 – is where the data to be added will be found (the address) The address will be sent back to the MAR Memory will be searched and whatever is in address ‘20’ will be copied into the MDR. The value in the MDR can then be used as per instructed by the CIR i.e Adding As the instruction is arithmetic it will be sent to the Accumulator (a special storage register with the ALU) to be carried out TASK: Create a flow diagram of how a processor would handle this instruction through it’s registers.

A-Level Computing#BristolMet CPU & Registers Indicate on the diagram below where the MAR and MDR would be positioned?