20 October 2015Birkbeck College, U. London1 Introduction to Computer Systems Lecturer: Steve Maybank Department of Computer Science and Information Systems.

Slides:



Advertisements
Similar presentations
29 October 2013Birkbeck College, U. London1 Introduction to Computer Systems Lecturer: Steve Maybank Department of Computer Science and Information Systems.
Advertisements

Chapter 2: Data Manipulation
The CPU The Central Presentation Unit What is the CPU?
Chapter 2 Data Manipulation Dr. Farzana Rahman Assistant Professor Department of Computer Science James Madison University 1 Some sldes are adapted from.
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.
DH2T 34 Computer Architecture 1 LO2 Lesson Two CPU and Buses.
Computer Architecture and Data Manipulation Chapter 3.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Computer Science: An Overview Tenth Edition by J. Glenn Brookshear Chapter.
Room: E-3-31 Phone: Dr Masri Ayob TK 2123 COMPUTER ORGANISATION & ARCHITECTURE Lecture 5: CPU and Memory.
Chapter 5: Computer Systems Organization Invitation to Computer Science, Java Version, Third Edition.
Chapter 0 Introduction to Computing
CSCE 121, Sec 200, 507, 508 Fall 2010 Prof. Jennifer L. Welch.
0 What is a computer?  Simply put, a computer is a sophisticated electronic calculating machine that:  Accepts input information,  Processes the information.
What’s on the Motherboard? The two main parts of the CPU are the control unit and the arithmetic logic unit. The control unit retrieves instructions from.
Computers Are Your Future Eleventh Edition Chapter 2: Inside the System Unit Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall1.
COMPONENTS OF THE SYSTEM UNIT
Computer Systems 1 Fundamentals of Computing The CPU & Von Neumann.
CS 1308 Computer Literacy and the Internet Computer Systems Organization.
D75P 34R HNC Computer Architecture 1 Week 9 The Processor, Busses and Peripherals © C Nyssen/Aberdeen College 2003 All images © C Nyssen /Aberdeen College.
CPU Computer Hardware Organization (How does the computer look from inside?) Register file ALU PC System bus Memory bus Main memory Bus interface I/O bridge.
Chapter 5: Computer Systems Organization Invitation to Computer Science, Java Version, Third Edition.
Computer Systems Organization CS 1428 Foundations of Computer Science.
Computers Are Your Future Eleventh Edition Chapter 2: Inside the System Unit Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall1.
Introduction to Computing Systems from bits & gates to C & beyond The Von Neumann Model Basic components Instruction processing.
Advanced Computer Architecture 0 Lecture # 1 Introduction by Husnain Sherazi.
6 October 2015Birkbeck College, U. London1 Introduction to Computer Systems Lecturer: Steve Maybank Department of Computer Science and Information Systems.
6 October 2015Birkbeck College, U. London1 Introduction to Computer Systems Lecturer: Steve Maybank Department of Computer Science and Information Systems.
5-1 Computer Components Consider the following ad.
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 5 Computing Components. 5-2 Chapter Goals List the components and their function in a von Neumann machine Describe the fetch-decode-execute cycle.
General Concepts of Computer Organization Overview of Microcomputer.
Chapter 2 Data Manipulation © 2007 Pearson Addison-Wesley. All rights reserved.
Computer Science 101 Computer Systems Organization.
Chapter 2 Data Manipulation. © 2005 Pearson Addison-Wesley. All rights reserved 2-2 Chapter 2: Data Manipulation 2.1 Computer Architecture 2.2 Machine.
Computer Hardware A computer is made of internal components Central Processor Unit Internal External and external components.
Computer Structure & Architecture 7b - CPU & Buses.
Dale Roberts Department of Computer and Information Science, School of Science, IUPUI CSCI N305 Information Representation: Machine Instructions.
CS 1308 Computer Literacy and the Internet. Objectives In this chapter, you will learn about:  The components of a computer system  Putting all the.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Data Manipulation Brookshear, J.G. (2012) Computer Science: an Overview.
Chapter 2 Data Manipulation © 2007 Pearson Addison-Wesley. All rights reserved.
Dale & Lewis Chapter 5 Computing components
The Computer System.
Chapter 2 Data Manipulation © 2007 Pearson Addison-Wesley. All rights reserved.
Chapter 2: Data Manipulation
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.
Chapter 2 Data Manipulation © 2007 Pearson Addison-Wesley. All rights reserved.
The Processor & its components. The CPU The brain. Performs all major calculations. Controls and manages the operations of other components of the computer.
27 October 2015 Birkbeck College, U. London1 Introduction to Computer Systems Lecturer: Steve Maybank Department of Computer Science and Information Systems.
Chapter 20 Computer Operations Computer Studies Today Chapter 20.
Information Technology INT1001 Lecture 2 1. Computers Are Your Future Tenth Edition Chapter 6: Inside the System Unit Copyright © 2009 Pearson Education,
CPU Lesson 2.
Processor/Memory Chapter 3
Edexcel GCSE Computer Science Topic 15 - The Processor (CPU)
Microprocessor and Assembly Language
Introduction to Computer Engineering
Teaching Computing to GCSE
COMS 161 Introduction to Computing
CS149D Elements of Computer Science
Chapter 5: Computer Systems Organization
GCSE OCR 1 The CPU Computer Science J276 Unit 1
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.
Introduction to Computer Engineering
Introduction to Computer Engineering
Introduction to Computer Engineering
Little work is accurate
Presentation transcript:

20 October 2015Birkbeck College, U. London1 Introduction to Computer Systems Lecturer: Steve Maybank Department of Computer Science and Information Systems Autumn 2015 Week 4b: CPU and the Machine Cycle

20 October 2015Birkbeck College, U. London2 Action of a Computer 1  Recall Tom and his boxes  Instruction: add the contents of box a and box b, put the result in box c.  The part of a computer corresponding to Tom is the central processing unit (CPU) 10 acbde f g

20 October 2015Birkbeck College, U. London3 Action of a Computer 2 Tom has to:  Read the contents 10 of box a and the contents 5 of box b.  Add together 10 and 5 to get 15.  Write 15 in box c. 10 acbde f g

20 October 2015Birkbeck College, U. London4 Summary of the Actions of the CPU  Obtain an instruction  Read data from main memory  Calculate  Write data to main memory  The CPU has its own memory for calculation

20 October 2015Brookshear, Section 2.15 Computer Architecture arithmetic/logic unit register unit central processing unit : registers bus main memory control unit

20 October 2015Brookshear, Section 2.16 Central Processing Unit Register: small amount of very fast read/write memory, e.g. enough to store one number. Arithmetic/Logic Unit: operates on data in registers, e.g. addition, subtraction. Control Unit: controls the ALU. ALU Control Unit Register Unit......

20 October 2015Brookshear, Section 2.17 Concepts Places for storing bit strings: registers, main memory Transfer of bit strings from one place to another, eg main memory->register Operations on bit strings: produce a new bit string from one or more given bit strings.

20 October 2015Brookshear, Section 2.18 Some Actions of a Computer ALU CPU registers bus main memory 1. Take a bit string from main memory and put it in a register. 2. Take a bit string from a register and put it in main memory. 3. Move a bit string from one register to another. 4. Take bit strings bi from registers Ri, i=1, 2. Interpret b1, b2 as two’s complement representations of integers, add them and put the result in the register R3. control unit

20 October 2015Brookshear, Section 2.19 Bus Wires connecting CPU to main memory. Read: CPU sends read signal and address of memory cell. Write: CPU sends write signal, address, and data to be written. Length ~15cm. Speed of light = 30cm in 1 ns. Time for CPU to access a register ~ 2.5 ns. The bus should be short.

20 October 2015Brookshear, Section Logical Structure of Main Memory List of cells addressed from 0 to 2 n -1, where n is a large integer. All cells contain the same number of bytes, e.g. 1 byte. If a register contains 16 bits then the number of cells that can be addressed using the register is at most 2 16.

20 October 2015Birkbeck College, U. London11 Memory Access Times Access Time Size CPU registers 2.5ns256 bit RAM60 ns~1 GB Hard disk15 ms2 TB Tape10min10 TB

20 October 2015Brookshear, Section Stored Program Concept The program is stored in main memory along with the data. The control unit reads both instructions and data from the main memory. This is the von Neumann architecture. Advantage: the program can be changed easily. Disadvantage: high traffic on the bus. This is the von Neumann bottleneck.

20 October 2015Brookshear, Section The Machine Cycle Fetch next instruction from memory to CPU Decode the bit pattern Execute the instruction Fetch Decode Execute

20 October 2015Brookshear, Section CPU and Main Memory in More Detail Address | Cells FF Arithmetic/ logic unit control unit Registers F 1 Program counter Instruction register Bus Main memory Central processing unit

20 October 2015Brookshear, Section Special Registers Program counter: contains the address of the next instruction to be executed. Instruction register: holds the instruction which is being executed.

20 October 2015Brookshear, Section Adding Values Stored in Memory 1.Get the first value from memory and place it in a register. 2.Get the second value from memory and place it in another register. 3.Activate the addition circuitry with the registers in 1 and 2 providing the inputs and another register to hold the result. 4.Store the result in memory. 5.Stop.

20 October 2015Brookshear, Section Counting Bits No. bits to specify a register: 4 No. bits to specify a memory cell: 8 No. instructions (eg): 13 Instruction: add the contents of two registers, put the result in a third register No. bits: at least 4+(3x4) = 16

20 October 2015Brookshear, Section System Clock Circuit generating pulses at regular intervals. The computer’s activities are in step with the pulses, e.g. 5 pulses for an addition. Current clock speeds ~ 2 GHz. (=2 pulses per nanosecond). Clock speed only a rough guide to performance, e.g. instructions per second.

20 October 2015Brookshear, Section Motherboard  Main circuit board of the PC.  Contains the central processing unit (CPU) and the bus.  Components, e.g. memory, hard drive interface, plug into the motherboard to obtain power and communicate with the CPU.

20 October 2015Birkbeck College, U. London20 Example of a Motherboard