Lesson Objectives A note about notes: Aims

Slides:



Advertisements
Similar presentations
Chapter 2: Data Manipulation
Advertisements

The CPU The Central Presentation Unit What is the CPU?
Computer Architecture and the Fetch-Execute Cycle
The Little man computer
The CPU. Parts of the CPU Control Unit Arithmetic & Logic Unit Registers.
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.
Dale & Lewis Chapter 5 Computing components. Let’s design a computer Generic CPU with registers −Program counter (PC) – 5 bits (size of addresses) −Instruction.
GCSE Computing - The CPU
A-Level Computing#BristolMet Session Objectives#4 MUST describe the differences between the main types of primary memory SHOULD describe the function and.
The Computer Processor
CPU Fetch/Execute Cycle
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.
An Interactive Web-Based Simulation of a General Computer Architecture
Computer Systems 1 Fundamentals of Computing The CPU & Von Neumann.
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.
Model Computer CPU Arithmetic Logic Unit Control Unit Memory Unit
Computer Hardware A computer is made of internal components Central Processor Unit Internal External and external components.
Computer Structure & Architecture 7b - CPU & Buses.
© 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.
Assessment Covering… Von Neuman architecture Registers – purpose and use, the fetch execute cycle.
Dale & Lewis Chapter 5 Computing components
Computer operation is of how the different parts of a computer system work together to perform a task.
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 3 Computing System Fundamentals 3.2 Computer Architecture.
Chapter 20 Computer Operations Computer Studies Today Chapter 20.
Mastering LMC Coding Part #1 Introduction to Low Level Languages Introduction to Little Man computer Simple examples (demos) with video tutorials included.
What’s going on here? Can you think of a generic way to describe both of these?
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;
Riyadh Philanthropic Society For Science Prince Sultan College For Woman Dept. of Computer & Information Sciences CS 251 Introduction to Computer Organization.
Computer Architecture 1 CPU IAS (The computer’s main memory) Store (e.g. Disk, DVD) Input/output Interfaces Clock Bus Keyboard, printer, mouse monitor,
Stored Program Concept Learning Objectives Learn the meaning of the stored program concept The processor and its components The fetch-decode-execute and.
Computer Operation What basic hardware components are inside a personal computer?
Computer Systems Nat 4/5 Computing Science Computer Structure:
Computer Hardware What is a CPU.
CPU Lesson 2.
OCR GCSE Computer Science Teaching and Learning Resources
GCSE Computing - The CPU
Computing Science Computer Structure: Lesson 1: Processor Structure
Systems Architecture Keywords Fetch Execute Cycle
The Little man computer
The CPU, RISC and CISC Component 1.
Von Neumann architecture
Control Unit Operation
Chapter 10: Computer systems (1)
Starter: Stored Program Concept (von Neumann Architecture)
3.3.3 Computer architectures
William Stallings Computer Organization and Architecture
Hook – CPU Knowledge Check
Instructions at the Lowest Level
Starter Read the Feedback Click on Add new Feedback Open Realsmart
Teaching Computing to GCSE
System Architecture 1 Chapter 2.
Making Programming Friendlier
The Little Man Computer
Computer Architecture
1-2 – Central Processing Unit
Unit 1.1 System Architecture Lesson 2
GCSE OCR 1 The CPU Computer Science J276 Unit 1
A Level Computer Science Topic 5: Computer Architecture and Assembly
GCSE Computing - The CPU
THE FETCH-EXECUTE CYCLE.
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
Lesson Objectives A note about notes: Aims
Little Man Computer.
Presentation transcript:

Lesson Objectives A note about notes: Aims To understand the main component parts of a CPU To be able to define the term “Register” To be able to state and explain the purpose of common registers To be able to describe how the FEC affects registers To be able to define the term “data bus” and give examples A note about notes: We will not be holding your hands in lessons. You are more than capable of working out when you should be making a note of things as we go through a lesson. If something is truly essential to copy down you will see this symbol: Otherwise, use your common sense, make notes on things and ask questions to fill out the gaps in your understanding.

Recap Von Neumann Architecture

When is a bus not a bus? When it’s a bus… A data bus is simply a connection between components in a computer system The CPU uses several buses to send and receive data to and from memory Each one has a specific purpose, the more buses, the more data you can have travelling in “parallel” – remember pipelining? We are interested in the: Data Bus Control Bus Address Bus

The address bus: this determines the location in memory that the processor will read data from or write data to. The data bus: this contains the contents that have been read from the memory location or are to be written into the memory location. The control bus: this manages the information flow between components indicating whether the operation is a read or a write and ensuring that the operation happens at the right time.

Bus diagram This is for a 32 bit CPU – why?

What’s inside a CPU then? Control Unit

The role of the control unit should be obvious: Every clock pulse, it generates signals that orchestrate the Fetch, Execute Cycle It is responsible for: Fetching and decoding instructions Receiving and sending instructions and associated data to the correct parts of the CPU to be processed Sending data to and from the processor to memory

Registers What really makes the CPU work, however, are REGISTERS. A Register is simply a fixed width piece of memory – usually 32 or 64 bits A Register will usually have a very specific role – such as holding the a memory address. Although there are “general purpose” registers

Video Watch: https://www.youtube.com/watch?v=7hB2SEZ3zqg

Task Find out the purpose and function of the Arithmetic and Logic Unit (ALU) Find out the purpose and function of the following registers: Program Counter (PC) Accumulator (ACC) Memory Address Register (MAR) Memory Data Register (MDR) Current Instruction Register (CIR)

Compare notes… ALU: The Arithmetic and Logic Unit (ALU) is responsible for performing most of the computation in a modern processor. This includes basic arithmetic such as binary addition and subtraction, operations to shift and rotate the bits in a binary number, comparison operations (such as testing for zero, negative numbers, etc.) and logical operations such as AND, OR, XOR (exclusive OR) and NOT (negation).

Memory Address Register (MAR) Program Counter (PC) Holds the address of the NEXT instruction to be read from memory Accumulator (ACC) A multi purpose register in which data is held by the CPU whilst an instruction is carried out on it. Usually holds the input and output of calculations performed by the ALU Memory Address Register (MAR) Holds the memory address of the instruction that will be read in the current cycle Memory Data Register (MDR) Holds the memory address of the next piece of data to be read or written Current Instruction Register (CIR) Holds and instruction that has been read from memory and will be, or is being, processed

Practical time To understand what’s going on here, and to be able to answer exam questions, we need to do some programming! Time to meet the Little Man. http://peterhigginson.co.uk/LMC/

The little man computer is a simulation of how a CPU works and uses a very small version of Assembly Language What’s Assembly Language… The little man is the Control Unit of the CPU, fetching and carrying out instructions, storing data etc.

Demo http://peterhigginson.co.uk/LMC/ LDA ten start OUT SUB one BRP start HLT ten DAT 10 one DAT 1

Your Turn Write an LMC program that: Asks the user for two numbers to be inputted Finds the biggest number Outputs the answer Extension: Loop round to compare two more numbers unless the user enters a negative number

INP STA first STA second SUB first BRP higher LDA first BRA done higher LDA second done OUT HLT first DAT second DAT

A note on addressing LDA &5 LDA #5 What’s the difference? Immediate (direct) = & = this IS the data indirect addressing = # = Go and get the data from the address this memory location points to

June 2016 As Level Paper

Task You need to be able to explain the effect that the fetch/execute cycle has on common registers. For the following simple program, explain what happens at each step to the Program Counter (PC) Accumulator (ACC) Memory Address Register (MAR) Memory Data Register (MDR) Current Instruction Register (CIR) INP STA 99 ADD 99 OUT HLT

Further reading P124 - 130

Review/Success Criteria You should now be confident that you know: The internal structure of the CPU The names of common registers The function of common registers The effect of program execution on the CPU registers For next lesson you must: Find out what RISC and CISC mean Find out what the limitations of the Von Neumann architecture are