Unit 2.3 Computing Hardware Memory

Similar documents
CSCA0201 FUNDAMENTALS OF COMPUTING. Chapter 5 Storage Devices

Computers. Hardware. The Central Processing Unit (CPU) CMPT 125: Lecture 1: Understanding the Computer

Tech Application Chapter 3 STUDY GUIDE

Logical Operations. Control Unit. Contents. Arithmetic Operations. Objectives. The Central Processing Unit: Arithmetic / Logic Unit.

Chapter 6. Inside the System Unit. What You Will Learn... Computers Are Your Future. What You Will Learn... Describing Hardware Performance

Chapter 1 Computer System Overview

McGraw-Hill Technology Education McGraw-Hill Technology Education

Chapter 8 Memory Units

Chapter 3: Computer Hardware Components: CPU, Memory, and I/O

Primary Memory. Input Units CPU (Central Processing Unit)

Module 2. Embedded Processors and Memory. Version 2 EE IIT, Kharagpur 1

CSCA0102 IT & Business Applications. Foundation in Business Information Technology School of Engineering & Computing Sciences FTMS College Global

A+ Guide to Managing and Maintaining Your PC, 7e. Chapter 1 Introducing Hardware

CHAPTER 2: HARDWARE BASICS: INSIDE THE BOX

Main Memory & Backing Store. Main memory backing storage devices

Management Challenge. Managing Hardware Assets. Central Processing Unit. What is a Computer System?

ADVANCED PROCESSOR ARCHITECTURES AND MEMORY ORGANISATION Lesson-17: Memory organisation, and types of memory

Unit A451: Computer systems and programming. Section 2: Computing Hardware 1/5: Central Processing Unit

Chapter 2: Computer-System Structures. Computer System Operation Storage Structure Storage Hierarchy Hardware Protection General System Architecture

The Central Processing Unit:

Chapter 4 System Unit Components. Discovering Computers Your Interactive Guide to the Digital World

Block diagram of typical laptop/desktop

Chapter 2 Basic Structure of Computers. Jin-Fu Li Department of Electrical Engineering National Central University Jungli, Taiwan

Chapter 1. The largest computers, used mainly for research, are called a. microcomputers. b. maxicomputers. c. supercomputers. d. mainframe computers.

Candidates should be able to: (i) describe the purpose of RAM in a computer system

Discovering Computers Living in a Digital World

1.1 Electronic Computers Then and Now

Computer Systems Structure Main Memory Organization

COMPUTER BASICS. Seema Sirpal Delhi University Computer Centre

Computer Basics: Chapters 1 & 2

Random Access Memory (RAM) Types of RAM. RAM Random Access Memory Jamie Tees SDRAM. Micro-DIMM SO-DIMM

Slide Set 8. for ENCM 369 Winter 2015 Lecture Section 01. Steve Norman, PhD, PEng

Basic Concepts of Information Technology (IT)

SDRAM and DRAM Memory Systems Overview

CS 6290 I/O and Storage. Milos Prvulovic

MULTIPLE CHOICE FREE RESPONSE QUESTIONS

MICROPROCESSOR AND MICROCOMPUTER BASICS

CHAPTER 7: The CPU and Memory

MICROPROCESSOR. Exclusive for IACE Students iacehyd.blogspot.in Ph: /422 Page 1

Trabajo Memorias flash

What's in a computer?

Lesson Objectives. To provide a grand tour of the major operating systems components To provide coverage of basic computer system organization

Writing Assignment #2 due Today (5:00pm) - Post on your CSC101 webpage - Ask if you have questions! Lab #2 Today. Quiz #1 Tomorrow (Lectures 1-7)

Fall Lecture 1. Operating Systems: Configuration & Use CIS345. Introduction to Operating Systems. Mostafa Z. Ali. mzali@just.edu.

Windows Server Performance Monitoring

Computer Performance. Topic 3. Contents. Prerequisite knowledge Before studying this topic you should be able to:

what operations can it perform? how does it perform them? on what kind of data? where are instructions and data stored?

1 PERSONAL COMPUTERS

With respect to the way of data access we can classify memories as:

Embedded Operating Systems in a Point of Sale Environment. White Paper

Computer Systems Structure Input/Output

LLamasoft K2 Enterprise 8.1 System Requirements

Understanding Digital Components

Introduction Disks RAID Tertiary storage. Mass Storage. CMSC 412, University of Maryland. Guest lecturer: David Hovemeyer.

Tested product: Auslogics BoostSpeed

Distribution One Server Requirements

How To Store Data On A Computer (For A Computer)

Types Of Storage Device

Machine Architecture and Number Systems. Major Computer Components. Schematic Diagram of a Computer. The CPU. The Bus. Main Memory.

Hardware: Input, Processing, and Output Devices. A PC in Every Home. Assembling a Computer System

Why Computers Are Getting Slower (and what we can do about it) Rik van Riel Sr. Software Engineer, Red Hat

Fastboot Techniques for x86 Architectures. Marcus Bortel Field Application Engineer QNX Software Systems

Update on filesystems for flash storage

Physical Data Organization

TYPES OF COMPUTERS AND THEIR PARTS MULTIPLE CHOICE QUESTIONS

R&S FSWP Phase Noise Analyzer Instrument Security Procedures

Computer-System Architecture

File System Management

R&S FPS Signal and Spectrum Analyzer Instrument Security Procedures

Hard Disk Drive vs. Kingston SSDNow V+ 200 Series 240GB: Comparative Test

Secondary Storage. Any modern computer system will incorporate (at least) two levels of storage: magnetic disk/optical devices/tape systems

Communicating with devices

Chap-02, Hardware and Software. Hardware Model

Price/performance Modern Memory Hierarchy

Chapter 8. Secondary Storage. McGraw-Hill/Irwin. Copyright 2008 by The McGraw-Hill Companies, Inc. All rights reserved.

New Mexico Broadband Program. Basic Computer Skills. Module 1 Types of Personal Computers Computer Hardware and Software

Handout 17. by Dr Sheikh Sharif Iqbal. Memory Unit and Read Only Memories

Introduction to Information System Layers and Hardware. Introduction to Information System Components Chapter 1 Part 1 of 4 CA M S Mehta, FCA

Chapter 3 Storage. 15 th Edition Understanding Computers Today and Tomorrow Comprehensive. Deborah Morley Charles S. Parker

Industry First X86-based Single Board Computer JaguarBoard Released

Homework # 2. Solutions. 4.1 What are the differences among sequential access, direct access, and random access?

RAM & ROM Based Digital Design. ECE 152A Winter 2012

Central Processing Unit

Programming Logic controllers

About Parallels Desktop 10 for Mac

CHAPTER 4 MARIE: An Introduction to a Simple Computer

File Systems for Flash Memories. Marcela Zuluaga Sebastian Isaza Dante Rodriguez

IXIUM. ixium Silk Spy Tie. User Manual. Contents

GPUs for Scientific Computing

Nasir Memon Polytechnic Institute of NYU

Solid State Drive Architecture

1. Computer System Structure and Components

Data Management for Portable Media Players

Desktop Publishing 5N0785 Learning Outcome 2 Monaghan Institute Level 5 Module

University of Dublin Trinity College. Storage Hardware.

Technologies Supporting Evolution of SSDs

Outline. CS 245: Database System Principles. Notes 02: Hardware. Hardware DBMS Data Storage

Overview of MIS Professor Merrill Warkentin

Chapter 3: Operating-System Structures. System Components Operating System Services System Calls System Programs System Structure Virtual Machines

Transcription:

Unit 2.3 Computing Hardware Memory Candidates should be able to: a. Describe the difference between ROM and RAM b. Explain the need for ROM in a computer system c. Describe the purpose of RAM in a computer system d. Explain how the amount of RAM in a PC affects its performance e. Explain the need for virtual memory f. Describe cache memory g. Describe flash memory h. Discuss how changes in memory technologies are leading to innovative computer designs Differences Between ROM and RAM In both types of memory, individual electronic switches are arranged in blocks (usually of 8, making 1 byte of memory) and binary numbers are stored as a pattern of switch positions. The differences between Random Access Memory (RAM) and Read Only Memory (ROM) are summarised below: RAM The contents of RAM can be altered so a computer can both read from and write to memory addresses in RAM. RAM is described as volatile meaning that if the power is switched off or the battery removed then the contents will be lost. ROM The contents of ROM cannot be altered so a computer can only read from memory addresses in ROM. ROM is described as non-volatile meaning that if the power is switched off or the battery removed then the contents are not lost. 1

Why is ROM needed in a computer system? ROM is needed for devices where programs or data must not be lost when the power is turned off or batteries are removed etc. An example would be the number of miles a car has driven, or the contacts stored in your phone. Embedded computers such as those in microprocessor controlled devices use ROM to store the software to control the hardware, as well as data such as cooking/washing times etc. A typical computer has a special ROM called the BIOS (Basic Input/Output System) chip which permanently stores the software needed to start computer hardware such as the hard drive and possibly load an operating system which then takes over. Why is RAM needed in a computer system? When a personal computer is in use the following are copied into RAM from the backing storage: o The Operating System (OS) o All the other programs that are running o Any data files that are in use. RAM is needed for this task because it would be far too slow for the CPU to access this data from the secondary storage directly. Any changes to files need to be saved before the computer system is switched off by copying the changed data to the secondary storage. How does the amount of RAM affect the performance of a PC? A modern computer might have between 1GB and 4GB or more of RAM installed and this is easily upgraded by adding more. If the amount of RAM is increased then a computer can run more programs simultaneously, or process larger files, without being slowed down by having to use virtual memory. SUMMARY: The more RAM installed in a personal computer, the higher the performance. 2

What is virtual memory and why is it needed? Because there is only a limited amount of RAM in a computer it is possible for it to run low if too many programs are running at one time or too many large files have been loaded. However, at any one time only some blocks of the data in RAM are actively being used so it is possible for the OS to copy blocks of inactive data from RAM to the hard drive and copy active blocks of data into RAM to be accessed by the CPU. To the CPU, it therefore appears that all the programs are running completely from RAM so each program behaves as if it has as much RAM as it needs, hence the term virtual memory. This solution is cheap but does have its limitations... Because the hard drive is so much slower than RAM, this swapping of inactive and active data blocks will cause a slight delay as the computer switches tasks. If a computer is very low on RAM then it will slow down dramatically because too much time will be spent swapping blocks of data between real and virtual memory. The area of the hard disk that acts as the virtual memory is called a page file and the size can set using the OS. It is usually set so the minimum is around 1.5 times and the maximum is around twice the size of the RAM. SUMMARY: Virtual memory is memory that exists on the secondary storage but to a program it appears as if the whole program is loaded and running from RAM. What is flash memory? Flash memory is a special type of RAM that, unlike normal RAM, is non-volatile (it does not need a power supply to preserve the memory contents). Flash memory cannot however replace RAM in a computer as the read/write speeds are too slow. Flash memory can be described as a solid state storage device because the contents are non-volatile and there are no moving parts. Typical storage sizes range from 1GB to 16GB and higher. Examples of flash memory in use: o Compact Flash and Secure Digital (SD) memory cards in digital cameras. o Mini and Micro SD cards in smart phones. o Memory cards for video game consoles. o USB memory sticks. SUMMARY: Flash memory combines the permanence of ROM with the flexibility of RAM. 3

What is cache memory? Cache memory is a small amount of very fast memory that is built into the CPU. Rather than access instructions and data from RAM one at a time, whole blocks of instructions and data that are in use by the CPU are copied into cache memory, along with the associated memory addresses. If the CPU needs to access a memory address it first checks the cache memory to see if there is a match. If there is then it accesses the contents of the copy instead of the original stored in RAM. When a block of data or instructions in cache memory is no longer being used by the CPU it is either deleted, or copied back to RAM if any changes have been made. Without cache memory the CPU would waste clock cycles waiting while data and instructions were exchanged with the much slower RAM. Many CPU designs have two levels of cache memory, the fastest (L1) is divided into a data cache and an instruction cache. The second (L2) cache is slightly slower and sits between the L1 cache and RAM. Typical cache memory sizes range from 256KB to 4MB. SUMMARY: Cache memory is very fast memory that is built into the CPU and speeds up a computer by allowing the CPU to access instructions and exchange data with RAM more efficiently by temporarily storing frequently used data. 4

What are registers? Registers are small but extremely fast memory locations built into the CPU which are used as temporary stores for instructions and data while instructions are being processed. Examples of registers: The accumulator, a register in which intermediate arithmetic and logic results are stored as calculations (addition, multiplication, shift, etc.) are carried out. The program counter, a register that stores the address of the instruction being executed. After the instruction is completed it is either o incremented by the number of bits that make up an instruction, so the next sequential instruction can be accessed. o set to the memory location of a non-sequential instruction to allow programs to carry out iteration loops and conditional program execution rather than just stepping through the instructions in sequence. The instruction register which stores the instruction currently being executed. Without such registers it would be necessary to use cache memory or even RAM to store such temporary data which would be impractically slow. A typical register size might be 32 or 64 bits. 5

Characteristics of different physical memory types Memory Type Volatile Price Speed Capacity CPU Registers Yes Very Expensive Very Fast Tiny CPU Cache Yes Very Expensive Very Fast Small RAM Yes Affordable Fast Medium USB / Flash No Cheap Slow Large How do changes in memory technologies lead to changes in computer designs? SUMMARY: Memory technology has developed significantly over the years. Changes include: Greater storage density (the number of bits per chip has increased from almost 1 kilobit (Kb) to 2 gigabit (GB) per chip) meaning computer systems, in particular portable ones, can be much smaller. Faster read/write times allowing increases in the performance of computer systems, although these speed increases still lag behind the advances in processor speeds. Less power consumption allowing mains computers to consume less electricity and portable computing devices to last longer on battery power or use smaller batteries and be even more portable. Lower costs per gigabit making it affordable to install significant amounts of RAM in quite basic computer systems. Flash memory capacity has risen to the point where solid state storage becomes a realistic alternative to the hard drive in smaller systems. This means that a computer can start operating far more quickly when it is started up as the data can be copied into RAM so much faster. Cache memory built into the CPU has made data transfer between the processor and RAM far more efficient, allowing significant increases in performance at a reasonable cost. 6