COMPUTER SYSTEM. COMPUTER SYSTEM IB DP Computer science Standard Level ICS3U. COMPUTER SYSTEM IB DP Computer science Standard Level ICS3U

Similar documents
Chapter 5: Computer Systems Organization. Invitation to Computer Science, C++ Version, Third Edition

Chapter 5: Computer Systems Organization

A Review of Chapter 5 and. CSc 2010 Spring 2012 Instructor: Qian Hu

The Von Neumann Architecture. Designing Computers. The Von Neumann Architecture. CMPUT101 Introduction to Computing - Spring 2001

Designing Computers. The Von Neumann Architecture. The Von Neumann Architecture. The Von Neumann Architecture

CMPUT101 Introduction to Computing - Summer 2002

Information Science 1

The Von Neumann Architecture Odds and Ends. Designing Computers. The Von Neumann Architecture. CMPUT101 Introduction to Computing - Spring 2001

CMPUT101 Introduction to Computing - Summer 2002

Level 2: The Hardware World Chapters 4 and 5 (topics of other cs courses)

Computer Architecture

Chapter 5 12/2/2013. Objectives. Computer Systems Organization. Objectives. Objectives (continued) Introduction. INVITATION TO Computer Science 1

Computer Organization

Electricity: Voltage. Gate: A signal enters the gate at a certain voltage. The gate performs operations on it, and sends it out was a new signal.

Von Neumann Architecture

CS 265. Computer Architecture. Wei Lu, Ph.D., P.Eng.

Computer Architecture (part 2)

Computer Architecture and Assembly Language. Spring

CS1004: Intro to CS in Java, Spring 2005

CS 265. Computer Architecture. Wei Lu, Ph.D., P.Eng.

Lecture Objectives. Introduction to Computing Chapter 0. Topics. Numbering Systems 04/09/2017

5 Computer Organization

5 Computer Organization

machine cycle, the CPU: (a) Fetches an instruction, (b) Decodes the instruction, (c) Executes the instruction, and (d) Stores the result.

Diskrečioji matematika

The CPU and Memory. How does a computer work? How does a computer interact with data? How are instructions performed? Recall schematic diagram:

Machine Architecture. or what s in the box? Lectures 2 & 3. Prof Leslie Smith. ITNP23 - Autumn 2014 Lectures 2&3, Slide 1

Chapter One. Introduction to Computer System

CC411: Introduction To Microprocessors

Computer Organization

The x86 Microprocessors. Introduction. The 80x86 Microprocessors. 1.1 Assembly Language

Dec Hex Bin ORG ; ZERO. Introduction To Computing

CREATED BY M BILAL & Arslan Ahmad Shaad Visit:

Computer Organization

Chapter 08: The Memory System. Lesson 01: Basic Concepts

Homeschool Enrichment. The System Unit: Processing & Memory

INTRODUCTION TO INFORMATION & COMMUNICATION TECHNOLOGY (ICT) LECTURE 2 : WEEK 2 CSC-111-T

AS/A Level Computing Syllabus 2011

Microprocessors I MICROCOMPUTERS AND MICROPROCESSORS

Basic Computer Architecture

Ms. Minerva A. Lagarde

Chapter 7: Processor and Memory

Year 10 OCR GCSE Computer Science (9-1)

Computer Architecture 2/26/01 Lecture #

9/7/2012. Introduction. Peeking into Computer Science. Jalal Kawash Mandatory: Chapter 1 Optional: None. Reading Assignment

Outcomes. Lecture 13 - Introduction to the Central Processing Unit (CPU) Central Processing UNIT (CPU) or Processor

CMPUT 101 with Solutions Quiz 2 (50 minutes) August 7, 2002

Components of a Computer System

CS 101, Mock Computer Architecture

CMPUT 101 with Solutions Quiz 2 (50 minutes) November 16, 2000

IB Computer Science Topic.2-

What is the typical configuration of a computer sold today? 1-1

Show how to connect three Full Adders to implement a 3-bit ripple-carry adder

Computers Are Your Future

VON NEUMANN ARCHITECTURE. VON NEUMANN ARCHITECTURE IB DP Computer science Standard Level ICS3U

CS 265. Computer Architecture. Wei Lu, Ph.D., P.Eng.

Lecture1: introduction. Outline: History overview Central processing unite Register set Special purpose address registers Datapath Control unit

GCSE Computer Science for OCR Overview Scheme of Work

Computers Are Your Future


CMPUT 101 with Solutions Quiz 2 (50 minutes) November 7, 2003

Components of a personal computer

An Overview of the Computer System. Kafui A. Prebbie 24

1. Fundamental Concepts

CPU ARCHITECTURE. QUESTION 1 Explain how the width of the data bus and system clock speed affect the performance of a computer system.

Outline. elements and behavior executing programs. developing programs use as a calculator converting strings to numbers

N.B. These pastpapers may rely on the knowledge gained from the previous chapters.

Good morning! Hardware: Input, Processing, Output, and Storage Devices

User. Application program. Interfaces. Operating system. Hardware

COMPUTER ORGANISATION CHAPTER 1 BASIC STRUCTURE OF COMPUTERS

CMSC 1513 Lecture 1.2

Quiz on Ch.4 is at the end of Ch.4 slides

Computer Systems. Binary Representation. Binary Representation. Logical Computation: Boolean Algebra

Question 1: What criteria define Von Neumann architecture? Identify clearly and coherently. Solution

Chapter 4 The Components of the System Unit

OCR GCSE (9-1) Computer Science J276 Accompanying Instructional Document

Management Information Systems OUTLINE OBJECTIVES. Information Systems: Computer Hardware. Dr. Shankar Sundaresan


A B C ((NOT A) AND B) OR C

OCR J276 (9-1) GCSE Computer Science

Intentionally Blank 0

FACTFILE: GCE DIGITAL TECHNOLOGY

Chapter 5 Computing Components

Chapter 1: Why Program? Computers and Programming. Why Program?

Data Manipulation. Chih-Wei Tang ( 唐之瑋 ) Department of Communication Engineering National Central University JhongLi, Taiwan

CHAPTER 2: HOW DOES THE COMPUTER REALLY WORK

Introduction To Computer Hardware. Hafijur Rahman

Technology in Action. Chapter Topics. Participation Question. Participation Question. Participation Question 8/8/11

CMSC 104 -Lecture 2 John Y. Park, adapted by C Grasso

Memory General R0 Registers R1 R2. Input Register 1. Input Register 2. Program Counter. Instruction Register

Autumn 1 Autumn 2 Spring 1 Spring 2 Summer 1 Summer 2. networks. environmental concerns. Knowledge and skills covered: Knowledge and skills covered:

System Unit Components Chapter2

HASTINGS HIGH SCHOOL

Fundamentals of Programming Session 1

Show how to connect three Full Adders to implement a 3-bit ripple-carry adder

The Stored Program Computer

Systems Architecture

Introduction to Computers. Joslyn A. Smith

Computer Hardware. Lect 3: Input / System Unit/Output & Storage

Concept of Memory. The memory of computer is broadly categories into two categories:

Transcription:

C A N A D I A N I N T E R N A T I O N A L S C H O O L O F H O N G K O N G 5.1 Introduction 5.2 Components of a Computer System Algorithm The Von Neumann architecture is based on the following three characteristics: four major subsystems called memory, input/output, the arithmetic/ logic unit (ALU), and the control unit. the stored program concept, in which the instructions to be executed by the computer are represented as binary values and stored in memory the sequential execution of instructions, in which one instruction at a time is fetched from memory and passed to the control unit, where it is decoded and executed block diagram for a computer subsystem STORAGE Data Input Unit Secondary Storage Primary Storage Output Unit Information Control Unit Arithmetic / Logic Unit CPU Data Flow Control Flow 1

stores and retrieves the instructions and the data being executed information stored in memory is represented internally using the binary numbering system standardized memory width is 8-bit (or 1 byte) the largest unsigned integer value that can be stored in a byte is 11111111 (binary) or 255 (decimal) the value 2 N is the maximum (theoretical) memory size N Maximum Memory Size Industry Name 10 2 10 = 1K kilobyte 20 2 20 = 1M megabyte 30 2 30 = 1G gigabyte 40 2 40 = 1T terabyte 50 2 50 = 1P petabyte 2

A computer with a 16-bit address would have 64KB of memory. 2 16 = 2 6 x 2 10 = 64 x 2 10 = 64K basic memory operations are fetching and storing fetching (non-destructive) retrieve a copy of the contents of the memory cell with the specified address and return those contents as the result of the operation storing (destructive) assign the specified value into the memory cell specified by address RAM (random access memory) memory is divided into fixed-size units called cells, and each cell is associated with a unique identifier called an address all accesses to memory are to a specified address the time it takes to fetch or store the contents of a cell is the same for all the cells in memory 3

ROM (read-only memory) information has been prerecorded during manufacture information cannot be modified or removed, only fetched used to hold important system instructions and data in a place where a user cannot accidentally or intentionally overwrite them Memory Registers used to implement fetch and store operations requires two operands the address of the cell being accessed the value being accessed (fetched) or assigned (stored) Memory Registers Memory Address Register (MAR) holds the address of the cell to be fetched or stored must be at least N bits wide Memory Data Register (MDR) contains the data value being fetched or stored size of MDR is usually a multiple of 8 4

An example of operations in RAM Fetch (address) 1. Load the address into the MAR. 2. Decode the address in the MAR. 3. Copy the contents of that memory location into the MDR. Store (address, value) 1. Load the address into the MAR. 2. Load the value into the MDR. 3. Decode the address in the MAR. 4. Store the contents of the MDR into that memory location. Cache Memory the first time that the computer references a piece of data, it should move that data from regular RAM memory to a special, high-speed memory unit called cache memory a cache is typically 5 to 10 times faster than RAM but much smaller When the computer needs a piece of information: 1. look first in cache memory to see whether the information is there 2. if the desired information is not in the cache, then access it from RAM using the fetch operation 3. copy the data just fetched into the cache along, if the cache is full, then discard some of the older items that have not recently been accessed 5

SUBSYSTEM: input/output the devices that allow a computer system to communicate and interact with the outside world as well as store information RAM is volatile memory mass (archival) storage is nonvolatile memory SUBSYSTEM: input/output input/output devices come in two basic types those that represent information in human-readable form for human consumption keyboards, screens, printers those that store information in machine-readable form for access by a computer system mass storage systems: flash memory, hard-discs, optical discs SUBSYSTEM: input/output two forms of mass storage systems direct access storage device (DASD) every unit of information has unique addresses, time needed to access that information depends on its physical location and the current state of the device flash memory, hard-discs, optical discs sequential access storage devices (SASD) not all units of data be identifiable via unique addresses audio cassette tapes 6

SUBSYSTEM: arithmetic/logic unit (ALU) performs mathematical and logical operations and comparison for equality modern machines have the ALU and the control unit integrated into a single component called the processor SUBSYSTEM: arithmetic/logic unit (ALU) ALU is made up of three parts: the registers a storage cell that holds the operands of an arithmetic operation and when the operation is complete it holds its result the interconnections between components a bus is a path for electrical signals the ALU circuitry the circuits that carry out the operations SUBSYSTEM: control unit (CU) the unit to fetch from memory the next instruction to be executed, to decode it, and to execute it by issuing the appropriate command to the ALU, memory, or I/O controllers 7

SUBSYSTEM: control unit (CU) machine language instructions the instructions that can be decoded and executed by the control unit of a computer are represented in machine language the instructions in this language are expressed in binary SUBSYSTEM: control unit (CU) control unit registers and circuits to fetch and execute instructions, the control unit relies on the program counter (PC) and the instruction register (IR) and on an instruction decoder circuit Homework Pg. 238 # 8 Do you think that human memory is or is not a random access memory? Give an argument why or why not. 8

Homework Pg. 244 # 5 Defragmenting a disk means to reorganize files on the disk so that as many pieces of the file as possible are stored in sectors on the same track, regardless of the surface it is on. Explain why defragmentation can be beneficial. 9