Computer Memory and Data Transfer

Slides:



Advertisements
Similar presentations
Chapter 4 The Central Processing Unit
Advertisements

Components of a computer system
The CPU The Central Presentation Unit What is the CPU?
What is Hardware? Hardware is the physical parts of the computer system – the parts that you can touch and see. A motherboard, a CPU, a keyboard and a.
The Central Processing Unit: What Goes on Inside the Computer.
SECTION 4a Transforming Data into Information.
DH2T 34 Computer Architecture 1 LO2 Lesson Two CPU and Buses.
Computer Performance & Storage Devices Computer Technology.
2 pt 3 pt 4 pt 5pt 1 pt 2 pt 3 pt 4 pt 5 pt 1 pt 2pt 3 pt 4pt 5 pt 1pt 2pt 3 pt 4 pt 5 pt 1 pt 2 pt 3 pt 4pt 5 pt 1pt Category1 Computers Category2 CPU.
Hardware Basics: Inside the Box 2  2001 Prentice Hall2.2 Chapter Outline “There is no invention – only discovery.” Thomas J. Watson, Sr. What Computers.
The central processing unit and main memory chapter 4, Exploring the Digital Domain The Development and Basic Organization of Computers.
COMPUTER MEMORY Modern computers use semiconductor memory It is made up of thousands of circuits (paths) for electrical currents on a single silicon chip.
The CPU The Central Presentation Unit Language Levels Fetch execute cycle Processor speed.
Chapter 4  Converts data into information  Control center  Set of electronic circuitry that executes stored program instructions  Two parts ◦ Control.
Chapter 3 – Computer Hardware Computer Components – Hardware (cont.) Lecture 3.
Processing Devices.
BLOCK DIAGRAM OF COMPUTER
Lesson 3 — How a Computer Processes Data
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...
Computer Organization 1. INTRODUCTION The Second half of the twentieth century is usually known as the Age of Computers The term ‘Computer’ originates.
Chapter 4 The System Unit: Processing and Memory Prepared by : Mrs. Sara salih.
Computer Processing of Data
Introduction to Computing: Lecture 4
3 1 3 C H A P T E R Hardware: Input, Processing, and Output Devices.
Computing hardware CPU.
Chapter Two Hardware Basics: Inside the Box. ©1999 Addison Wesley Longman2.2 Chapter Outline What Computers Do A Bit About Bits The Computer’s Core: CPU.
The CPU The Central Presentation Unit Main Memory and Addresses Address bus and Address Space Data Bus Control Bus The Instructions set Mnemonics Opcodes.
 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.
MBMPowered by DeSiaMore System Unit 1. MBMPowered by DeSiaMore Definition The system unit/system cabinet is a container that houses most of the electronic.
Hardware & Software The CPU & Memory.
What is a computer ?  A computer is an electronic device that can accept data and instruction, process them or store them for later retrieval, and sometimes.
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.
Computers organization & Assembly Language Chapter 0 INTRODUCTION TO COMPUTING Basic Concepts.
The Central Processing Unit: What Goes on Inside the Computer
1Copyright © Prentice Hall 2000 The Central Processing Unit Chapter 3 What Goes on Inside the Computer.
Advanced Computer Architecture 0 Lecture # 1 Introduction by Husnain Sherazi.
GCSE Information Technology Computer Systems 2 Hardware is the name that is given to any part of a computer that you can actually touch. An individual.
IT Groundwork ICS3UC - Unit 1 Hardware. Overview of Computer System.
Lesson 3 — How a Computer Processes Data Unit 1 — Computer Basics.
The Central Processing Unit (CPU) and the Machine Cycle.
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 Organization & Assembly Language © by DR. M. Amer.
Computer Architecture Memory, Math and Logic. Basic Building Blocks Seen: – Memory – Logic & Math.
CSCI-100 Introduction to Computing Hardware Part I.
1 Course Title: IT IN BUSINESS Course Instructor: ADEEL ANJUM Chapter No: 04 1 BY ADEEL ANJUM (MCS, CCNA,WEB DEVELOPER)
Computer Hardware A computer is made of internal components Central Processor Unit Internal External and external components.
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,
Computer operation is of how the different parts of a computer system work together to perform a task.
Central Processing Unit (CPU) MATTHEW BOWEN. Function  The function of the CPU is to execute all of the commands and calculations or “processes” that.
 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.
BY MANJU Lesson 21 Computer Hardware. System Components A computer system requires many components to do its job: Input: Device to input data so it can.
24/06/20161 Hardware Processor components & ROM. 224/06/2016 Learning Objectives Describe the function and purpose of the control unit, memory unit and.
Information Technology (IT). Information Technology – technology used to create, store, exchange, and use information in its various forms (business data,
Basic Computer Fundamentals
Computer Architecture and Number Systems
CPU Lesson 2.
APPENDIX A Hardware and Software Basics
The Central Processing Unit
Computer Architecture
Introduction to Computers
Introduction to Computers
Introduction to Computers
Chapter 2: Computer Hardware
Computer Performance & Storage Devices
Computer components.
Presentation transcript:

Computer Memory and Data Transfer Computer Studies Computer Memory and Data Transfer

Computer Studies Hardware A General Overview What is a computer? A computer is a machine that processes data and produces information. How does it function? Before it can do anything, programs must be installed to give the computer the instructions on how to process the information. This is done using an input device. What happens then? When the computer is finished processing, it produces results. This is shown through an output device.

Computer Hardware CPU OUTPUT Central Memory Backing Storage INPUT

Computer Studies Hardware - The Basics

Computer Studies Organisation of Data KILOBYTE 1024 bytes The main memory of a computer is used to store programs and data. The memory size is measured in kilobytes, megabytes, or gigabytes. KILOBYTE 1024 bytes MEGABYTE 1024 x 1024 bytes GIGABYTES 1024 x 1024 x 1024 bytes Different types of Memory ROM Once programmed it cannot be erased EPROM Can be erased by exposure to UV light. EAPROM Can be partially programmed or ‘flashed’ which changes the original coding.

Computer Studies Organisation of Data Data is organised in a number of different units of storage. BIT the smallest unit of storage can store a 0 or 1 BYTE a collection of 8 bits NIBBLE a group of 4 bits or half the length of a byte WORD a group of bits stored by the computer as a single unit – usually multiples of 8 bits. A 16 bit computer will work with words 16 bits long. Most modern computers will work with words 32 bits long or higher.

Computer Studies Hardware – data organisation Word Length A group of bits that can be transferred and manipulated as a single unit by the CPU. The amount of bits the CPU can send or receive at once. An 8 bit CPU will send or receive 8 bits of data. A 16 bit CPU will send or receive 16 bits of data. A computer with an 800 mhtz which has a word length of 2 bytes (16 bit) is twice as fast as the same processor with 8 bit data transfer rate so it performs functions in half the time.

Computer Studies Hardware The Data and Address Bus - A series of copper strips that act as highways along which data travels between the CPU, Memory, and peripherals. Anything that requires the transfer of data is connected to the bus. It is the method by which information moves across the computer system: Data Bus: It’s width determines the amount of information that can be transferred. Address Bus: Travels with the data along the bus.

Computer Studies Hardware – General Overview The Data and Address Bus act like a letter. The address part is the envelope, and the data section consists of the letter. The address bus helps the computer find the correct location – and deliver the information inside the envelope. They travel together.

Computer Studies The Basic Computer Central Memory - WHAT DOES RAM DO? Central Memory - Made up of two main parts: Random Access Memory Read Only Memory RAM It is the working ‘desk’ of the computer. Programs run in RAM. Used for temporary storage of Data and programs. It is volatile – information is lost when power is lost. Because of this backing storage is needed.

Computer Studies The Basic Computer Central Memory - WHAT DOES ROM DO? Made up of two main parts: Random Access Memory Read Only Memory WHAT DOES ROM DO? ROM Stores data required permanently. Programs run in RAM. Instructions are normally encoded during the manufacture of the chip. The contents cannot be changed. Because of this backing the Rom normally contains the booting instructions needed to start the computer.

Computer Studies The Basic Computer Storage WHAT DOES BACKING STORAGE DO? Backing Storage Much higher Capacity than RAM or ROM. Stores data for a permanent period. Different forms such as: Hard Disks Magnetic Tape Floppy Disks CD Roms.

Computer Studies Hardware – The CPU Machine Code - Assembly Language The CPU only understands machine code – binary digits – a series of 0’s and 1’s. An ‘instruction set’ is a group of instructions understood by the CPU. Different generations of CPU’s have their own instruction sets. Assembly Language A separate programming language called ‘assembly language’ was created which is easier to understand. These are called ‘low level languages. Programmers need to learn these languages before they can program a computer. Uses abbreviated words to give the computer commands - Mnemonics

Computer Studies Hardware - The CPU CPU - Made up of two main parts: Arithmetic Logic Unit Control Unit ALU Performs mathematical calculations CU Manages and controls all movements to and from all peripherals to the CPU

Computer Studies Hardware - Speed The CPU Speed Depends on the internal clock of the CPU? Sometimes referred to as ‘clock speed’ Measured in MHz or MIPS (millions of instructions per second). Hertz is one cycle per second MHz is one million cycles per second (megahertz) MIPs are millions of instructions per second Today’s computers operate at millions of cycles per second (e.g.. Pentium IV – 266) There are other factors that effect the computer’s speed.

Computer Studies Hardware - Speed The Cache A type of very fast Memory It can be part of the CPU or it can be external – e.g.. Placed on the motherboard near the CPU. Used to carry out calculations and repetitive actions. These are then passed back to the CPU. Cache allows the CPU to perform other functions at the same time. Different sizes of cache: 128k, 256k, 512k.

Computer Studies Hardware - The CPU Control Unit - The manager of the computer. It’s primary functions are: Carry out the instructions stored in memory Contains the Instruction register Stores a copy of the current instruction that is being processed. Program counter Stores the location of the next instruction to be executed.

Computer Studies Hardware Arithmetic Unit - Two main sections: The Accumulator: Stores the current results of a calculation The Shift Register: Moves it’s contents one or more positions to the right or left in order to carry out arithmetic operations.

Computer Studies Hardware – The CPU Arithmetic Unit - The calculator of the computer. It’s primary functions are: Carries out the instructions that require mathematical calculations Carries out Mathematical Functions: Addition, Subtraction, Multiplication and Division Greater than>, Less than<, Equal to= Greater than or equal to>=, Less than or equal to<=, Not equal to<>, The three logical Functions: NOT AND OR

Hardware Block Diagram

Computer Studies Fetch Execute Cycle A) Set the value of the program to the address of the 1st instruction. B) Fetch the instruction from the location specified by the program counter. C) Store a copy of this instruction in the instruction register. D) Increment the program counter by 1. E) EXECUTE the instruction: Fetch any data required by the instruction Place it in storage locations within the ALU called Data Registers. Activate the correct circuits for the instruction to be carried out. Move any results from the data registers back to main memory. F) Repeat process from step B.

Computer Studies The Fetch / Execute Cycle

Computer Studies Sample Machine / Assembly (Programming) Code 0000 END Stop the Execution of a program 0001 ADD Add the contents of the memory location to the accumulator. 0010 SUB Subtract the contents of the memory location to the accumulator 0011 MULT Multiply the contents of the ML to the accumulator 0100 DIV Divide the contents of the ML into the accumulator 0101 LDA Copy the contents of the ML into the accumulator 0110 STO Copy the contents of the Accumulator to the ML 0111 IN Input from Input Unit to the ML 1000 OUT Output Contents of the ML to the Output Unit 1001 JMP Transfer control to the Instruction in a Named Location. 1010 JNZ Jump (skip) if contents of the accumulator is not zero

Computer Studies A simple program to add two numbers input from the keyboard 100 IN Accept a number from the KB and store it in ML 100 101 IN Accept a number from the KB and store it in ML 101 100 LDA Load the number stored in ML 100 in to the accumulator 101 ADD Add the number stored in ML 101 into the accumulator 102 STO Store the value currently in the accumulator into ML 102 102 OUT Output the value stored in ML 102 into an output device

Computer Studies A simple program to add two numbers input from the keyboard 100 IN Accept a number from the KB and store it in ML 100 101 IN Accept a number from the KB and store it in ML 101 100 LDA Load the number stored in ML 100 in to the accumulator 101 ADD Add the number stored in ML 101 into the accumulator 102 STO Store the value currently in the accumulator into ML 102 102 OUT Output the value stored in ML 102 into an output device

Computer Studies Peripherals Input and Output devices The computer receives instructions from the input peripherals. Displays results on the output peripherals. Holds information on secondary storage peripherals.

Computer Studies Peripherals Input Devices Keyboard Mouse Light Pen Digital Camera Digitizing Tablet Bar Code Reader

Computer Studies Peripherals Input Devices Speech Reader Magnetic Ink Character Reader Hand Held Terminal Touch Screen Optical Character Reader (OCR) Scanner

Output Peripherals Soft copy- Visual (monitor) or spoken (speakers) Hard copy – computer output on a tangible medium such as paper