Unit 1: Computer Components Flashcards

1
Q

Describe the role of the Control Unit.

A
  • Coordinates the activity of all other processor components
  • Manages the phases of the Fetch-Execute cycle
  • Decodes instructions received into the processor
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Name five registers used in the Fetch-Execute cycle.

A
  • Program Counter (PC)
  • Memory address register (MAR)
  • Memory data register (MDR)
  • Current instruction register (CIR)
  • Accumulator (ACC)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How is the Program Counter (PC) used in the Fetch-Execute cycle?

A
  • Holds the address if the next instruction
  • Incremented by one when the instruction is read, ready for the next cycle.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How is the Memory address register (MAR) used in the Fetch-Execute cycle?

A
  • Contains the address of the memory location from which data or an instruction is to be fetched.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

How is the Memory data register (MDR) used in the Fetch-Execute cycle?

A
  • Temporarily stores the data being transferred to and from memory.
  • It acts as a buffer, allowing the processor and memory units to act independently without being affected by minor differences in operation.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

How is the Current instruction register (CIR) used in the Fetch-Execute cycle?

A

Holds the instruction currently being decoded or executed.

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

How is the Accumulator (ACC) used in the Fetch-Execute cycle?

A

Holds the result of an instruction.

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

What is the purpose of the Arithmetic-Logic Unit (ALU) in the processor?

A

Used to carry out instructions received by the processor and produce the processed output.

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

What is the System clock in the processor?

A

A continuously cycling signal that is used as a timing pulse for all processor components.

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

What is a bus?

A

Buses are a set of ​parallel wires​ which connect ​two or more components​ inside the CPU.

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

What does the system bus consist of?

A

The system bus consists of three separate buses carrying control signals, addresses and data

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

What are registers?

A

Registers are ​small memory cells​ that operate at a ​very high speed​. They are used to temporarily store data​ and all ​arithmetic​, ​logical​ and ​shift​ operations occur in these registers.

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

Describe the purpose of the Data Bus.

A

This is a ​bi-directional bus​ used for transporting ​data​ and ​instructions​ between components.

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

Describe the purpose of the Address Bus.

A

Used to transmit the ​memory addresses​ specifying where data is to be sent to or retrieved from. The width of the address bus is proportional to the ​number of addressable memory locations​.

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

Describe the purpose of the Control Bus.

A

This is a ​bi-directional​ bus used to transmit ​control signals​ between internal and external components. The control bus coordinates the use of the address and data buses and provides status information between system components.

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

Name 7 control signals.

A
  • Bus requests
  • Bus grant
  • Memory write
  • Memory read
  • Interrupt request
  • Clock
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

How is Assembly language processed by the CPU.

A

Assembly code​ uses ​mnemonics​ to represent instructions; the instruction is divided into ​operand​ and ​opcode​ in the Current Instruction Register. The operand contains the data or the ​address​ of the data upon which the operation is to be performed. The opcode specifies the ​type of instruction​ to be executed.

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

What is Pipelining?

A

Pipelining is the process of completing the fetch, decode, and execute cycles of ​three separate instructions​ ​simultaneously​, holding appropriate data in a ​buffer​ in close proximity to the CPU until it’s required. While one instruction is being executed, another can be decoded and another fetched.

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

What is the purpose of Pipelining?

A

Pipelining is aimed to reduce the amount of the CPU which is kept ​idle​. It is separated into instruction pipelining​ and ​arithmetic pipelining​.

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

What is instruction pipelining?

A

Instruction pipelining is separating out the instruction into fetching, decoding, and executing.

21
Q

What is Arithmetic pipelining?

A

Arithmetic pipelining is breaking down the arithmetic operations and overlapping them as they are performed.

22
Q

Describe the sequence of operations in the Fetch-Decode-Execute Cycle.

A

Fetch phase:
- Address from the PC is copied to the MAR
- Instruction held at that address is copied to MDR by the data bus
- Simultaneously, the contents of the PC are increased by 1
- The value held in the MDR is copied to the CIR

Decode phase:
- The contents of CIR are split into operand and opcode

Execute phase:
- The decoded instruction is executed

23
Q

What three factors affect CPU performance?

A

Clock speed, number of cores and the amount and type of cache memory.

24
Q

How does Clock speed affect CPU performance?

A

All processor activities begin on a clock pulse, and the clock speed is the time taken for one clock cycle to complete. Consequently, the higher a system’s clock speed, the more instructions it can process over a given time.

25
Q

How does the Number of cores in a CPU affect it’s performance?

A

A core is an ​independent processor​ that is able to run its own fetch-execute cycle. A computer with multiple cores can complete ​more than one​ fetch-execute cycle at any given time. A computer with dual cores can theoretically complete tasks ​twice as fast​ as a computer with a single core in programs which are able to utilise multiple cores efficiently.

26
Q

How does the Amount and type of Cache Memory affect a CPU’s performance?

A

Cache memory is the ​CPU’s​ ​onboard memory​. Instructions fetched from main memory are copied to the cache, so if required again, they can be accessed quicker. As cache fills up, unused instructions are replaced.

27
Q

What are the three types of Computer Architecture?

A
  • Von Neumann Architecture
  • Harvard Architecture
  • Contemporary Processing
28
Q

Describe Von Neumann Architecture.

A

This architecture includes the basic components of the computer and processor (single control unit​, ​ALU​, ​registers​ and ​memory units​) in which a ​shared memory ​and ​shared data bus​ is used for both data and instructions.

29
Q

Describe Harvard Architecture.

A

Harvard architecture has physically separate memories for instructions and data, more commonly used with embedded processors.

30
Q

Name two advantages of Von Neumann Architecture.

A
  • Cheaper to develop​ as the control unit is easier to design.
  • Programs can be ​optimised in size.
31
Q

Name two advantages of Harvard Architecture

A
  • Quicker execution​ as data and instructions can be fetched in parallel.
  • Memories can be different sizes​, which can make more efficient use of space
32
Q

Describe the difference in the devices used between Von Neumann and Harvard architecture.

A

Von Neumann architecture is used in PCs, laptops, and servers whereas Harvard architecture is used in digital signal processing, microcontrollers, and in embedded systems.

33
Q

Describe the processors in Reduced Instruction Set Computers (RISC).

A

In these processors, there is a ​small instruction set​. Each instruction is approximately ​one line of machine code​ and takes one clock cycle.

34
Q

Describe the processors in Complex Instruction Set Computers (CISC).

A

In these processors there is a ​large instruction set​. The aim is to try and accomplish tasks in as few lines of assembly code as possible. These instructions are built into the hardware​.

35
Q

What are the three main advantages of Complex Instruction Set Computers (CISC)?

A
  • Quicker to code programs
  • The compiler has less work to translate high level code into machine code
  • Less RAM is required since code is shorter
36
Q

What are the three main advantages of Reduced Instruction Set Computers (RISC)

A
  • The hardware is simpler to build
  • Pipelining is possible because each instruction takes the same amount of time
  • Better performance processors come at less cost due to RISC use of RAM and software
37
Q

Describe a Graphics Processing Unit (GPU).

A

A graphics processing unit (GPU) is a ​co-processor​ which has lots of​ independent processors​ working in parallel making it very efficient at tasks such as image processing, and machine learning.

38
Q

Describe how Multi-core CPUs can have higher performance.

A

Multi-core CPUs have ​multiple independent cores​ that can complete instructions separately which results in higher performance.

39
Q

Describe how Parallel systems can have higher performance.

A

Parallel systems accomplish a similar task however instead of requiring multiple cores they can complete tasks with a single core, by using ​threading​.

40
Q

Name the three main storage device types.

A
  • Optical
  • Magnetic
  • Flash
41
Q

Describe how optical storage devices function.

A

Optical devices are read from and written to using ​lasers​. Information is represented by portions of the disc which either ​reflect ​or ​scatter the incident laser light written in spiral tracks on the disc’s surface.

42
Q

Describe an example of an optical storage device.

A

CDs - Small, thin, portable disc used to store small quantities of information, usually audio files. However, they are easily damaged, have limited storage capacity and slow transfer speeds.

Derivatives include DVDs and Blu-Ray.

43
Q

Describe how magnetic storage devices function.

A

Devices which store information magnetically represent binary information using ​two magnetic states​ which represent ​1​and ​0​, allowing any information to be represented in binary form.

44
Q

Describe an example of a magnetic storage device.

A

Hard Disk Drives (HDDs) - Hard disk drives typically have​ high capacities​ and work by rotating magnetic platters at high speeds under a read/write head on an actuating arm which allows the read/write head to access any part of the platter.

Disadvantages of HDDs include their somewhat ​slow data transfer speeds​ and their tendency to become damaged by movement. The combination of brittle platters and moving parts results in a delicate device.

45
Q

Describe how flash storage devices function.

A

The technology makes use of silicon ​semiconductors ​forming the logic gates NAND and NOR to store electrical charge in one of two states: high or low. These two states represent the binary values True and False, which can be used to represent information.

46
Q

Describe an example of a flash storage device.

A

Solid State Drives (SSDs) - Extremely​ light and portable​, while having no moving parts meaning they are much more resistant to damage from movement than HDDs. SSDs have very high data transfer rates, with primary disadvantage being cost.

47
Q

What is RAM?

A

Random access memory is a type of ​fast ​main memory used to store data and programs that the computer is currently using.
This speeds up the computer’s execution as RAM has higher access speeds than even flash memory.
RAM is significantly more expensive per gigabyte​ than secondary storage devices, and it is volatile; it loses its information when power is lost.

48
Q

What is ROM?

A

Read only memory, as the name suggests, ​cannot be modified​. Once programmed, the state of the memory cells inside does not changed. ROM is non-volatile, so it retains its data even when the computer is powered off.