SIT153 Introduction to Computation

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

Chapter 8 Memory Units

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

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)

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

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

Memory Basics. SRAM/DRAM Basics

To understand how data is processed, by a computer, we can draw a simple analogy between computers and humans.

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

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

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

Main Memory & Backing Store. Main memory backing storage devices

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

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

CHAPTER 7: The CPU and Memory

Primary Memory. Input Units CPU (Central Processing Unit)

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

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

CSCA0201 FUNDAMENTALS OF COMPUTING. Chapter 5 Storage Devices

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

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

Multiple Choice Questions(Computer)

Week One Lecture Note 1.0 INTRODUCTION TO COMPUTER 1.1 WHAT IS COMPUTER?

1 PERSONAL COMPUTERS

Tech Application Chapter 3 STUDY GUIDE

Computer Systems Structure Main Memory Organization

Price/performance Modern Memory Hierarchy

Memory. The memory types currently in common usage are:

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

CPS104 Computer Organization and Programming Lecture 18: Input-Output. Robert Wagner

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

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

CHAPTER 2: HARDWARE BASICS: INSIDE THE BOX

The Central Processing Unit:

Types Of Storage Device

Algorithms and Methods for Distributed Storage Networks 3. Solid State Disks Christian Schindelhauer

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

Discovering Computers Living in a Digital World

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

A N. O N Output/Input-output connection

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

MULTIPLE CHOICE FREE RESPONSE QUESTIONS

Basic Concepts of Information Technology (IT)

McGraw-Hill Technology Education McGraw-Hill Technology Education

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

Computer Architecture

Solid State Drive Architecture

TEST CHAPTERS 1 & 2 OPERATING SYSTEMS

Random-Access Memory (RAM) The Memory Hierarchy. SRAM vs DRAM Summary. Conventional DRAM Organization. Page 1

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

Chap-02, Hardware and Software. Hardware Model

Computer Basics: Chapters 1 & 2

MICROPROCESSOR AND MICROCOMPUTER BASICS

lesson 1 An Overview of the Computer System

Overview of MIS Professor Merrill Warkentin

1. Memory technology & Hierarchy

Introduction To Computers: Hardware and Software

Computer Organization and Architecture. Characteristics of Memory Systems. Chapter 4 Cache Memory. Location CPU Registers and control unit memory

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

NAND Flash FAQ. Eureka Technology. apn5_87. NAND Flash FAQ

SDRAM and DRAM Memory Systems Overview

Computers Are Your Future Prentice-Hall, Inc.

2 COMPUTER ORGANISATION

COMPUTER HARDWARE. Input- Output and Communication Memory Systems

Computer Peripherals

Chapter 1 Computer System Overview

Embedded Systems Design Course Applying the mbed microcontroller

Microprocessor or Microcontroller?

Acknowledgments. Thanks to the following web site and people for the materials and images used in this presentation:

Module 1 Introduction to Information and Communication Technologies

COMPUTER SCIENCE AND ENGINEERING - Microprocessor Systems - Mitchell Aaron Thornton

1. Computer System Structure and Components

Computer-System Architecture

Lecture 2: Computer Hardware and Ports.

Input / Ouput devices. I/O Chapter 8. Goals & Constraints. Measures of Performance. Anatomy of a Disk Drive. Introduction - 8.1

CHAPTER 6: Computer System Organisation 1. The Computer System's Primary Functions

Topics. Introduction. Java History CS 146. Introduction to Programming and Algorithms Module 1. Module Objectives

Lecture 9: Memory and Storage Technologies

Discovering Computers Chapter 7 Storage

Parts of a Computer. Preparation. Objectives. Standards. Materials Micron Technology Foundation, Inc. All Rights Reserved

Computer Engineering

Computer Components Study Guide. The Case or System Box

Outline: Operating Systems

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

Input/output (I/O) I/O devices. Performance aspects. CS/COE1541: Intro. to Computer Architecture. Input/output subsystem.

Understanding Computers: An Overview for Records

Embedded Software development Process and Tools: Lesson-3 Host and Target Machines

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

MICROPROCESSOR BCA IV Sem MULTIPLE CHOICE QUESTIONS

Block diagram of typical laptop/desktop

What's in a computer?

CS 3530 Operating Systems. L02 OS Intro Part 1 Dr. Ken Hoganson

Chapter Introduction. Storage and Other I/O Topics. p. 570( 頁 585) Fig I/O devices can be characterized by. I/O bus connections

William Stallings Computer Organization and Architecture 7 th Edition. Chapter 6 External Memory

Computer Hardware Submitted in partial fulfillment of the requirement for the award of degree Of MCA

Devices and Device Controllers

GETTING STARTED WITH PROGRAMMABLE LOGIC DEVICES, THE 16V8 AND 20V8

Today we will learn about:

1 Computer hardware. Peripheral Bus device "B" Peripheral device. controller. Memory. Central Processing Unit (CPU)

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

Transcription:

SIT153 Introduction to Computation Lecture 4-1 Computer Organisation I chapter 5 6 April 2016

Admin matters (1) for the next 2 weeks Study units: (4) Computer organisation (5) Networks Week Date Day Activity Topic 6 4 April Mon 5 April Tues 6 April Wed Lectures: L4.1 7 April Thur Lectures: L4.2 Practical 4 8 April Fri Computer organisation Txt. bk. chapter ch 5 7 11 April Mon Lectures: L4.3 (Thursday timetable) 12 April Tues (Friday timetable) 13 April Wed Lectures: L4.4 14April Thur Lectures: L4.5 Practical 5 15 April Fri Computer organisation ch 5 2

Announcements Monday 11 April: THURSDAY TIMETABLE 10:30 to 11:20 lecture 12:30 to 14:30 No prac session Sick Test Date/Time: Monday 11 April, 12:30 to 14:30 Procedure: Submit medical certificate to COSI team before 16:30, Wednesday 6 April 3

To be discussed in this lecture This lecture: the three subsystems of a computer. role of the central processing unit (CPU). main memory and its addressing space. the input/output subsystem. 4

Computer hardware (subsystems) a computer is made up of three subsystems: central processing unit (CPU) main memory input/output subsystem 5.5

5-1 CENTRAL PROCESSING UNIT The central processing unit (CPU) performs operations on data. In most architectures it has three parts: (1) an arithmetic logic unit (ALU) (2) a control unit (3) a set of registers (fast storage locations) 5.6

The arithmetic logic unit (ALU) The arithmetic logic unit (ALU) performs: arithmetic operations logic operations shift operations on data. Central processing unit (CPU) 5.7

Registers Registers are fast storage locations inside CPU that hold data temporarily. Multiple registers are needed to facilitate the operation of the CPU. Some of these registers are: Data registers (R0,..., Rn) Instruction register (IR) Program counter (PC) Central processing unit (CPU) 5.8

The control unit The third component of a CPU is the control unit. The control unit controls the operation of each subsystem. Control is achieved through: signals sent from the control unit to other subsystems. 5.9

5-2 MAIN MEMORY (1) Main memory is the second major subsystem in a computer. It consists of: a collection of storage locations, each with a unique identifier, called an address. 5.10

5-2 MAIN MEMORY (2) Data is transferred to and from memory in groups of bits called bytes or words. A byte is a group of 8 bits, A word can be a group of (8 bits), 16 bits, 32 bits or 64 bits (and growing). 5.11

Address space (1) High level language programs (e.g. C / C++) use variable names to identify memory locations. e.g. char onecharacter; onecharacter = A ; // tells compiler to allocate a byte of //memory for // storing a character code //stores the ASCII code for A in the //memory location allocated to the // variable onecharacter At the hardware level each memory location is identified by an address (a unique numeric value) e.g. in C/C++, the statement: 5.12 cout << &onecharacter; // get the address for the memory //location allocated to // onecharacter and displays it on // the screen

Address space (2) The total number of uniquely addressable memory locations (words) is called the address space. A computer that uses addresses of N bits (e.g. N = 16 bits) can address a memory space of 2 N (e.g. 2 16 ) memory locations. The addresses have values 0, 1, 2,, 2 N -1 e.g. for N = 16, the addresses are 0, 1, 2,, 2 16-1 which is 0, 1, 2,, 65 535 So, in order to be able to address a memory space of M locations (words) we need an address with N = log 2 M bits 5.13 M = 2 N N = log 2 M address range 256 8 0, 1, 2,., 255 65 536 16 0, 1, 2,, 65 535??????? 32 0, 1, 2,.,??????????? 64 0, 1, 2,.,????

5.14 Address space (3)

Memory types (1) Two main types of memory exist: RAM and ROM. Random access memory (RAM) Static RAM (SRAM) Dynamic RAM (DRAM) Read-only memory (ROM) Programmable read-only memory (PROM). Erasable programmable read-only memory (EPROM). Electrically erasable programmable read-only memory (EEPROM). 5.15

Memory types (2) Two main types of memory exist: RAM and ROM. Random access memory (RAM) meaning of random vs. sequantial volatile Static RAM (SRAM) based on (bi-stable) electronic circuits which hold state (0 or 1) as long as power is supplied to circuit Expensive circuits Dynamic RAM (DRAM) 5.16 based on electronic circuits which store electrical charge (energy) through capacitance no charge => 0, charged => 1) low-cost circuits

Memory types (3) Two main types of memory exist: RAM and ROM. Read-only memory (ROM) non-volatile data is written (stored) at time of manufacture e.g. of usage: programs for booting a computer these should never be changed 5.17 Programmable read-only memory (PROM). Erasable programmable read-only memory (EPROM) Electrically erasable programmable read-only memory (EEPROM). variants of ROM that can be re-programmed using special devices

Memory hierarchy Computer users need a lot of memory, especially memory that is very fast and inexpensive. This demand is not always possible to satisfy very fast memory is usually not cheap. A compromise needs to be made. The solution is hierarchical levels of memory. Figure 5.4 Memory hierarchy 5.18

Cache memory Cache memory is: faster than main memory, but slower than CPU registers. Instructions & data are pre-fetched from memory and stored in cache Speeds up program execution. Cache memory, which is normally small in size, is placed between the CPU and main memory. Figure 5.5 Cache memory 5.19

5-3 INPUT/OUTPUT SUBSYSTEM The third major subsystem in a computer is the collection of devices referred to as the input/output (I/O) subsystem. This subsystem allows a computer to: communicate with the outside world (computer users) and store programs and data even when the power is off. I/O devices can be divided into two broad categories: non-storage devices and storage devices. 5.20

Input / Output devices Non-storage devices allow the CPU/memory to communicate with the outside world, but they cannot store information. Keyboard monitor mouse printer etc. Storage devices Storage devices, although classified as I/O devices, can store large amounts of information to be retrieved at a later time. They are cheaper than main memory, and their contents are nonvolatile i.e. not erased when the power is turned off. Sometimes referred to as auxiliary storage devices. 2 categories: (1) magnetic (2) optical. 5.21

Storage devices: magnetic disk Magnetic disk drive consists of: disks (platters), tracks, sectors, R/W head, controller magnetisation (on tracks): 5.22 magnetisation => 1 is stored no magnetisation => a 0 is stored Disk performance affected by: (1) Rotational speed (2) Seek time (3) Latency (3) transfer rate Minimum amount of data for read / write operation = one sector

storage devices: magnetic tape Magnetic tape Sequential access for data Slower and cheaper than disk 5.23

storage devices: optical disk Optical disk: Recording data: use a high-power laser beam Pit => 0 is recorded Land => 1 is recorded Reading data: Use low-power laser beam Light is reflected from surface Intense light => 1 is read soft light => 0 is read Figure 5.24 5.8 Creation and use of CD-ROMs

5.25

Figure 5.9 CD-ROM format 5.26 Figure 5.10 Making a CD-R

5.27 Figure 5.11 Making a CD-RW

5.28

HOMEWORK Do a search on the web to find out what type of technology is used for flash disks. 29