Stored Programs In today’s lesson, we will look at: what we mean by a stored program computer how computers store and run programs what we mean by the.

Slides:



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

Computer Memory and Data Transfer
The Central Processing Unit: What Goes on Inside the Computer.
Khaled A. Al-Utaibi  Computers are Every Where  What is Computer Engineering?  Design Levels  Computer Engineering Fields  What.
Higher Computing: Unit 1: Topic 3 – Computer Performance St Andrew’s High School, Computing Department Higher Computing Topic 3 Computer Performance.
Chapter 5 Computing Components. The (META) BIG IDEA Cool, idea but maybe too big DATA – Must be stored somewhere in a storage device PROCESSING – Data.
Room: E-3-31 Phone: Dr Masri Ayob TK 2123 COMPUTER ORGANISATION & ARCHITECTURE Lecture 5: CPU and Memory.
Data Manipulation Computer System consists of the following parts:
Chapter 4 Processor Technology and Architecture. Chapter goals Describe CPU instruction and execution cycles Explain how primitive CPU instructions are.
GCSE Computing - The CPU
CPU Describe the purpose of 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.
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.
Processor Structure & Operations of an Accumulator Machine
Higher Computing Computer Systems S. McCrossan 1 Higher Grade Computing Studies 2. Computer Structure Computer Structure The traditional diagram of a computer...
Computer Systems 1 Fundamentals of Computing The CPU & Von Neumann.
Writer:-Rashedul Hasan Editor:- Jasim Uddin
Lecture#14. Last Lecture Summary Memory Address, size What memory stores OS, Application programs, Data, Instructions Types of Memory Non Volatile and.
Computer Processing of Data
3 1 3 C H A P T E R Hardware: Input, Processing, and Output Devices.
Computing hardware CPU.
CS 1308 Computer Literacy and the Internet Computer Systems Organization.
Types of Computers Mainframe/Server Two Dual-Core Intel ® Xeon ® Processors 5140 Multi user access Large amount of RAM ( 48GB) and Backing Storage Desktop.
Computer Systems Organization CS 1428 Foundations of Computer Science.
Measuring System Performance The speed of a computer is often referred to as THROUGHPUT. This is very difficult to measure. It can be done with Measures.
Computers organization & Assembly Language Chapter 0 INTRODUCTION TO COMPUTING Basic Concepts.
What have mr aldred’s dirty clothes got to do with the cpu
The Central Processing Unit
1Copyright © Prentice Hall 2000 The Central Processing Unit Chapter 3 What Goes on Inside the Computer.
OCR GCSE Computing © Hodder Education 2013 Slide 1 OCR GCSE Computing Chapter 2: CPU.
Computer Organization - 1. INPUT PROCESS OUTPUT List different input devices Compare the use of voice recognition as opposed to the entry of data via.
CHAPTER 4 The Central Processing Unit. Chapter Overview Microprocessors Replacing and Upgrading a CPU.
Computer Hardware A computer is made of internal components Central Processor Unit Internal External and external components.
Computer Structure & Architecture 7b - CPU & Buses.
Assessment Covering… Von Neuman architecture Registers – purpose and use, the fetch execute cycle.
CS 1308 Computer Literacy and the Internet. Objectives In this chapter, you will learn about:  The components of a computer system  Putting all the.
Central Processing Unit
HOW COMPUTERS WORK THE CPU & MEMORY. THE PARTS OF A COMPUTER.
The Central Processing Unit (CPU)
Session 4 Teaching Computing to GCSE Level with Python.
Computer Babble Talk Dung X. Nguyen Rice University.
Activity 1 Review the work from last lesson so that you can explain the following: -What is the purpose of a CPU. -What steps does the CPU take to process.
The Processor & its components. The CPU The brain. Performs all major calculations. Controls and manages the operations of other components of the computer.
M211 – Central Processing Unit
The CPU Central Processing Unit. Activity 1 5 minutes to discuss and feedback on the following: 1.What is this? 2.What is it for? What do you notice ?
What’s going on here? Can you think of a generic way to describe both of these?
Computer Architecture Adapted from CS10051 originally by Professor: Johnnie Baker Computer Science Department Kent State University von Neuman model.
Stored Program Concept Learning Objectives Learn the meaning of the stored program concept The processor and its components The fetch-decode-execute and.
Computer Hardware What is a CPU.
GCSE Computing - The CPU
GCSE OCR Computing A451 The CPU Computing hardware 1.
Computers’ Basic Organization
The CPU, RISC and CISC Component 1.
Chapter 10: Computer systems (1)
Chapter 2.1 CPU.
Stored program concept
Edexcel GCSE Computer Science Topic 15 - The Processor (CPU)
3.3.3 Computer architectures
The Central Processing Unit
THE CPU i Bytes 1.1.
Teaching Computing to GCSE
Types of Computers Mainframe/Server
CPU Key Revision Points.
1.1 The Characteristics of Contemporary Processors, Input, Output and Storage Devices Types of Processors.
1-2 – Central Processing Unit
GCSE OCR 1 The CPU Computer Science J276 Unit 1
GCSE Computing - The CPU
WJEC GCSE Computer Science
Objectives Describe common CPU components and their function: ALU Arithmetic Logic Unit), CU (Control Unit), Cache Explain the function of the CPU as.
Presentation transcript:

Stored Programs In today’s lesson, we will look at: what we mean by a stored program computer how computers store and run programs what we mean by the term instruction set other factors affecting the speed at which computers run programs how we can measure the performance of a computer

Stored Programs One of the things that makes a computer different from a device such as a calculator or a digital watch is that it can run many different programs There is some debate about which was the first computer because early examples, such as Colossus, could only perform one task (or set of similar tasks) Devices such as calculators have their programs “hard- wired” into the circuitry so they cannot be changed. Colossus was programmed by setting switches, so the program could be changed, but not easily. Modern computers have programs that are stored in their memory (RAM), so they are easier to change - the computer can even create or change the program itself.

Stored Programs Charles Babbage and Ada Lovelace worked on the idea of a universal machine that could run different programs, called the Analytical Engine, in the Victorian era, but it turned out to be too complex for the engineers of the day to build Alan Turing created the Turing Machine, which was a theoretical computing machine with separate data and instructions John von Neumann came up with the practical Von Neumann Architecture that stored-program computers (such as your PC) still use today A stored-program computer keeps its program instructions, as well as the data, in read-write RAM

Hardware The processing hardware, the Central Processing Unit (CPU) contains the following components: Arithmetic Logic Unit (ALU) to perform calculations address bus to identify memory locations data bus to transfer data to and from the memory cache is small area of high-speed memory to store frequently- used data and speed-up processing registers are for temporary storage, e.g. for numbers used in calculations (some people refer to the cache and registers together as the immediate access store) Control unit (with a clock) to time and synchronise all of the operations Program Counter (PC) to store the address of the next instruction

Buses We’ve looked at primary storage (i.e. RAM) in a previous lesson – it is volatile read-write memory A bus is used to transfer data or instructions to and from the memory – the number of bits that can be transferred in one go varies according to the bus width The bus width determines the computer’s word length – i.e. the word is the number of bits that can be transferred in one go For example, if you have a 64-bit computer, it means it has a 64-bit word – i.e. 64 bits can be transferred at once. Word lengths are usually a power of 2, e.g. 8, 16, 32, 64, 128, etc. (i.e. 2 3, 2 4, 2 5, 2 6, 2 7, etc.)

Types of Bus RAM is “addressed”, which means that all of the information is stored in numbered locations Computers with the von Neumann architecture have one address bus to tell the computer which location they want to use, and one data bus to fetch or store the data. These buses are used for both the program instructions and the data. The number of memory locations that can be addressed is limited by the bus width – e.g. a 64-bit computer can access more RAM than a 32-bit computer More advanced computers can have separate sets of address and data buses for instructions and data – this means that they can load the two things at the same time to reduce the “von Neumann bottleneck”.

Instruction Sets Just like a programming language (such as Python or BASIC) has a set of instructions, so does a CPU The number of instructions that the CPU can perform is called the instruction set A complex instruction set computer (CISC) has a large instruction set and can perform lots of different tasks each with a single instruction A reduced instruction set computer (RISC) understands fewer instructions, so might need several instructions to perform the same task RISC has a number of benefits – the processors are smaller and simpler, use less power, and can be faster

Fetch-Execute Cycle This is also sometimes known as the fetch-decode- execute cycle: information is fetched from an address in the RAM (given by a register called the program counter or PC) through the data bus – this can be data or an instruction the value returned from the memory is decoded so that the CPU knows what to do with it. It might also be necessary to prepare areas of memory ready for results, etc. finally, the instruction is executed – i.e. the operation is performed and any results are places in registers The whole procedure then begins again. Fetch Decode Execute

Clock Speed The speed of the fetch execute cycle is controlled by the system clock The clock speed is measured in Hertz (Hz). 1Hz means one clock cycle (i.e. instruction) per second, 2Hz means two clock cycles per second, etc. Hertz is really the SI unit for frequency, e.g. 50Hz means “50 times per second” Standard scientific prefixes can be used, e.g. 1kHz = 1 000, 1MHz = , and 1GHz = clock cycles per second Clock frequency by itself isn’t a good measure of processor speed because not all processors can get the same amount done in one clock cycle or instruction

Speed of Execution Factors affecting how fast a computer runs include: the clock speed – if everything else is the same, a faster clock makes for a faster computer the number of cores – a dual- or quad-core processor can do two or four times as much (if programmed to use them correctly) bus width – an 8-bit computer can only deal with numbers up to 255 in a single instruction, whereas 16-bits allow up to 65,535, 32-bit up to 4,294,967,296, etc.

Speed of Execution How can a RISC processor be faster? if a RISC device has fewer instructions, some complex operations will require multiple steps – you’d think that would be slower However, because the simpler instructions can all be done in one clock cycle, the processor can fetch the next instruction while it’s executing the current one This gives you the same benefits as a production line in a factory, and is called pipelining

Other Measures of Speed Instead of clock speed, you could also measure: MIPS (Million Instructions Per Second) – this is a measure of the actual number of instructions completed, rather than the number of clock cycles The problem with counting instructions is that an instruction doesn’t always do something useful FLOPS (FLoating point Operations Per Second) is a more “real world” measure of performance, because it measures the sort of operations that are done in practice, some of which might require more than one instruction.