1.1.1 Computer Components Flashcards

1
Q

CPU

A

Central Processing Unit
Interprets, executes and processes instructions by manipulating information sent to its registers.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

CU

A

Control Unit
Controls how data moves through the CPU by controlling buses
Controls and monitors the flow of data between the CPU and other components
Fetches, interprets and executes each instruction in turn (FDE)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

ALU

A

Arithmetic Logic Unit
Performs arithmetic operations (addition etc) and logic operations (comparisons etc)
Can be stored anywhere in memory, but typically the accumulator

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Buses

A

A collection of wires that carry data/instructions from one place to another inside a computer
(Collectively known as a system bus)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Data bus

A

Moves all data between the CPU and main memory (bidirectional)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Address bus

A

Transmits the memory addresses of data/instructions so that they can be retrieved by the CPU and executed

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Control bus

A

Carries the signal that regulates data flow around a system and is concerned with timing operations like memory writing/reading and I/O operations

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Clock

A

Regulates all instructions that take place by simulating pulses of high voltage, representing each cycle that implements an instruction

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Register

A

Type of memory in the CPU that holds temporary data while the software program runs (faster than cache)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

PC

A

Program Counter
Stores the location in main memory of the next instruction to be executed (either next instruction in sequence or the address to jump to if the current instruction is a branch)
Increments per instruction

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

MAR

A

Memory Address Register
Stores the address of the next data/instruction to be fetched from RAM
or which data is to be written

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

MDR

A

Memory Data Register
Temporarily stores data being read from/written to RAM or the instruction fetched from RAM

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

CIR

A

Current Instruction Register
Stores the instruction currently being executed

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Accumulator

A

Stores the result of the ALU’s calculations

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

FDE

A

The CU in the processor manages the execution of instructions
Each instruction is fetched in sequence, decodes and synchronizes it before executing (by sending control signals)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Fetch meaning

A

Responsible for getting an instruction or data from main memory into the CPU and storing them in its own temp registers

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

Fetch instruction sequence

A
  • The PC is checked (holds the address of the next instruction)
  • Address is copied to the MAR
  • Address is sent down the address bus to the RAM, and waits for a signal (via control bus)
  • A signal is sent by the CU to RAM
  • Contents in memory at that address are sent along the data bus to the MDR
  • This data is copied from the MDR to the CIR (successful fetch)
  • The PC increments
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

Decode sequence

A
  • the data in the CIR is decoded by the decode unit
  • made up via opcode and operand
  • opcode - what to do, operand - what to do to
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

Execute sequence

A

(changes for instruction)
- send address x to MAR, to RAM, via address bus
- the CU sends a (e.g. read) signal along control bus to RAM
- contents at memory x are sent to the MDR via data bus
- does whatever (e.g. load to ACC)
- cycle repeats unless it is a stop instruction

20
Q

LMC add

A

ADD 1xx
Adds value in register xx to the value in the ACC
(<999)

21
Q

LMC subtract

A

SUB 2xx
Subtracts value in register x from the value in the ACC
A negative flag is set if negative so that BRZ and BRP can test

22
Q

LMC store

A

STA 3xx
Stores/overwrites value in acc to register xx
ACC doesn’t change

23
Q

LMC load

A

LDA 5xx
Loads/overwrites value in register xx to ACC
Register xx doesn’t change

24
Q

LMC branch always

A

BRA 6xx
Unconditional branch
PC loads with xx and points to next instruction to be executed

25
LMC branch if zero
BRZ 7xx If accumulator holds 000, value xx is loaded into the PC to branch to
26
LMC branch if positive
BRP 8xx If accumulator is positive (or negative flag isn't set), then xx is loaded into PC to branch to
27
LMC input
INP 901 go to inbox and copy value into ACC
28
LMC output
OUT 902 Copy acc value into outbox
29
LMC halt
HLT 000 program stops/ends
30
LMC data location
Loads data into next available register or declares variables E.g. AGE DAT 14 stores 14 in variable called AGE, at the next available register
31
Cores
A complete processing unit in the CPU
32
Multitasking
Ability to carry out more than one task at the same time, simultaneously
33
Parallel processing
When a single task is split into parts and processed at the same time
34
Cache
Temporary storage of data and instructions to be read to and written from Located in or on the CPU Larger cache is more expensive but accesses data faster than from RAM
35
Von Neumann Architecture
Shared memory space for programs and data A single control unit processes one instruction at a time following the FDE cyc;e Registers are used as fast access to instructions and data Most computers are built with this All in the same format
36
Harvard
Split into separate memory units which each have their own bus Reading and writing can be done at the same time as fetching Mostly used by RISC processors
37
SIMD
Single Instruction Multiple Data Uses parallel processing where a processor carries out a single instruction on multiple data items simultaneously
38
MIMD
Multiple Instruction Multiple Data Where multiple instructions are carried on multiple data items across several cores
39
Distributed computing
Where multiple computers on a shared network take part of a bigger problem
40
CISC
Complex Instruction Set Computer A large instruction set with more complex instructions Takes more than one clock cycle to execute Cant pipeline Has more general-purpose registers Instructions take less space in memory Laptops + desktops
41
RISC
Reduced Instruction Set Computer Smaller instruction set with more simple instructions Takes one clock cycle to execute Compilers are more complicated therefore generate more instructions Can pipeline Cheaper to manufacture
42
GPU
Graphics Processing Unit Responsible for processing large blocks of visual data, very quickly Slower than standard CPUs GPU's are highly specialised and superior in speed + efficiency Excel at simple operations on large tasks (SIMD)
43
other gpu purposes
oil exploration weather modelling linear algebra
44
multicore system
A multicore processor is a single chip containing two or more independent processing units Each core can FDE its own instructions
45
CMP
Chip Multiprocessor Integrates multiple cores into a single physical chip e.g. two cores is dual core
46
impacts on multicore processors
on-chip shared cache inter-core communication overheads with this communication some programs cannot make maximum use of all cores
47
Parallel processor
The processing of program instructions by dividing them between multiple processors or processing cores