Professional Documents
Culture Documents
Topic 2 Computerorganization PDF
Topic 2 Computerorganization PDF
Topic 2 Computerorganization PDF
Computer Organization
IB Computer Science
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
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
IB Computer Science
Topic 2.1.1
Examples of ALU’s & CU’s
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
IB Computer Science
Topic 2.1.1
Special relationship
between CPU & RAM
• 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.
RAM ROM
Volatile Non-Volatile
IB Computer Science
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
IB Computer Science
Topic 2.1.3
IB Computer Science
Topic 2.1.4
Explain the machine instruction cycle.
Simplified model:
IB Computer Science
Topic 2.1.4
Simple Model #2
IB Computer Science
Topic 2.1.5
Identify the need for persistent storage
IB Computer Science
Topic 2.1.5
Why do we need “storage”?
Needs to be stored
* HDD/SSD on persistent
storage
Types of storage
IB Computer Science
Topic 2.1.6
Describe the main functions of an
operating system
Hierarchy of Software
Operating System
System Software
Utilities
Software
Drivers / Libraries
Application
Software Games Word processor
Specialist Browser
IB Computer Science
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.
IB Computer Science
Topic 2.1.6
Examples of user interfaces
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.
File manager for managing files on HDD Memory manager for RAM to make sure programs don’t use
same memory space
IB Computer Science
Topic 2.1.6
C. Peripheral management
• 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.
D. Multitasking
• 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.
IB Computer Science
Topic 2.1.6
Security Examples
IB Computer Science
Topic 2.1.7
Hierarchy of software
IB Computer Science
Topic 2.1.7
Web browser
A software application for retrieving, presenting, and
traversing information resources on the World Wide Web.
IB Computer Science
Topic 2.1.7
• 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
IB Computer Science
Topic 2.1.9
Define the terms: bit, byte, binary, denary/decimal and
hexadecimal
Definition: bit
Define: byte
Bits can be grouped together to make them easier to work
with. A group of 8 bits is called a byte.
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.
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
IB Computer Science
Topic 2.1.10
Outline the way in which data is represented in the
computer
ASCII vs Unicode
8
4
1 2
IB Computer Science
Topic 2.1.11
Define the Boolean
operators: AND, OR,
NOT, NAND, NOR and
XOR
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
IB Computer Science
Topic 2.1.11
The Basic 3 gates
AND OR NOT
Combining gates
A
Q Q = NOT (A AND B)
B
A
Q Q = NOT (A NOR B)
B
A D
B
Q Q = C AND (A OR B)
C
IB Computer Science
Topic 2.1.12
Construct truth tables using AND, OR, NOT,
NAND, NOR and XOR
• Or the IB version:
AND OR NOT