Docsity

IB Computer Science Topic.2 - LAWSON'S, Schemes and Mind Maps of Computer science

Partial preview of the text

Download IB Computer Science Topic.2 - LAWSON'S and more Schemes and Mind Maps Computer science in PDF only on Docsity!

Topic.2-

Computer Organization

Designed by: Allan Lawson Sources: Online Materials, thanks for all

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 Topic 2.1. Computer Architecture 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

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

Topic 2.1.

Special relationship

between CPU & RAM

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.

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.

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 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. Topic 2.1. RAM ROM Volatile Non-Volatile Contains user’s programs and data that has been loaded since “booting up” Contains the BIOS Usually measured in Gigabytes (common capacities are 1GB, 2GB or 4GB) 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)
  • Bus = a set of wires that connect two components in a computer system Explain the use of cache memory. Topic 2.1. IB Computer Science Topic 2.1.

Topic 2.1. IB Computer Science Topic 2.1. Explain the machine instruction cycle. Simplified model:

Topic 2.1. Simple Model # 2 Video's Tutorials to explain Video 1: Video 2: IB Computer Science Topic 2.1. Identify the need for persistent storage

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

A. User interface Topic 2.1. 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

  • 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.

C. Peripheral management Topic 2.1.

  • 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.

  • 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.

Topic 2.1.

  • Word processors
  • Spreadsheets
  • Database Management Systems (DBMS)
  • Email clients
  • Web browser
  • Computer Aided Design (CAD)
  • Graphic Processing Software Common application 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.

Topic 2.1.

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.

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.