IB Computer Science SL: Computer Organisation

0.0(0)
studied byStudied by 0 people
GameKnowt Play
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/25

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

26 Terms

1
New cards

Arithmetic and Logic Unit (ALU)

Handles all arithmetic (addition / subtraction) and logical (AND/OR) calculations

2
New cards

Functions of the Control Unit

  1. Handle loading of new instructions into the CPU and decode them

  2. Direct data flow and ALU

3
New cards

Registers

Are small, very fast circuits that store intermediate values from calculations or instructions inside the CPU

Examples are the Memory Address Register (MAR) and the Memory Data Register (MDR)

4
New cards

Memory Address Register (MAR)

Contains RAM address of the instruction the CPU wants next

5
New cards

Memory Data Register (MDR)

Holds data that will be written to or was read from the RAM

6
New cards

Busses

The connecting wires that connect the CPU to other devices as they carry instructions.

1) Data bus (RAM → CPU via MDR)

2) Control bus (RAM → via CPU CU)

3) Memory bus (RAM → CPU via MAR)

7
New cards

Primary memory

Random Access Memory (RAM) and Read-only Memory (ROM).

  • RAM: “Short term”, volatile - loses its contents when power shuts off

  • ROM: Stores permanent instructions to boot up computer, holds the Basic Input Output System, non-volatile

8
New cards

Use of cache memory

High-speed memory in the CPU that stores instructions from the RAM. It’s checked by the processor first, if data is found, = cache hit. If data isn’t found = cache miss and RAM is searched. It is closer to the CPU than the RAM, which is why it’s high speed.

CPU <=> L1 Cache <=> L2 Cache <=> L3 Cache <=> RAM

9
New cards

Fetch-Decode-Execute Cycle

  1. Address to be checked appears in the Program Counter (PC).

  2. The address of the next instruction is copied onto the MAR from PC.

  3. MAR sends address to RAM and is then sent to the MDR.

  4. The instruction, stored in the MDR, is then copied into the CIR.

  5. Instructions are sent to the CU to be executed by the ALU.

PC → MAR → RAM → MDR → CIR → CU → ALU

The computer only requires one cycle to reach a result.

10
New cards

The need for persistent storage (secondary storage)

The processing done in CPU has no permanent storage has the RAM is volatile therefore HDD (Hard disk drives) and SSD (Solid state drives) allows for persistent storage. They are slower compared to primary storage but are cheaper.

11
New cards

Operating systems

Set of software that controls computer’s hardware and resources and provides services for computer programs

12
New cards

Functions of an operating system

User interface: link between hardware and user

  • Graphical User Interface (GUI): menus, icons, point & click

  • Command Line Interface (CLI): user type in commands and code

  • Natural Language Interface (NLI): user can speak to computer e.g. Siri

  • Menu Based Interface (MBI): similar to CLI but only menu options

Memory management: tracks storage devices and controls which applications have access to RAM

  • Provide file management services

  • Notifies user when memory is full

  • User can copy and delete files

Peripheral management: controlling keyboards, mouses, monitors, and printers through device drivers

  • Coordinate with BIOS

  • Use device drivers to interface with peripherals

Multitasking: allocating CPU cycles to programs based on prioriy and time

Security: prevents unauthorised access through usernames and passwords

13
New cards

The range of application software

  • Word processor stores, manipulates, and formats text entered from a keyboard to make a printout

  • Spreadsheet programs arranges data in a grid table to be manipulated and used in calculations

  • Database management systems provides users and programmers a systematic way to create, retrieve, update, and manage data

  • Email clients help in accessing and managing user’s emails.

  • Web browsers retrieve and navigate information resources on the World Wide Web

  • Computer Aided Design programs use computer systems to create, modify, or optimise a design.

  • Graphic Processing Software enables users to manipulate visual images on a computer

14
New cards

Programming features

  • Consistent grammar and syntax

  • Can define basic data types and operations

  • Can handle input and output

  • Can provide a conditional loop

  • Must have a compiler or interpreter

15
New cards

High-level vs low-level programming languages

  1. High-level provide greater abstraction from hardware whereas low-level languages require interaction with hardware specifics e.g. memory addresses and registers

  2. High-level languages are generally easier to learn as they are more similar to the natural human language

  3. Low-level language have finer control and faster performance due to their proximity to machine code

16
New cards

Compiler

Translates code written in high-level language into machine code (takes it chunk by chunk)

17
New cards

Interpreter

Directly executes instructions in a programming language (line-by-line)

18
New cards

Differences between high-level programming languages

  • Method of translation - compiler and/or interpreter

  • Loosely/strongly typed - whether data types are specified or not

  • Compatibility with different environments

  • Syntax differences

19
New cards

ASCII vs Unicode

Unicode can represent multiple languages

ASCII uses 8 bits for each character

20
New cards

Logic gates

NOT, AND, OR, XOR, NAND, XOR

21
New cards

NOT logic gate

A | NOT A

0 | 1

1 | 0

22
New cards

AND logic gate

A | B | A AND B

0 | 0 | 1

0 | 1 | 0

1 | 0 | 0

1 | 1 | 1

23
New cards

OR logic gate

A | B | A OR B

0 | 0 | 0

0 | 1 | 1

1 | 0 | 1

1 | 1 | 1

24
New cards

XOR logic gate

A | B | A XOR B

0 | 0 | 1

0 | 1 | 1

1 | 0 | 1

1 | 1 | 0

25
New cards

NOR logic gate

A | B | A NOR B

0 | 0 | 1

0 | 1 | 0

1 | 0 | 0

1 | 1 | 0

26
New cards

XOR logic gate

A | B | A XOR B

0 | 0 | 0

0 | 1 | 1

1 | 0 | 1

1 | 1 | 0