IB Computer Science Topic.2-

Similar documents
Computer Organisation IB Computer Science. Content developed by Dartford Grammar School Computer Science Department

Information Science 1

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

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

Year 10 OCR GCSE Computer Science (9-1)

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.

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

GCSE Computer Science for OCR Overview Scheme of Work

Dec Hex Bin ORG ; ZERO. Introduction To Computing

An Introduction to Computers and Java CSC 121 Spring 2015 Howard Rosenthal

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

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

CC411: Introduction To Microprocessors

INTRODUCTION TO COMPUTERS

Revision. Paper 1 & Paper 2

Machine Architecture and Number Systems

ECS15, Lecture 10. Goals of this course 2/8/13. Mini-Review & Topic 3.2 Software. Today s agenda

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

Chapter One. Introduction to Computer System

Learning objectives. Computer principles The characteristics of contemporary processors, input, output and storage devices

National 5 Computing Science Software Design & Development

HASTINGS HIGH SCHOOL

Von Neumann Architecture

Computer Organization

User. Application program. Interfaces. Operating system. Hardware

Basic Computer Architecture

CS 101, Mock Computer Architecture

Machine Architecture and Number Systems CMSC104. Von Neumann Machine. Major Computer Components. Schematic Diagram of a Computer. First Computer?

An Introduc+on to Computers and Java CSC 121 Spring 2017 Howard Rosenthal

Introduction to Computers. Joslyn A. Smith

Homeschool Enrichment. The System Unit: Processing & Memory

The Central Processing Unit

Download from Powered By JbigDeaL

Computer Organization and Programming

OCR J276 (9-1) GCSE Computer Science

Microprocessors I MICROCOMPUTERS AND MICROPROCESSORS

Systems Architecture

Chapter 4 The Components of the System Unit

System Unit Components Chapter2

CREATED BY M BILAL & Arslan Ahmad Shaad Visit:

CS 105 Review Questions #3

Computers Are Your Future

2c. Content of Computer systems (Component 01)

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

Chapter Two. Hardware Basics: Inside the Box

Chapter 5: Computer Systems Organization

Angel International School - Manipay 2 nd Term Examination March, 2018 Ict

COURSE OUTLINE & WEEK WISE BREAKAGE

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

Advanced Parallel Architecture Lesson 3. Annalisa Massini /2015

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

Computer Organization and Levels of Abstraction

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

Computing 1: Computer Systems

AQA GCSE Computer Science PLC

Elements of Computers and Programming Dr. William C. Bulko. What is a Computer?

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

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

ELEG3923 Microprocessor Ch.0 & Ch.1 Introduction to Microcontroller

SECONDARY SCHOOL, L-IMRIEĦEL HALF YEARLY EXAMINATIONS 2016/2017

Unit 2: Technology Systems. Computer and technology systems

Chapter 2. Prepared By: Humeyra Saracoglu

Chapter 7: Processor and Memory

GIRLS SECONDARY, L-IMRIEĦEL HALF YEARLY EXAMINATIONS 2015/2016

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

ST. MARY S COLLEGE FORM 4

CS 31: Intro to Systems Digital Logic. Kevin Webb Swarthmore College February 2, 2016

Chapter 4 The Components of the System Unit

e-pg Pathshala Subject : Computer Science Paper: Embedded System Module: Introduction to Computing Module No: CS/ES/1 Quadrant 1 e-text

OCR J276 GCSE Computer Science

Computers Are Your Future

Fundamentals of Programming Session 1

HARDWARE AND OPERATING SYSTEMS

OCR GCSE Computing Learning Grids H/W

Topics. Hardware and Software. Introduction. Main Memory. The CPU 9/21/2014. Introduction to Computers and Programming

Computer Basics 1/24/13. Computer Organization. Computer systems consist of hardware and software.

CS 31: Intro to Systems Digital Logic. Kevin Webb Swarthmore College February 3, 2015

Problem Set 1 Solutions

Bits and Bit Patterns

Syllabus for Computer Science General Part I

Switching to AQA from OCR

Chapter 1: Introduction. Operating System Concepts 9 th Edit9on

CHAPTER 1 Introduction to Computers and Java

elc International School

SECTION 2 (Part B) Types And Components Of Computer Systems. Sophia Pratzioti

Computer Architecture 2/26/01 Lecture #

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

Knowledge Organiser. Computing. Year 10 Term 1 Hardware

Diskrečioji matematika

2. (a) Compare the characteristics of a floppy disk and a hard disk. (b) Discuss in detail memory interleaving. [8+7]

Digital Systems. John SUM Institute of Technology Management National Chung Hsing University Taichung, ROC. December 6, 2012

Chapter 1. Data Storage Pearson Addison-Wesley. All rights reserved

Chapter 1: Introduction to Computers and Java

8/23/2014. Chapter Topics. Introduction. Java History. Why Program? Java Applications and Applets. Chapter 1: Introduction to Computers and Java

Computer Organization

Experimental Methods I

Information Communications Technology (CE-ICT) 6 th Class

Computer Basics 1/6/16. Computer Organization. Computer systems consist of hardware and software.

Philadelphia University Department of Computer Science. By Dareen Hamoudeh

1. Fundamental Concepts

Transcription:

Topic.2- Computer Organization Designed by: Allan Lawson Sources: Online Materials, thanks for all

Topic 2.1.1 Computer Architecture Outline the architecture of a central processing unit (CPU) and the functions of the arithmetic logic unit (ALU) and the control unit (CU) and the registers within the CPU. Key Terms: CPU = Central Processing Unit ALU = Arithmetic Logic Unit CU = Control Unit Registers = small temporary storage spaces inside the CPU Central Processing Unit Video: How are CPUs made CPU definition: The key component of a computer system, which contains the circuitry necessary to interpret and execute programing instructions for the computer device. CPU

Examples of ALU s & CU s Topic 2.1.1 Function of the ALU Part of the CPU that does all the arithmetic (+/-) and logical (AND/OR) calculations Sometimes an ALU is referred to a core, hence computers with dual core technology have two ALU s to process two calculations simultaneously. Two functions of the CU: It handles the loading of new commands into the CPU and the decoding of these commands. Also, it directs the data flow and the operation of the ALU. Computer Architecture: In 1945, a scientist called Von Neumann suggested that a computer system be slip into a processor module (where the instructions are calculated) and a memory module (where instructions and data are stored). We still use this model today: CPU and Primary Memory

Topic 2.1.1 Special relationship between CPU & RAM CPU needs it s own memory Registers: they are small, very fast circuits that store intermediate values from calculations or instructions inside the CPU. There are many small units, but the four most important ones are the following: 1. MAR 2. MDR 3. Accumulator 4. Program Counter Program Counter & Accumulator Program Counter holds the memory address of the next instruction. Accumulator holds the intermediate results of the currently running instructions. MAR (Memory Address Register) MAR is connected to the address bus. MAR contains a memory address. MAR s sole function contains the RAM address of the instruction the CPU wants next.

Topic 2.1.1 MDR ( Memory Data Register) MDR is connected to the data bus. MDR holds data that will be written to the RAM or that was read from RAM. Relationship between MAR & MDR: The MAR gives the address the data of the MDR will be read from or written to.

Topic 2.1.2 Describe the Primary Memory.

RAM = Random Access Memory Contains the data and instructions the computer has loaded since starting up and everything the user has opened or loaded. Is volatile = loses its contents if the power is lost Has a special link to the CPU Topic 2.1.2 ROM = Read Only Memory Originally its contents were static ( read only ) and could not be changed not true any more ( flash upgrades ). Non-volatile = does not lose its contents if the power is lost Stores the BIOS (Basic Input Output System) a small program that allows the computer to know what to do to find the operating system to boot the computer after power is restored. RAM Volatile Contains user s programs and data that has been loaded since booting up Usually measured in Gigabytes (common capacities are 1GB, 2GB or 4GB) ROM Non-Volatile Contains the BIOS Usually measured in Kilobytes (much smaller than RAM)

Connections between RAM & CPU Control Bus (bi directional) Address Bus (uni directional-from CPU to RAM only) Data Bus (bi directional) Topic 2.1.2 Bus = a set of wires that connect two components in a computer system Topic 2.1.3 Explain the use of cache memory.

Topic 2.1.3 Memory Primary Secondary RAM HDDs ROM Flash Cache Definition: Cache A type of small, high-speed memory inside the CPU used to hold frequently used data, so that the CPU needs to access the much slower RAM less frequently

Topic 2.1.3 Topic 2.1.4 Explain the machine instruction cycle. Simplified model:

Simple Model #2 Topic 2.1.4 Video's Tutorials to explain Video 1: Video 2: Topic 2.1.5 Identify the need for persistent storage

Why do we need storage? Topic 2.1.5 Processing done in CPU * Has no storage Stores results / data in RAM * RAM is volatile (looses contents if power is lost) * HDD/SSD Needs to be stored on persistent storage Types of storage

Software Topic 2.1.6 Describe the main functions of an operating system Hierarchy of Software Operating System System Software Utilities Drivers / Libraries Application Software Games Word processor Productivity Spread sheet Specialist Browser

Topic 2.1.6 Functions of an operating system A. Provides a user interface B. Does memory management C. Does peripheral management D. Allows multi-tasking E. Provides security A. User interface OS has to provide a link between the user and the computer hardware. Types of user interfaces: Graphical User Interfaces (GUIs) that have menus and icons, graphics, desktop style. Command Line Interfaces (CLIs) where the user types in codes, data entry style. Natural Language Interface (NLIs) where the user speaks to the interface. Menu Based Interface (MBIs) which gives the user a selection of options.

Examples of user interfaces Topic 2.1.6 GUI CLI NLI MBI B. Memory Management Memory management is done by keeping track of storage devices (like HDD) and controlling which application has access to which area of memory (RAM). Each location in memory can be read, modified, and written to by the OS. When the memory location is full the OS sends a confirmation message. Similarly, the OS provides file management services by sorting out where data is stored on the disk drives and memory. The OS allows users to organize files in folders as well as to copy and delete files. Examples of memory management File manager for managing files on HDD Memory manager for RAM to make sure programs don t use same memory space

C. Peripheral management Topic 2.1.6 The OS coordinates the basic input and output systems (the BIOS). Keyboard, mouse, monitor and printers are controlled through device drivers. A device driver is a software program which allows hardware devices to be used by the OS. They act as translators between the devices and the computer system. Peripheral management example

D. Multitasking Topic 2.1.6 The OS coordinates the working of different programs by allocating the CPU time between different programs based on time and priority of the software application. Each task running is given a slice of time, or a turn on the CPU. Each task has to wait its turn unless it is given a higher priority by the OS in which case it gets more or longer time slices. Multitasking Example E. Security OS prevents unauthorised access. It ensures security of the system through user names and passwords. The OS protects files from other users reading or writing files.

Security Examples Topic 2.1.6 Topic 2.1.7 Outline the use of a range of applications software Hierarchy of software

Topic 2.1.7 Common application software Word processors Spreadsheets Database Management Systems (DBMS) Email clients Web browser Computer Aided Design (CAD) Graphic Processing Software Word Processor (not just Word) A program for storing, manipulating, and formatting text entered from a keyboard and providing a printout. Spreadsheet (not just Excel) A program in which data is arranged in rows and columns of a grid and can be manipulated and used in formulas and calculations.

A database management system (DBMS) is a system software for creating and managing databases. The DBMS provides users and programmers with a systematic way to create, retrieve, update and manage data. Topic 2.1.7 Database Management System Email clients (not outlook like Hotmail) A computer program used to access and manage a user s email. Web browser A software application for retrieving, presenting, and traversing information resources on the World Wide Web.

Topic 2.1.7 Computer Aided Design (CAD) Programs that use computer systems to assist in the creation, modification, analysis, or optimization of a design. Graphic Processing Software In computer graphics, graphics software or image editing software is a program or collection of programs that enable a person to manipulate visual images on a computer.

Identify common features of applications. Topic 2.1.8 Common features of most programs are: Toolbars Menus Dialogue Boxes GUI components OS vs Application features Certain parts of the interface are provided by libraries in the OS and certain parts are specific to each application For example: the menu bar and buttons are standard, but the specifics/pictures are up to the individual application OS Generic Program Specific

Topic 2.1.9 Define the terms: bit, byte, binary, denary/decimal and hexadecimal Definition: bit Computers use binary - the digits 0 and 1 - to store data. A binary digit, or bit, is the smallest unit of data in computing. It is represented by a 0 or a 1. Define: byte Bits can be grouped together to make them easier to work with. A group of 8 bits is called a byte. Common byte storage capacities

Topic 2.1.9 Define the terms: bit, byte, binary, denary/decimal and hexadecimal Definition: binary Computers use binary - the digits 0 and 1 - to store data. Because it only has 2 symbols (0 & 1) it is also called BASE-2 numbering Binary also refers to the format in which numbers are transmitted and calculated in a computer system. Relationship between normal numbers (denary) and binary How to convert from binary to denary:

Definition: denary / decimal Topic 2.1.9 Denary is a numbering system with 10 symbols: 0123456789 It is, therefore, often referred to as BASE-10 numbering. Definition: hexadecimal Hexadecimal is a numbering system with 16 symbols: 0123456789ABCDEF It is, therefore, often referred to as BASE-16 numbering. Hex, as it is often called, is used to represent very large numbers quickly, such as those used in colour representation. Hexadecimal to Denary Binary to Hexadecimal

Topic 2.1.10 Outline the way in which data is represented in the computer Many different representations: String ( I love Java ) Integer (12, 34, 3345 ) Characters (ASCII vs Unicode) Colours (Hex) What is 10101111? Is it a number (integer)? Is a character? If it is a character, what table am I going to use look up the character? ASCII? Unicode? Does it refer to a colour? Is it part of a picture? ASCII vs Unicode Different data types take up more space Bytes taken up in RAM 22 1 2 4 8 boolean char int double String "Hello World"

Topic 2.1.10 Colours as HEX numbers Define the Boolean operators: AND, OR, NOT, NAND, NOR and XOR Topic 2.1.11 What is logic? Its how a machine will solve problems. Machines (at basic level) do not understand semantics like humans no grey areas. 1 0 True/On/Yes False/Off/No

Topic 2.1.11 The Basic 3 gates AND OR NOT The Further 3 gates NAND NOR XOR Combining gates A B A B A B D Q Q = NOT (A AND B) Q Q = NOT (A NOR B) Q Q = C AND (A OR B) C In reality Where can we find these gates in reality?

Topic 2.1.11 Common uses of gates: Gate Example Fire alarm: Smoke (1) AND heat (1) Internal car light: Either door opened (1) Microwave will stop (0) if the door is opened (1), vice versa Security system is engaged until you enter code or an ID is scanned, the it disengages. Air conditioner: AC will turn on (1) only if BOTH window A and B are closed. (0) 2 light switches in one corridor Construct truth tables using AND, OR, NOT, NAND, NOR and XOR Topic 2.1.12 The Basic Truth Tables Multiple gate truth table How many combinations do we need to test in the table? A B C A and B Not C A.B or C Not(A.B or C) Y 0 0 0 0 1 1 0 0 0 0 1 0 0 0 1 1 0 1 0 0 1 1 0 0 0 1 1 0 0 0 1 1 1 0 0 0 1 1 0 0 1 0 1 0 0 0 1 1 Practice on these 1 1 0 1 1 1 0 0 1 1 1 1 0 1 0 0

Topic 2.1.13 Construct a logic diagram using AND, OR, NOT, NAND, NOR & XOR Good news Bad news? In exams the exact symbol is not relevant. You can use the official: Or the IB version: AND OR NOT Past exam question Turn the following logic statement into a logic diagram: Y = NOT [ (A AND B) OR NOT C ]