Lecture on Central Process Unit (CPU)

Slides:



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

Categories of I/O Devices
Chapter 2 Data Manipulation Dr. Farzana Rahman Assistant Professor Department of Computer Science James Madison University 1 Some sldes are adapted from.
The Central Processing Unit: What Goes on Inside the Computer.
 2002 Prentice Hall Hardware Basics: Inside The Box Chapter 2.
INTRODUCTION OF COMPUTER
Microprocessor and Microcontroller Based Systems Instructor: Eng.Moayed N. EL Mobaied The Islamic University of Gaza Faculty of Engineering Electrical.
Introduction to Computer Systems
Computer Systems CS208. Major Components of a Computer System Processor (CPU) Runs program instructions Main Memory Storage for running programs and current.
Chapter 4  Converts data into information  Control center  Set of electronic circuitry that executes stored program instructions  Two parts ◦ Control.
CPU Registers PC Arith Logic Unit Bus Interface I/O Bridge System bus Memory bus Main Memory USB Controller Graphics Adapter Disk Controller I/O Bus Mouse.
COMPONENTS OF THE SYSTEM UNIT
How Computers Work. A computer is a machine f or the storage and processing of information. Computers consist of hardware (what you can touch) and software.
Processing Devices.
BLOCK DIAGRAM OF COMPUTER
Lesson 3 — How a Computer Processes Data
Basic Microcomputer Design. Inside the CPU Registers – storage locations Control Unit (CU) – coordinates the sequencing of steps involved in executing.
Computer Processing of Data
Introduction to Computing: Lecture 4
The Computer Systems By : Prabir Nandi Computer Instructor KV Lumding.
What is a Computer ? Computers are Electronic Machines that process (performs calculation and manipulation) Data under the control of Set of Instructions.
Unit - 1 Basic Computer Architecture P. Sugin Benzigar.
CS 1308 Computer Literacy and the Internet. Introduction  Von Neumann computer  “Naked machine”  Hardware without any helpful user-oriented features.
Software GCSE COMPUTING.
1 CS503: Operating Systems Spring 2014 Dongyan Xu Department of Computer Science Purdue University.
Chapter 1 1.  The computer system consists of: 1. Hardware: Physical Components, like the system unit,monitor,keyboard, mouse, camera, printer … etc.
2.0 Computer System.
Computer Parts. Two Basic Parts Hardware & Software.
Introduction to Computer Architecture. What is binary? We use the decimal (base 10) number system Binary is the base 2 number system Ten different numbers.
Computer Basics Terminology - Take Notes. What is a computer? well, what is the technical definition A computer is a machine that changes information.
Lesson 3 — How a Computer Processes Data Unit 1 — Computer Basics.
COMPUTER ARCHITECTURE. Recommended Text 1Computer Organization and Architecture by William Stallings 2Structured Computer Organisation Andrew S. Tanenbaum.
Intro to Computers Computer Applications. What is a Computer? Initially the term computer referred to an individual whose job it was to perform mathematical.
Introduction to Computer Architecture. What is binary? We use the decimal (base 10) number system Binary is the base 2 number system Ten different numbers.
Computer Architecture
SKILL AREA: 1.2 MAIN ELEMENTS OF A PERSONAL COMPUTER.
Aug CMSC 104, LECT-021 Machine Architecture Some material in this presentation is borrowed form Adrian Ilie From The UNIVERSITY of NORTH CAROLINA.
Computer System Internal components - The processor - Main memory - I / O controllers - Buses External components (peripherals). These include: - keyboard.
Computer Architecture Memory, Math and Logic. Basic Building Blocks Seen: – Memory – Logic & Math.
1 COMS 161 Introduction to Computing Title: Computing Basics Date: September 15, 2004 Lecture Number: 10.
Parts of the Computer System
Computer Hardware A computer is made of internal components Central Processor Unit Internal External and external components.
Copyright © 2003 Prentice Hall, IncSlides created by Bob Koziel.
CS 1308 Computer Literacy and the Internet. Objectives In this chapter, you will learn about:  The components of a computer system  Putting all the.
Computer Systems. Bits Computers represent information as patterns of bits A bit (binary digit) is either 0 or 1 –binary  “two states” true and false,
PARTS OF A COMPUTER 2 Hardware Computer Hardware is any of the physical parts of the computer you can touch. There are 4 categories: 1. Input Devices.
C HAPTER 4 OS: C OMPUTER O RGANIZATION TOPICS: The Von Neumann Architecture The CPU.
بسم الله الرحمن الرحيم MEMORY AND I/O.
Hardware Information Created by Nasih 1. Hardware  The physical components of a computer system, including any peripheral equipment such as printers,
Chapter 2 Data Manipulation © 2007 Pearson Addison-Wesley. All rights reserved.
M211 – Central Processing Unit
Von Neumann Machines. 3 The Von Neumann Architecture Model for designing and building computers, based on the following three characteristics: 1)The.
Block diagram of a computer system Basic components of a computer system using block diagrams: Cpu Memory Input and output unit Evolution of microprocessor.
IC 3 BASICS, Internet and Computing Core Certification Computing Fundamentals Lesson 2 How Does a Computer Process Data?
1 Chapter 1 Basic Structures Of Computers. Computer : Introduction A computer is an electronic machine,devised for performing calculations and controlling.
 Input - A device, such as a keyboard, used to enter information into a computer  Output - Electronic or electromechanical equipment connected to.
Introduction to Operating Systems Concepts
Sara Naheed Amjad Information Technology
A Ben Itaba Presentation
Sara Naheed Amjad Information Technology
TexPREP Summer Camp Computer Science
Introduction of microprocessor
Components of Computer
Computer Architecture
Multicultural Social Community Development Institute ( MSCDI)
Introduction to Computing
Logical Computer System
OCR GCSE (9-1) Computer Science (J276)
Presentation transcript:

Lecture on Central Process Unit (CPU)

Central Processing Unit Brain of any “processing” device What are the processing devices? Computers, cell phones, game consoles, TVs, refrigerators, … just about any electronics CPU is a conceptually simple, but a highly complex circuitry that responds to executable inputs (i.e., program instructions).

Intel Pentium 4 CPU

Main Components of CPU Control unit: Directs all program instructions. It does not actually execute instructions, but makes other parts to do so. Arithmetic logic unit: It executes all arithmetic and logical operations. Commonly known as ALU. Registers: Small memory blocks (a few kilo bytes) inside CPU to store intermediate computation results or addresses during processing Caches: Larger memory blocks (a few mega bytes) inside CPU to store data during processing

(Outlook, Safari, iTune) How Does Computer Work? Application software is written in a human readable form, normally stored in hard disk. To run application software, OS retrieves it first from hard disk, and translates it to a machine readable form. Then, OS instructs CPU how to run it. CPU interfaces with rest of computing hardware and together executes the machine readable code from OS. Computing hardware is controlled by CPU. Application Software (Outlook, Safari, iTune) Operating System (Windows, MacOS) CPU (Intel, AMD) Computing Hardware (Dell, IBM, Apple)

Computing Hardware CPU: Main controller INPUT DEVICE OUTPUT DEVICE CPU HARD DISK MEMORY MOTHERBOARD CPU: Main controller Memory: All instructions and data are entered into CPU through memory Input device: Keyboard, mouse, touch screen, etc. Output device: Display terminal, printer, speaker etc. Hard disk: Mass storage for all data, program, and information

Mother of All Boards = “Motherboard” CPU

Addressing In computer, all storage devices (memories and hard disk) are given unique addresses. Main memory is fast and can interact with CPU directly. But its size is limited (a few giga bytes) and cannot store all of the data or programs. Data or program is loaded into main memory when needed by CPU. Otherwise, it is stored in hard disk. This process is called “swapping.”

What Happens When You Turn on Computer? When you turn on the computer, the hardware starts. With the power on, the CPU starts executing instruction at certain memory location. This is the “BIOS.” The BIOS contains the start-up programs such as device detection, initialize background programs (demons), and the start of OS. Critical part of OS (i.e., part needed by all programs) is permanently loaded into the main memory. This part is called the kernel. Now the computer is ready to accept any command that the user enters.

Scheduling Queues Scheduling queues is a main functions of OS. Job queue: Set of all processes Ready queue: Set of all processes residing in main memory, ready and waiting to execute Device queue: Set of processes waiting for I/O device

Interactions with Memory CPU Memory Address Lines Data Lines Read Line Write Line

CPU Execution Cycle Obtain instruction from program storage Fetch Decode Operand Execute Result Store Next Obtain instruction from program storage Determine required actions and instruction size Locate and obtain operand data Compute result value or status Deposit results in storage for later use Determine successor instruction; can generally be combined w/ Decode

Thread Thread: Schedulable stream of controls Defined by CPU Suspend: Save register values in memory Resume: Restore registers from memory Multiple threads can execute independently They can run in parallel on multiple CPUs... Or interleaved on a single CPU Each thread must have its own control stack.

Single and Multithreaded Processes

Two Threads Sharing a CPU concept reality context switch

Speed How fast the CPU can execute instructions Limited by many factors Speed of electronic circuits in CPU Speed of memory access Speed of hard disk Efficiency of OS Efficiency of application software

Processor Speed

CPU high speed slower I/O devices

PCI Bus Peripheral Connection Interface South Bridge architecture 66 MHz, 64-bit, 512 MB/second Shared bus with arbitration

PCI Express North Bridge architecture Switched, point- to-point connection Data rate up to 4 GB/second