Unit 1 Computer Systems Topic 2 – Computer Stucture

Slides:



Advertisements
Similar presentations
Copyright © 2006 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill Technology Education Copyright © 2006 by The McGraw-Hill Companies,
Advertisements

Chapter 4 The Central Processing Unit
Components of a computer system
The CPU The Central Presentation Unit What is the CPU?
Computer Structure.
Computer Memory and Data Transfer
Chapter 5 Computing Components. 2 Chapter Goals Read an ad for a computer and understand the jargon List the components and their function in a von Neumann.
1 Microprocessor History. 2 The date is the year that the processor was first introduced. Many processors are re- introduced at higher clock speeds for.
Processor System Architecture
GCSE Computing - The CPU
Computer Applications NCBS Stage 1. The Central Processing UnitSlide 2Computer Applications Stage 1 Course Content and Assessment Practical – 60% (2 Hrs.
COMPUTER MEMORY Modern computers use semiconductor memory It is made up of thousands of circuits (paths) for electrical currents on a single silicon chip.
CPU Describe the purpose of the CPU
Measuring Performance
Computer Systems Computer Performance.
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.
Instructions Slides 3,4,5 are general questions that you should be able to answer. Use slides 6-27 to answer the questions. Write your answers in a separate.
Chapter 4  Converts data into information  Control center  Set of electronic circuitry that executes stored program instructions  Two parts ◦ Control.
Chapter 3 Computer Hard ware
Higher Computing Computer Systems S. McCrossan 1 Higher Grade Computing Studies 2. Computer Structure Computer Structure The traditional diagram of a computer...
Lecture#14. Last Lecture Summary Memory Address, size What memory stores OS, Application programs, Data, Instructions Types of Memory Non Volatile and.
Internal hardware and external components of a computer Three-box Model  Processor The brain of the system Executes programs A big finite state machine.
Higher Computing Computer Structure.
Higher Grade Computing
Higher Computing Computer structure. What we need to know! Detailed description of the purpose of the ALU and control unitDetailed description of the.
Computer Processing of Data
Introduction to Computing: Lecture 4
 Design model for a computer  Named after John von Neuman  Instructions that tell the computer what to do are stored in memory  Stored program Memory.
Lesson 2 — How Does A Computer Process Data?
Types of Computers Mainframe/Server Two Dual-Core Intel ® Xeon ® Processors 5140 Multi user access Large amount of RAM ( 48GB) and Backing Storage Desktop.
Marr CollegeHigher ComputingSlide 1 Part 2: Computer Structure – 6 hours Higher Computing: COMPUTER SYSTEMS.
Course ILT Basics of information technology Unit objectives Define “information technology” (IT), distinguish between hardware and software, and identify.
Computers Are Your Future Eleventh Edition Chapter 2: Inside the System Unit Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall1.
The Central Processing Unit: What Goes on Inside the Computer
Intermediate 2 Computing Computer structure. Organisation of a simple computer.
Components of a Computer Prepared by: Mrs. McCallum-Rodney.
Structure of a computer system
COMPUTER Structure Higher Unit 1 – Computer Systems St Kentigern’s Academy.
Computer Organization - 1. INPUT PROCESS OUTPUT List different input devices Compare the use of voice recognition as opposed to the entry of data via.
SKILL AREA: 1.2 MAIN ELEMENTS OF A PERSONAL COMPUTER.
Computer Hardware A computer is made of internal components Central Processor Unit Internal External and external components.
Computer Structure & Architecture 7b - CPU & Buses.
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.
COMPUTER Structure Int 2 Unit 1 – Computer Systems St Kentigern’s Academy.
Academic PowerPoint Computer System – Architecture.
Computer operation is of how the different parts of a computer system work together to perform a task.
Memory The term memory is referred to computer’s main memory, or RAM (Random Access Memory). RAM is the location where data and programs are stored (temporarily),
 A computer is an electronic device that receives data (input), processes data, stores data, and produces a result (output).  It performs only three.
CS 1410 Intro to Computer Tecnology Computer Hardware1.
Lecture # 10 Processors Microcomputer Processors.
Computer Structure. We will look at:  Four Box diagram  CPU  Memory  Registers and their role  Processing speed.
Information Technology (IT). Information Technology – technology used to create, store, exchange, and use information in its various forms (business data,
Chapter 2 content Basic organization of computer What is motherboard
Computer Systems Nat 4/5 Computing Science Computer Structure:
Computer Hardware What is a CPU.
CPU Lesson 2.
GCSE Computing - The CPU
Systems Architecture Keywords Fetch Execute Cycle
Discovering Computers 2011: Living in a Digital World Chapter 4
Chapter 7.2 Computer Architecture
The Central Processing Unit
Introduction of microprocessor
Teaching Computing to GCSE
Types of Computers Mainframe/Server
Components of a CPU AS Computing - F451.
MICROPROCESSOR MEMORY ORGANIZATION
2.C Memory GCSE Computing Langley Park School for Boys.
A451: Computer Systems and Programming
GCSE Computing - The CPU
Computer Science. The CPU The CPU is made up of 3 main parts : Cache ALU Control Unit.
Presentation transcript:

Unit 1 Computer Systems Topic 2 – Computer Stucture COMPUTING (Higher) Unit 1 Computer Systems Topic 2 – Computer Stucture

CATEGORIES OF COMPUTERS Systems Booklet - Pages 10-12 Computers are normally classified into these categories: Mainframe - A high-level computer designed for the most intensive computational tasks. Desktop Computer - Sometimes known as a personal computer, this is a compact system that can fit on your desk at home, work, or school. Laptop Computer — A computer system designed to be portable, but can still as powerful as desktop systems.

Palmtop Computer — A pocket sized computer, tend to run applications that are useful to individuals, eg diary, address book, calculator, etc. Embedded Computer — Hardware and software to do a specific function, e.g. in a washing machine. Always part of a larger system, and works in real-time Networked Computer - A computer (usually a micro) that has access to a network. Networked computers have their own processor and memory and have access to a file server for programs and data. There are 2 main types of network: Local Area Networks (LAN) and Wide Area Networks (WAN). Desktop, Laptop, Palmtop and Networked Computers can be classified as types of microcomputers.

Processing Power The clock speed of the processor is the main indicator of the power of the processor. It is measured in MHz (Megahertz) or GHz (Gigahertz). 1 Megahertz is one million clock pulses per second. 1 Gigahertz is one thousand million clock pulses per second

Computer Organisation Systems Booklet - Pages 14-18 Figure 1: Computer Block Diagram 1 PROCESSOR OUTPUT INPUT MEMORY BACKING STORE

Table 1: Common Devices INPUT BACKING STORAGE OUTPUT Keyboard Hard Disc Monitor Mouse Floppy Disc Printer Joystick Tape Speakers Scanner CD - ROM Plotter Light Pen Optical Disc Motor (Robot)

Figure 2: Computer Block Diagram 2 PROCESSOR INPUT OUTPUT ROM RAM MEMORY BACKING STORE

RAM ROM. Computer Memory Two types of internal (immediate access) memory exist: RAM ROM.

RAM – Random Access Memory Random Access Memory is the working area of the computer and is used to store programs and data currently being used. Has same access time for all locations. Volatile – loses contents on power off. There are2 types of RAM (Static and Dynamic) Static – holds contents as long as there is power. Dynamic – has to be refreshed (every 2 ms). Each memory location has a unique address.

ROM – Read Only Memory ROM is a permanent area of storage for data and programs. These chips are 'hard-wired' and cannot be altered by software. Contents are permanent or non-volatile. Software & data fixed into ROM at manufacture. Operating systems and specialised ROMs (e.g. cameras and CD players etc.)

Programmable Read Only Memory (PROM) Sometimes special ROM’s are provided for the user to program. This process requires a special hardware device and is called 'blowing' since each bit is a fusible link that becomes zero when destroyed. Such devices are called PROM’s and the process is irreversible. Erasable Programmable Read Only Memory (EPROM’S) These also exist, where the user can use Ultra Violet light to erase a ROM for reprogramming.

External Memory External memory, such as the hard disk, holds quantities of data too large to store in main memory. It is also used to keep a permanent copy of programs and data. Examples of external memory devices are: hard disk; floppy disk; zip disk; CD-R; magnetic tape; flash drive.

Buses What is a Bus? A bus is a group of parallel wires, along which data can pass in the form of electrical signals. The width of the bus determines the amount of data it can handle at any given time. What does a Bus do? Buses are used to connect computer components together. Buses can be internal, e.g. between the CPU and registers, and external, e.g. between the computer and other peripherals (printers, etc.). Buses can be dedicated to one task, or may carry data for many different tasks. Buses may also be BI-DIRECTIONAL or UNIDIRECTIONAL.

address bus data bus control bus is really like PROCESSOR PROCESSOR MEMORY address bus data bus control bus MEMORY

DIFFERENT TYPES OF BUSES. The main buses we will look at are the – Data Bus Address Bus Control Bus The DATA BUS This is a bi-directional bus that carries data between the processor and memory. All the data is in binary. The width of it will match the size of a memory location

The ADDRESS BUS This is a unidirectional bus which carries the addresses of the locations where data and instructions can either be found or stored. Each memory location has a unique identifier (address) so that the processor can locate it. Therefore, the width of the Address bus relates directly to the number of possible memory locations within memory (RAM and ROM).

Therefore… Maximum Addressable Memory = 2 Width of the address bus x Width of the data bus

If a system has a 16-line address bus and a 32-bit data bus then… For Example If a system has a 16-line address bus and a 32-bit data bus then… …the possible memory locations (addresses) in that computer are 216 (65536). Note this is just the number of locations, the amount of memory needs the data bus width as well!! Why 216? Computers work in base 2, so each line can be either 1 or 0 at any given time. This allows for 216 possible combinations of 1 and 0. We then multiply the total number of addresses by the width of the data bus… 216 x 32 = 2097152 bits /8 /1024 = 256KB

The CONTROL BUS This is a bus in name only. It is, in fact a collection of lines that are unrelated, and each one carries out a different task. The common lines in the control bus are the – Read Line - Initiates a memory read operation (after the address bus is set up) Write Line - Initiates a memory write operation (after the address bus, and data bus is set up) Reset Line - Clears all registers and starts the execution of instructions from a predefined location (similar to switch the computer off and on)

Interrupt Line - cause the processor to stop what is doing, save its current state, and then service the interrupt. Once completed, it will return the computer to its previous state. E.g. Paper Jam in printer, inform user). The processor can be set to ignore these. Non-Maskable Interrupt Line - As above, but cannot be ignored by the processor. E.g. Power failure imminent. Clock - Send a regular sequence of pulses, which are used to synchronise the processor. These are counted in MHz (million cycles per second.) Many processor events are timed to take 1 clock cycle, but more complex instructions may take 2 or 4 clock cycles to perform.

STRUCTURE OF THE CPU Systems Booklet - Page 17 A more detailed look at the Processor (CPU) shows three main components: Arithmetic and Logic Unit, Control Unit, Registers. These are connected to the rest of the computer via the buses discussed earlier.

The Arithmetic & Logic Unit (ALU) This is a key part of the processor   This is a key part of the processor It is where data is processed and manipulated. It performs arithmetic functions such as add and subtract, and logical operations such as AND, OR and NOT. The Control Unit The function of a processor is to fetch instructions from memory and carry them out. The Control Unit performs this function by fetching, interpreting, and executing each instruction in turn. It sends out control signals controlling the operation of all hardware, including I/O devices, and the CPU.

Computer Memory The Registers   The processor requires fast access to temporary storage locations for use when setting up buses and fetching instructions; therefore special areas called registers exist within the processor itself. The types and number of registers vary greatly from processor to processor but there are certain features common to all of them. (see page 17) Two registers that we will look at are: Memory Address Register (MAR) Memory Data Register (MDR)

MEMORY - READING AND WRITING The basic operations involving the Address and Data buses are – Read from Memory Write to Memory READ From Memory - Instructions are fetched, or data is read Processor (CPU) sets up the Address lines with the required address (location) Processor (CPU) activates read line on Control bus. Memory releases data (instructions) onto the Data bus.

WRITE to Memory – Data is written to memory Processor (CPU) sets up Address lines with the required address (location) Processor (CPU) sets up the Data lines with the data to be written. Processor (CPU) activates write line on Control bus. Data is written from the Data bus to the Memory location.

Stored Program Concept To run a program, the computer must first load the program from backing storage into RAM, where it is stored until required by the processor. This is called the Stored Program Concept.   The program loaded may contain hundreds of thousands, or even millions of instructions, but the processor can only execute one at a time. Therefore, it :

Fetches the instructions one at a time from memory (RAM), Places them into the processor, Decodes them, and Executes them. This cycle is repeated for every instruction. This process is called the FETCH – EXECUTE CYCLE.

The FETCH EXECUTE CYCLE

Measures of Processor Speed When we measure performance we usually mean how fast the computer carries out instructions. There are many different ways of measuring performance, the main ones are: Clock Speed Generally the faster the clock speed the faster the processor – 3.2 GHz is faster than 933 MHz. (more details later.) Mips – Millions of Instructions per Second Better comparison but beware of false claims e.g. only using the simplest & fastest instructions and different processor families. Flops – Floating Point Operations per sec. Best measure as FP operations are in every processor and provide best basis. Benchmark Tests Well defined standardised routine to test the performance of a computer. Dhrystone – tests string and frequently used functions Whetstone – test using arithmetic functions

Memory and System Performance   A common way of increasing system performance is to increase the amount of memory in the computer, but Word size, Speed of access, and Cache memory Can also all affect system performance.

Cache Memory This is a section of memory between the processor and the main memory, or the processor and disks, with a very fast access time. This means it takes less time to fetch information stored here.

Clock Speed Every processor has a clock which ticks continuously at a regular rate. This Synchronises all the components. Cycle time measured in MHz or GHz 200 MHz (megahertz) means the clock ticks 200,000,000 times a second (P1 -1995) 1.4 GHz (gigahertz) is 1,400,000,000 times a second (P4 – 2001) 2.3 – 4+ GHz (Dual/ Multi Core)

Bus Widths and System Performance The width of the data bus defines how much data can be accessed in one FETCH. (i.e. speed of access)   A computer with a 32-bit data bus will be distinctly faster than one with a 16-bit data bus BUT (because factors other than the width of the bus have to be taken into consideration) it will not be twice as fast. Most modern processors are 64 bit but some are now 128 bit.