Unit 1: System Architecture Flashcards

1
Q

What is the CPU and what is its role?

A

Internal hardware component of the computer that is responsible for executing instructions of programs. It is made up of many important components, each with its own role.

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

What is the function of the CU?

A
  • Manages the fetching, decoding and executing of program instructions. (Fetch, Decode Execute)
  • Controls the flow of data inside the CPU (to registers, ALU, cache) and outside the CPU (to main memory and input/output devices)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is the function of the ALU?

A
  • Performs logic operations (AND, OR, NOT) and binary shifts.
  • Performs arithmetic calculations including adding, subtracting, comparing sizes of numbers, multiplication and division.
  • Contains the accumulator register.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is the function of the Cache?

A
  • Very fast memory in the CPU (Slower than registers, faster than RAM)
  • Stores regularly used data so it can be accessed quickly by the CPU when it’s needed. (When the CPU request data, it checks the cache first before fetching it from the RAM)
  • Has a very low capacity and is expensive compared to RAM and secondary storage.
  • 3 levels of Cache memory - L1 is quickest but has lowest capacity, L3 is slowest but holds the most.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is the Von Neumann Architecture?

A

A system where the CPU runs programs stored in memory. Program consists of instructions and data which are stored in memory addresses.

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

What is the function of the MAR?

A

Holds the memory address of the current instruction, and then the data that it uses, so that these can be fetched from memory.

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

What is the function of the MDR?

A

Holds the actual instruction, and then the data that has been fetched from memory.

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

What is the function of the PC?

A

Holds the address of the next instruction to be executed.

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

What is the function of the Accumulator?

A

Stores intermediate results of calculations in ALU before it is transferred from memory.

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

To summarise, what are the steps involved in the fetch, decode, execute cycle?

All information in GoodNotes

A

CPU operates by repeating three operations:
FETCH - Causes the next instructions and any data involved to be fetched from main memory.
DECODE - Decodes the instruction.
EXECUTE - The instruction is executed.

All information in GoodNotes

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

What are embedded systems and how are they mainly used?

A

Embedded systems are computers built into other devices.
* E.G Dishwashers, Microwaves, TVs
* Often used as control systems - monitor and control machinery in order to achieve a desired result. E.G In a dishwasher, the embedded system could control the water pumps and water release mechanisms.
* Due to them being dedicated to a single task, they are often easier to design, cheaper to produce, and more efficient at doing their task than a general purpose computer.

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

What is the purpose of a computer and a computer system?

A

COMPUTER - Takes data, processes it, then outputs it.
COMPUTER SYSTEM - Hardware and software that work together to process data/complete tasks.

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

What does volatile and non-volatile memory mean?

A

VOLATILE - Temporary memory - requires power to retain its data.
NON-VOLATILE - Permanent memory - keeps its content even when it doesn’t have any power.

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

What is RAM?

A

Random Access Memory is used as main memory in a computer. It can be read and written to and is volatile.
* Main memory is where all data, files and programs are stored while they’re being used.
* When a computer boots up, the operating system is copied from secondary storage to RAM or when a software application is opened, the same process occurs. They stay in RAM until the application is closed
* Slower than CPU cache, faster than secondary storage.

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

What is virtual memory and when is it used?

A
  1. Computers have limited amounts of RAM and as applications are opened, RAM fills with data.
  2. When RAM is full, data that hasn’t been used recently is moved to a location on secondary storage (virtual memory)
  3. Virtual memory is needed if there are too many applications open at once or if a particularly memory intensive application is being used (or both)
  4. If the CPU needs to read data stored in virtual memory, it must move the data back to RAM which is slow as data transfer rates are much slower on secondary storage than RAM.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

How can using virtual memory affect system performance?

A
  • Using virtual memory can make a computer slower to respond when switching between applications (as data for one application in virtual memory is swapped with the other)
  • When using memory-intensive applications (due to data constantly moving between virtual memory and RAM just to keep the program running)
17
Q

What is ROM?

A

Read Only Memory is non-volatile memory and contains all the instructions a computer needs to properly boot up which are called (BIOS) Basic Input Output System. BIOS is a type of firmware - hardware specific software built into a device.
1. As soon as the computer is powered on, CPU reads instructions from ROM which tells the CPU to perform self checks, and set up the computer. e.g test the memory is working ok, see what hardware is present and compy the OS into RAM.

18
Q

What is CPU performance dependent on?

A
  • Clock Speed
  • Number of Cores
  • Cache Size
19
Q

What is Clock Speed and how does it affect CPU Performance?

A

Number of instructions a single processor core can carry out per second (Hz) - This is usually around 3.5 GHz for most desktop computers.
The clock sends a pulse at fixed intervals to trigger the next stage of the fetch, decode, execute (FDE) cycle.

* The higher the clock speed, the greater number of instructions that can be carried out per second.
* CPUs can be overclocked to make them run at a higher clock speed than the factory-set rate. But if not done properly, it can make CPUs overheat, cause crashing or permanent damage to the system. - High performance cooling systems are often needed.

20
Q

What is Cores and how does it affect CPU Performance?

A
  • Each core in a CPU can process data independently of the rest.
  • The more cores, the more instructions it can carry out at once, so the faster it can process a batch of data.
  • PCs and smartphones have 4 or more cores these days.
21
Q

What is Cache and how does it affect CPU Performance?

A
  • A larger CPU cache gives the CPU faster access to more data it needs to process.
22
Q

Generally, what does a higher clock speed, number of cores and cache size mean for a CPU?

A

They will have better performance but will be more expensive.

23
Q

What can too little RAM mean for a computer?

A

The computer may run slowly due to the use of virtual memory being needed.

24
Q

What does more RAM mean for a computer?

A
  • The more applications or more memory-intensive applications it can run smoothly, making it faster overall.
  • RAM can easily be upgraded by replacing RAM sticks with higher capacity or higher speed ones.
  • If a computer already has plenty of RAM to run everything the user wants, increasing RAM won’t make a difference to performance.
25
Q

What is the role of GPUs?

A
  • Graphics processing units are specialised circuits for handling graphics and image processing which can reliev processing load on the CPU, freeing it to do other things.
  • Computers have basic GPUs integrated on the motherboard or CPU but for better graphics performance, a dedicated graphics card (GPU) is used.
  • Using high-end graphics cards can greatly improve performance in graphics-intensive applications.
26
Q

What is Primary Storage?

A

Memory areas that the CPU can access very quickly, like CPU registers, cache, ROM and RAM. It has the fastest read/write speeds and is mostly volatile.
Primary storage is the memory in which the computer can store the data or instructions that are currently in use.

27
Q

What is Secondary Storage?

A

It’s where all data (OS, applications and user files) are stored when not in use. Includes magnetic hard disk drives, solid state drives, CDs, SD cards. Non-volatile and read/write speeds are much slower compared to primary.

28
Q

What are Hard Disks (HDDs) and what is there function?

A
  • Traditional internal storage found in PCs/Laptops - often called hard drives.
  • Made of stack of magnetised metal disks spinning thousands of times a second.
  • Data stored magnetically in small areas on the disk’s circular track - a moving arm can access these areas and read/write data.
  • Portable HDDs are popular for backing up/transporting large amounts of data
  • Generally long lasting and reliable but can be damaged by large impacts e.g being dropped.
29
Q

What are Solid State Drives and what is there function?

A
  • Used for the same purpose as HDDs - internal/external storage.
  • Most use a type of flash memory (common type of non-volatile memory)
  • Have significantly faster read/write times than HDDs and cna give quicker times for bootingup/opening programs and files.
30
Q

What are advantages of SDDs?

A
  • Faster
  • Don’t need defragmenting
  • More shock-proof than HDDs
  • Silent whereas HDDs make more noise
31
Q

What are advantages of HDDs?

A
  • Cheaper
  • Have a higher capacity (than SDDs)
  • Longer read/write times than SDDs which can only be written a certain number of times before they deteriorate.
32
Q

What is Memory (Primary Storage) used for?

A

Memory (Primary Storage)
* Holds digital data/instructions
* Uses on/off electricity signals
* Needs electricity to work
* Faster access
* Volatile

33
Q

What is Storage (Secondary Storage) used for?

A

Storage (Secondary Storage)
* Holds digital data/instructions
* Uses a method of storage that does need electricity
* Keeps a copy of data and instructions when they are not in use
* Slower access

34
Q

What are optical disks and their function?

A
  • CDs, DVDs, Blue-Ray disks
  • Come in three forms: read-only, write-once, rewritable.
  • As internet speeds have increased, streaming and download services like Netflix, Spotify and Steam have removed the need for optical disks.
  • Modern devices (phones/tablets) don’t have optical drives.
  • Used to be popular for backing up data but have a low capacity per disk, very slow read/write speeds and poor reliablility compared to flash storage devices.
  • Very cheap, portable and won’t be damaged by water or shocks but are easily scratched.
35
Q

What are magnetic tapes and their function?

A
  • Greater storage capacity than HDDs
  • Extremely low cost per GB
  • Often used by large organisations in archive libraries to store huge amounts of data.
  • Comes in plasic cassettes requiring a special tape-drive for read/writing.
  • Read/written sequentially, meaning it is read/written from beginning to end, or until stopped by the computer meaning it’s very slow at finding specific data stored on it, but fast read/write speed once it is in the correct place to begin read/writing.
36
Q

What is a processor?

A

A processor is a special component that processes data and instructions to control other components within the computer.
Two main processors: GPU, CPU

37
Q

What is a general purpose system?

A

General purpose systems are capable of performing many different tasks.