3.7 organisation and architecture Flashcards

1
Q

computer system

A

any device that can take a set of inputs and process them into useful outputs
(e.g. screen press (input) -> charas encoded (process) -> text displayed (output))

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

stored program concept

A
  • instructions stored in main memory
  • instructions are fetched and executed serially by the processor
  • programs can be moved in/out of main memory
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

john von neumann architecture

A
  • most common implementation of stored program concept, used in general purpose computing systems
  • instructions + data share buses/addresses/memory
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

harvard architecture

A
  • instructions + data have separate buses
  • instructions + data stored in separate memories
  • instructions + data can be fetched simultaneously
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

when is harvard architecture usually used

A

embedded systems like digital signal processing, where speed takes priority over complexities of design

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

parts of the cpu

A
  • arithmetic logic unit
  • control unit
  • clock
  • cache
  • general-purpose registers
  • dedicated registers
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

i/o controllers

A

act as interface between peripheral device and computer (cannot be directly connected to processor)

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

how do i/o controllers work

A

controller converts signals received from peripheral into processable format, vice versa

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

what does main memory do

A

stores data and instructions to be processed

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

word

A
  • group of bits that is treated as single unit by processor
  • can be used for representing both instructions + data
  • usually 8, 16, 32, 64 bits
  • each word has separate memory address
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

word length

A

the number of bits that are assigned to it

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

CPU

A

controls, calculates and executes instructions

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

arithmetic-logic unit

A

performs arithmetic, logical and shift operations on data

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

control unit

A
  • coordinates activity of all other components
  • each instruction accepted + decoded
  • separate steps (fetching data address, fetching data itself) are identified
  • each step synced with regular pulse from system clock
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

system clock

A
  • series of regular on/off signals used to sync operations
  • actions usually carried out on rising edge of clock
  • actions each take fixed number of cycles to complete
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

factors affecting cpu performance

A
  • number of cores (more processors = more instructions executed simultaneously)
  • word length (amount of data that CPU can process simultaneously)
  • address/data bus widths
  • clock speed
  • cache size
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

buses

A
  • series of wires that transfer data signals between internal components
  • typically consist of 8, 16, 32 or 64 lines
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

control bus

A

used to send control signals between
- each I/O controller and the processor
- as well as between the processor and memory

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

data bus

A
  • sends data between components
  • bi-directional
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

why data buses bidirectional

A
  • when data/instructions needed, transferred from memory to processor
  • after execution, data transferred back to memory
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

address bus

A
  • carries address of a memory location from processor to I/O controllers + memory
  • may carry address of next instruction to be processed, or data referred to in the instruction
  • unidirectional
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

control bus - control signals

A
  • memory read
  • memory write
  • bus request
  • bus grant
  • clock signal
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

memory read

A

causes data from addressed location to be placed on data bus

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

memory write

A

causes data on data bus to be written into addressed location

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

bus request

A

device requesting use of the data bus

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

bus grant

A

CPU has granted access to the data bus

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

how are buses used in write process (writing data to main mem)

A
  • address of memory to be written to placed on address bus
  • data to be written is placed on data bus
  • signal to write is placed on control bus
  • control bus carries a clock signal (to synchronise memory + processor)
  • when write signal received on the control bus > data from data bus stored > into location identified by address bus
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
28
Q

data bus width

A
  • width of data bus defined by number of wires or lines it contains
  • bus width affects overall system performance
  • if data bus same width as word, data can be transferred to+from memory in a single operation
  • (i.e. if it is 16 lines and a word is 32 bits, it will require two memory access and data transfer operations)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
29
Q

address bus width

A
  • determines the maximum possible memory addresses of the system
  • i.e. a 32-bit bus can carry 2^32 bits (4GiB)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
30
Q

what is a register

A

memory/storage location inside a processor

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

general purpose registers

A
  • used to temporarily store results from ALU
  • faster than writing data back to slow memory
  • processor able to immediately access and re-use these results
32
Q

accumulator

A

a single general purpose register that some processors have

33
Q

dedicated registers

A

program counter (PC)
current instruction register (CIR)
memory address register (MAR)
memory buffer registers (MBR)
status register (SR)

34
Q

program counter PC

A

holds the memory address of the next instruction to be executed

35
Q

current instruction register CIR

A

holds the current instruction

36
Q

memory address register MAR

A

holds the address that the CPU needs to fetch/store data to/from in memory

37
Q

memory buffer register MBR

A

temporarily holds data moving between the processor and main memory

38
Q

status register SR

A
  • holds information about current state of operations
  • used to set flags (e.g. carry or overflow)
  • used to detect error conditions
39
Q

cache

A

small amount of super-fast memory that stores data frequently used by the processor (i.e. freq used programs)

40
Q

cache specs

A
  • larger and slower than a register
  • faster and smaller than RAM
  • larger amounts of cache memory can improve processing speed, but massively increase processor cost
41
Q

order of memory speed

A

CPU registers
lvl 1 cache
lvl 2 cache
lvl 3 cache
RAM

42
Q

executing instructions

A
  • processor temporarily holds current instruction being executed
  • holds address of the data that it needs, and also the data itself
  • also keeps track of the address of the next instruction to be executed
43
Q

fetch-execute cycle

A
  • processors operate in defined stages that are used to carry out program instructions
  • process repeated for each instruction in a program
44
Q

fetch

A
  • contents of PC transferred to MAR (to enable mem address to be transferred along address bus to memory)
  • contents of MAR placed onto address bus (so correct location in main memory will be accessed)
  • transfer of actual data uses data bus
  • contents of addressed memory location/value received on data bus loaded into MBR (not all fetches will be for instructions, so cannot be loaded directly into CIR)
  • PC is incremented (so next instruction in sequence can be fetched)
  • contents of MBR copied to CIR (because control unit uses instruction from CIR)
45
Q

decode

A
  • control unit decodes instruction held by CIR
  • instruction split into opcode and operand
46
Q

instruction set

A
  • defines all the instructions and how they are represented
  • different processors have own instruction sets, but may perform similar/identical operations
47
Q

types of instruction

A
  • data transfer (i.e LOAD, STORE)
  • arithmetic operations (i.e. ADD, SUBTRACT)
  • comparison operation to compare two values
  • logical operations (i.e. AND, OR, NOT)
  • branch – conditional and unconditional
  • shift operations (shift bits left or right in a register)
48
Q

the number of bits used for machine code instruction dependent on …

A

… processor word length

49
Q

instruction components

A

instruction typically includes 2 parts
- operation code / opcode (first set of numbers)
- operand(s) (second set of numbers)

50
Q

opcode includes:

A
  • actual instruction the processor needs to carry out (e.g. ADD, SUB)
  • the addressing mode
51
Q

addressing mode

A

specifies whether the operand is
- the actual data to be used
- the memory address where the data is held
- a register where that data is held

52
Q

operand

A

one or more items of data (which can be values, memory addresses or registers) that are to be used in the instruction

53
Q

immediate addressing

A

addressing mode specifies that data is a value

54
Q

direct addressing

A

addressing mode specifies that data is an address

55
Q

dis/advantages of secondary storage devices

A
  • durability
  • read/write speed
  • capacity
  • portability
  • cost
56
Q

how does hdd work

A
  • concentric tracks (containing sectors) created on magnetic disk platters
  • disk spins at high speeds (3,600 - 7,200rpm)
  • spinning platters are each read by drive heads
  • data read or written as sector moves under the head
57
Q

how do !magnetic! storage devices work

A
  • positive or negative polarisation of magnetic particles creates binary pattern on the disk
  • changes of polarisation create electromagnetic pulses
  • each pulse read as a 1. anything else is a 0
58
Q

development of hdds

A

fitting more data in same physical space requires technological changes:
- more densely packed platters
- smaller magnetic parts
- smaller read/write heads
- perpendicular over longitudinal recording

59
Q

how does optical disk work

A
  • high powered laser “burns” pits into the CD surface
  • low powered laser detects the reflection from pits and lands
  • only a pit end deflects the laser light, and is read as a binary 1
60
Q

optical disk formats

A
  • available as read-only, recordable, or re-writeable
  • each format uses diff techniques to achieve a differential between a ‘pit’ and a ‘land’
61
Q

optical disk format - recordable

A

recordable formats use a transparent dye that becomes opaque when heated by a laser

62
Q

optical disk format - re-writeable

A

re-writeable formats use a laser to change the state of a phase-change alloy, and a magnet to set the new state

63
Q

optical disk capacity

A
  • different laser wavelengths “burn” smaller pits
  • spiral track can therefore be more tightly wound, creating longer track = higher capacity
64
Q

NAND flash memory cells

A
  • flash mem contains no moving parts
  • used by SSDs
  • floating gate transistors trap and store a change. the charge is retained without power
65
Q

combining flash memory cells

A
  • cells combined in blocks
  • cells trap charge
  • data must be read, deleted or written in blocks
  • data cannot be overwritten w/o being erased first
66
Q

inside a solid state disk

A
  • ssd comprises millions of NAND flash mem cells
  • cells also managed by a controller that organises pages and blocks of memory
  • these are arranged within an array of chips on a circuit board
67
Q

solid state disk advantages

A
  • no moving parts > faster access speed, more durable
  • lower power consumption > extended battery life in portable devices, devices stay cooler
  • purely electronic > minimal latency
  • silent in operation
  • light in weight
68
Q

why use ssd and hdd

A
  • hdds useful where large capacity is needed > cheaper than ssd
  • ssds have faster access speeds/lower latency than hdds > access to data faster than if just hdd used
69
Q

barcode readers

A
  • typically work on principle of reflected light
  • light from laser directed at pattern
  • sensor detects intensity of light that bounces back
70
Q

barcode pattern physics

A
  • black bar absorbs more light, less reflective, binary reading of 0
  • white bar more reflective, binary reading of 1
  • binary pattern creates a unique identity
71
Q

common type of barcode system

A

universal product code version ‘a’ (UPC-A) / european article number (EAN)

72
Q

laser printers

A
  • print drum coated in positive static charge
  • printer generates bitmap of page from data
  • laser shone on print drum, reverses charge on drum where image should be dark
  • toner given positive charge
  • charged drum picks up toner
  • toner transferred from drum to paper
  • toner then fused to paper (once off drum)
73
Q

how do radio frequency id systems work

A
  • RFID systems use a transponder and a receiver
  • powered receiver emits radio frequency energy
  • transponder antenna in tag becomes energised by radio waves
  • transponder can then send data to receiver
74
Q

uses of RFID tags

A
  • security control points
  • identification of people/goods
  • shipping and supply chain tracking for goods
  • banking payments
75
Q

passive tags

A
  • passive transponders (used in bank cards e.g.) have no power source themselves
  • rely on radio waves from receiver for their energy
  • transponders need to be placed very close to receiver
76
Q

active tags

A
  • use larger, battery-powered beacon which can broadcast own signal to receivers up to 300m away
  • useful for larger items not placed on a receiver by hand (e.g. in shipping, warehousing)