The Postman in your PC Today you are going to learn how a computer’s CPU works to handle data. Teachcompsci.co.uk.

Slides:



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

CHAPTER 6: The Little Man Computer
The “Little Man Computer” Version
Computer Architecture and the Fetch-Execute Cycle
Central Processing Unit
ARITHMETIC LOGIC SHIFT UNIT
 Suppose for a moment that you were asked to perform a task and were given the following list of instructions to perform:
2.3) Example of program execution 1. instruction  B25 8 Op-code B means to change the value of the program counter if the contents of the indicated register.
ABNIAC The following slide presentation is to acquaint the student with ABNIAC. The version used for presentation is the Java version, which can be found.
Programming Types of Testing.
The Little man computer
LMC Little Moron Computer
Stored Program Concept: The Hardware View
LAB 9 Simulator Chap 14 REED. Datapath Simulator accompanying the text is a datapath simulator a.k.a. the Knob & Switch Computer developed by Grant Braught.
Dale & Lewis Chapter 5 Computing components. Let’s design a computer Generic CPU with registers −Program counter (PC) – 5 bits (size of addresses) −Instruction.
The Little Man Computer
Von Neumann architecture
Pipelining By Toan Nguyen.
The Computer Processor
Lecture 13 - Introduction to the Central Processing Unit (CPU)
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
WHAT IS THIS? OBJECTIVE AND OUTCOMES Candidates should be able to: Describe and explain the CPU as fetching, decoding and executing of instructions and.
Lecture 3. Diff b/w RAM and Registers Registers are used to hold data immediately applicable to the operation at hand Registers are used to hold data.
IT253: Computer Organization Lecture 10: Making a Processor: Control Signals Tonga Institute of Higher Education.
Computer Architecture and the Fetch-Execute Cycle
Computer Architecture and the Fetch-Execute Cycle
CPU Design. Introduction – The CPU must perform three main tasks: Communication with memory – Fetching Instructions – Fetching and storing data Interpretation.
CHAPTER 6: The Little Man Computer
The von Neumann Model – Chapter 4
How computers work The CPU & Memory. The parts of a computer.
Model Computer CPU Arithmetic Logic Unit Control Unit Memory Unit
Lecture 14 Today’s topics MARIE Architecture Registers Buses
CS 111 – Sept. 15 Chapter 2 – Manipulating data by performing instructions “What is going on in the CPU?” Commitment: –Please read through section 2.3.
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.
© GCSE Computing Candidates should be able to:  describe the characteristics of an assembler Slide 1.
The Little-Man Computer Damian Gordon. The Little-Man Computer Most computer architectures conform to the so-called von Neuman Architecture. This means.
Dale & Lewis Chapter 5 Computing components
HOW A COMPUTER PROCESSES DATA. What is hardware? Hardware is the electric, electronic and mechanical equipment that makes up a computer What is software?
HOW COMPUTERS WORK THE CPU & MEMORY. THE PARTS OF A COMPUTER.
Examples with 3-Digit Numbers
Elements of Datapath for the fetch and increment The first element we need: a memory unit to store the instructions of a program and supply instructions.
This is where you can reset and run your program. If your program has an “INP” (input) command, you will type it in this box here. Using the LMC These.
1 3 Computing System Fundamentals 3.2 Computer Architecture.
CPIT Program Execution. Today, general-purpose computers use a set of instructions called a program to process data. A computer executes the.
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.
Little Man Computer Task 1 Last lesson you were asked to write a program to multiply two numbers together. The next slide has a working program to do this.
Instruction Memory value Description ADD1xx Add the value stored at memory address xx to the value in the accumulator register SUB2xx Subtract the value.
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;
1. 2 TimeActivity 9:45Welcome and introductions 10:00What is a computer? 10:15What’s inside? 10:45Activity: A simple view of how computers work 11:15Coffee/tea.
The Little man computer
CHAPTER 6: The Little Man Computer
Chapter 10: Computer systems (1)
CHAPTER 6: The Little Man Computer
Review of computer processing and the basic of Operating system
Lesson Objectives A note about notes: Aims
Starter Read the Feedback Click on Add new Feedback Open Realsmart
CHAPTER 6: The Little Man Computer
The Little Man Computer
CSCI-N 100 Dept. of Computer and Information Science
LMC Little Man Computer What do you know about LMC?
GCSE OCR 1 The CPU Computer Science J276 Unit 1
Program Execution.
Little Man Computer There’s a little man in the mailroom that follows each instruction to the letter but he can only follow one instruction at a time.
Little Man Computer (continued).
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
Little Man Computer.
Presentation transcript:

The Postman in your PC Today you are going to learn how a computer’s CPU works to handle data. Teachcompsci.co.uk

Learning Objectives.. Have an understanding of the fetch execute cycle …Be able to identify how the pigeon holes in the little man computer, relates to memory locations. …understand that an instruction set is use to give the postman instructions.

C at and P ats sorting U nit (CPU) In box Out Box Counter 1 Pigeon hole 1 Pigeon hole 2 Pigeon hole 3 Pigeon hole 4 Pigeon hole 5 Pigeon hole 6 Pigeon hole 7 Pigeon hole 8 Pat has a series of pigeon holes each with a piece of paper in Pat has an In box which information arrives on Pat has an outbox to send letters on with. Sam has a counter to help him remember which pigeon hole he is on. Pat has a Calculator

The rules Each pigeon hole has a piece of paper in it which will have one of the instructions on the side on it. It will also contain a number in some cases (e.g. ADD 4, STORE 3) Pat follows a process called the fetch execute cycle to work through the pigeon hole sections.

In box Out Box Counter 1 Pigeon hole 1 Pigeon hole 2 Pigeon hole 3 Pigeon hole 4 Pigeon hole 5 Pigeon hole 6 Pigeon hole 7 Pigeon hole 8 C at and P ats sorting U nit (CPU) Pat reads the next Pigeon hole from the location counter

In box Out Box Counter 1 Pigeon hole 1 Pigeon hole 2 Pigeon hole 3 Pigeon hole 4 Pigeon hole 5 Pigeon hole 6 Pigeon hole 7 Pigeon hole 8 C at and P ats sorting U nit (CPU) He walks over to the Pigeon hole that corresponds to the location counter

In box Out Box Counter 1 Pigeon hole 1 Pigeon hole 2 Pigeon hole 3 Pigeon hole 4 Pigeon hole 5 Pigeon hole 6 Pigeon hole 7 Pigeon hole 8 C at and P ats sorting U nit (CPU) He carries out the instruction (either adding a number to a pigeon hole or the calculator)

In box Out Box Counter 1 Pigeon hole 1 Pigeon hole 2 Pigeon hole 3 Pigeon hole 4 Pigeon hole 5 Pigeon hole 6 Pigeon hole 7 Pigeon hole 8 C at and P ats sorting U nit (CPU) He reads the instruction on the slip of paper (Pat puts it back in case he needs to read it again)

In box Out Box Counter 2 Pigeon hole 1 Pigeon hole 2 Pigeon hole 3 Pigeon hole 4 Pigeon hole 5 Pigeon hole 6 Pigeon hole 7 Pigeon hole 8 C at and P ats sorting U nit (CPU) Pat clicks the counter to say he is finished and ready for the next task

A volunteer to be Pat A similar situation is set up at the front of the class room. You have an IN box, a OUT box, a COUNTER, a Calculator and some PIGEON HOLES. Work through the fetch execute cycle until told to HALT. But first you need to know what the instructions mean…

Copy these down! LOAD = put the number after it in the calculator (Wiping what's there already) STORE = Put the number in the calculator into the pigeon hole after the word store (store 4 = pigeon hole 4) ADD = add the number after add, to the number in the calculator SUB = Subtract the number HALT = Stop.

Pigeon Hole 1 Pigeon Hole 2 Pigeon Hole 3 Pigeon Hole 4 Pigeon Hole 5 Pigeon Hole 6 Pigeon Hole 7 Program:

Task This may be done in small groups or in the centre of the room. Role-play working through a selection of little man computer programs.

A couple more instructions INPUT = Take the number in the IN BOX and put it in the calculator (Deleting what is already there). OUTPUT = – If there is no number after output, write the number on the calculator down and put it in the OUT BOX. – If there is a number after OUTPUT place the number in the pigeon hole with that number in the OUT BOX JUMP = Get a screwdriver out and change the COUNTER to be the number after jump.

Why have we just done this? The Fetch Execute cycle that Pat followed is identical to how a computer CPU works. The pigeon holes are Memory locations, and PAT is the computer itself. Could you write a simple little man program?