1. The Characteristics of Contemporary Processors, Input, Output and Storage Devices Flashcards

1
Q

What is the CPU, and what does it do?

A

The CPU is the Central Processing Unit. It is the component of the computer which executes the Instructions which make up computer programs.

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

What is the System Bus, and what does it consist of?

A

The System Bus is the connections between the CPU and different components in the computer. It consists of the Address Bus (which carries Addresses), the Data Bus (which carries Data), and the Control Bus (which carries Control Signals).

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

What is the purpose of the Control Bus?

A

The Control Bus carries Control Signals between components of the computer. It is a bi-directional Bus. Control signals may be related to memory access (read/write), interrupts, bus requests, and clock signals.

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

What is the purpose of the Data Bus?

A

The Data Bus carries data between components of the computer. It is a bi-directional Bus. The speed of transfer of data is determined by the Data Bus Width, which is how much data can be transferred per clock cycle.

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

What is the purpose of the Address Bus?

A

The Address Bus carries addresses from the CPU to other components in the computer. It is a one-directional Bus. The Address Bus Width determines the number of bits used to represent an address in memory. The more bits used to represent an address, the higher the limit on available system memory. In modern 64-bit computer architectures the upper limit is 2^64 bytes of memory.

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

What is the von Neumann Architecture?

A

The von Neumann Architecture specifies how the core components of a computer are organised and their purpose. In this type of architecture a single Main Memory unit stores the Data and Instructions for the currently executing processes. Instructions are fetched one at a time into the CPU over the System Bus and executed. The idea of storing the instructions for processes in the Main Memory is called the Stored Program Concept, and allows the concept of a General Purpose Programmable Computer. Most modern computers have a von Neumann Architecture.

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

What is the Harvard Architecture?

A

In the Harvard Architecture there are separate Memory units for Instructions and Data which each have their own Bus. This allows Instructions and Data to be fetched into the CPU at the same time (in parallel). This type of architecture can be useful for special purpose processing of large amounts of data, such as in Digital Signal Processing (e.g. for Computer Vision applications).

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

What is the ALU?

A

The Arithmetic Logic Unit is specialised circuitry inside the CPU for performing mathematical and logical operations.

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

What is the Control Unit?

A

The Control Unit is the circuitry inside the CPU which controls and coordinates the components of the CPU and other components inside the computer. It is involved in decoding and executing Instructions for processes.

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

What is the purpose of the System Clock?

A

The System Clock sends timing signals around the computer which synchronises the actions of components. The speed of the System Clock is an upper speed limit on the processing of Instructions on the computer.

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

What is a Register? Name all the special purpose Registers in the CPU and their purposes.

A

A Register is a memory unit inside the CPU. The following are special purpose Registers:
- Program Counter (PC) - stores the Address of the next Instruction from the current process.
- Current Instruction Register (CIR) - stores the Instruction which is currently executing.
- Memory Address Register (MAR) - stores the address used for a memory access (Load or Store), connected to the Address Bus.
- Memory Data Register (MDR) - stores data loaded or to be stored during memory access, connected to the Data Bus.
- Status Register (SR) - stores information about the current status of the CPU, for example whether an integer overflow has occurred.
- Accumulator (ACC) - stores the result of an instruction.

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

What is the purpose of the Fetch stage in the Fetch-Execute Cycle? Describe the steps of the Fetch stage.

A

The Fetch Stage fetches the Instruction at the Address stored in the Program Counter from Main Memory (RAM) into the Current Instruction Register inside the CPU.

  1. The Address in the Program Counter (PC) is copied to the Memory Address Register (MAR). MAR ← [PC]
  2. The Address in the PC is incremented. PC ← [PC] + 1
  3. The Address in the MAR is sent over the Address Bus to Main Memory, and the Instruction at that Address is sent over the Data Bus to the Memory Data Register (MDR). MDR ← [[MAR]]
  4. The Instruction in the MDR is copied to the Current Instruction Register (CIR). CIR ← [MDR]
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is a Core? How does having multiple Cores affect CPU performance?

A

A Core is an independent execution unit inside the CPU which can execute Instructions. A CPU which has multiple Cores can execute multiple Instructions simultaneously (in parallel) which speeds up the computer. Not all processes are written in a way which can take advantage of this, more commonly each Core will execute Instructions from a different process which will speed up Multi-tasking.

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

What is Cache Memory? How does the amount of Cache Memory affect CPU performance?

A

Cache Memory sits between the CPU and Main Memory (RAM). When data is fetched from RAM into the CPU, the CPU checks whether that data is in the Cache - if it is (Cache Hit) it is fetched into the Memory Data Register (MDR), otherwise (Cache Miss) the block of memory containing the data is fetched into the Cache and then the data into the MDR. This means the Cache is always populated with the data surrounding previous requested data from RAM, which gives a higher probability of Cache Hits in the future. Storing data closer to the CPU increases the speed of memory access, and the more Cache Memory the higher the probability of a Cache Hit which further increases this benefit. Modern CPUs have a hierarchy of up to three levels of Cache.

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

What is the Word Length? How does it affect CPU performance?

A

The Word Length is the unit of data which can be processed in a Register on the CPU, for modern computers this is usually 64-bit. Data larger than the Word Length may take multiple clock cycles to process, so larger Word Length improves the performance of the CPU.

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

How does Data Bus Width affect CPU performance?

A

The Data Bus Width is the amount of data which can be transferred over the Data Bus in a single Clock Cycle. The larger the Data Bus Width, the quicker data moves around, and therefore the faster the computer.

17
Q

What is Pipelining and how does it affect CPU performance?

A

Pipelining is a technique where the Fetch, Decode and Execute stages for different instructions happen simultaneously. For example the first instruction may be executed at the same time as the second is being decoded, and the third is fetched from main memory.

18
Q

What is the difference between a CISC and RISC processer architecture?

A

CISC is Complex Instruction Set Computer
RISC is Reduced Instruction Set Computer

CISC architectures contain complex Instructions which may consist of several operations, and will be implemented in CPU Hardware as specialised circuitry.

RISC architectures contain simple atomic Instructions.

CISC and RISC architectures are both equivalent (Turing Complete) but represent different design philosophies. A program translated into a CISC Instruction Set will be shorter, than for the equivalent RISC Instruction Set. RISC processors can be more highly optimised because the circuitry required is simpler. RISC processors will be smaller, and require lower power than CISC.

For these reasons RISC processors are more often used in embedded systems and mobile devices, whilst CISC processors are used in desktop and laptop computers.

19
Q

How does a GPU differ to a CPU?

A

A GPU (Graphics Processing Unit) is a specialised processor intended to be used for rendering computer graphics in 3D. GPUs are massively parallel, allowing the same program (shader) to be run on lots of data simultaneously. Whilst originally these processors were developed exclusively for computer graphics, it has been found that they are very good at performing scientific and mathematical calculations in areas such as data processing and artificial intelligence.

20
Q

Explain the operation of a Magnetic Hard Disk Drive (HDD).

A

A Magnetic Hard Disk Drive contains a disk coated in a magnetic material. Suspended in that material are particles which can be polarised (north/south) to represent 0’s and 1’s. The Disk is partitioned into concentric tracks on the disk. The disk moves and a read/write head is positioned over the data it needs to access. The read/write head can determine the polarisation of the disk at a location to read, or change the polarisation to write to the disk.

Magnetic Hard Disk Drives tend to be relatively slow and can break due to the moving parts, yet are cheap per Megabyte of storage.

21
Q

What is the purpose of RAM?

A

RAM is Random Access Memory. RAM is volatile storage on the computer, which loses its state when the power is off. It stores data and instructions of programs currently running on the computer. RAM is often called the Main Memory of the computer.

22
Q

What is the purpose of ROM?

A

ROM is Read Only Memory. It stores the BIOS, Basic Input Output System, and the Bootloader. The BIOS stores the low level configuration information of components on the computer. The Bootloader loads the Operating System when the computer is powered on. In Embedded Systems the ROM may also store the Operating System of the device.