Computer Architecture Flashcards

(31 cards)

1
Q

What is the role of the CPU

A
  • The CPU processes instructions and data that are input into the computer so that the result can be output.
  • Fetch decode and execute
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Define Microprocessor/ CPU

A

A microprocessor is a type of integrated circuit that is contained on a single chip

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

Function of the Address Bus (3)

A
  • Transports an address
  • Of the next item to be fetched
  • Data travels one way (unidirectional)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Function of the Data Bus (3)

A

-Transports data
- That is currently being processed // that will be / has been processed
- Data can travel in both directions (bidirectional)

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

Function of the Control Bus (3)

A
  • Transports signals
  • Controls the actions of the CPU
  • Can be either Unidirectional or Bidirectional
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is a bus?

A

A bus is a set of parallel wires through which data/signals are transmitted from one component to another

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

Function of the Arithmetic logic unit (ALU)

A

Performs arithmetic operations and logical decisions

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

Function of the Control Unit (CU)

A
  • Coordinates how data moves around the CPU by sending a signal to control the movement of the data
  • Decodes the instructions fetched from memory
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Function of Registers

A

Extremely small, extremely fast memory located in the CPU and hold small amounts of data needed as part of the fetch-execute cycle

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

What are the 5 main registers of the CPU?

A
  • The Program Counter (PC)
  • The Memory Address Register (MAR)
  • The Memory Data Register (MDR)
  • The Accumulator (ACC)
  • Current Instruction Register (CIR)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Function of the Program Counter (PC)

A
  • Holds the memory address of the next instructions to be executed
  • Increments by 1 as the fetch-decode-execute cycle runs
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Function of the Memory Address Register (MAR)

A
  • Holds the memory address of where data or instructions are to be fetched from memory
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Function of the Memory Data Register (MDR)

A
  • Stores the data or instruction which has been fetched from memory
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Function of the Accumulator (ACC)

A
  • Stores the results of any calculations that have taken place in the Arithmetic Logic Unit (ALU)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Function of the Current Instruction Register (CIR)

A
  • Stores the instruction the CPU is currently decoding or executing
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Describe the role of the control unit, the control bus, the data bus and the address bus when fetching an instruction from memory (4)

A
  • The address of memory (holding instruction) is placed on the address bus (1)
  • The control unit sends a signal (1) on the control bus (to start a read operation) (1)
  • The instruction is/the contents of the memory are placed on the data bus (1)
17
Q

What is the FDE cycle?

A
  • The Fetch-Decode-Execute Cycle is the cycle that the central processing unit (CPU) runs through billions of times per second to make a computer work
18
Q

Describe the process of the fetch stage

A
  • During the fetch stage of the cycle, the program counter holds the address of the next instruction to be fetched from memory
  • The address of the next instruction or data to be fetched is copied into the memory address register (MAR)
  • The address of the instruction or data is then sent along the address bus and awaits a signal from the control bus
  • The signal sent along the control bus is sent from the control unit (CU) to the main memory
  • The data or instructions received from main memory is fetched to the memory data register (MDR) via the data bus
  • A copy of the instruction or data is stored in the current instruction register (CIR)
  • The program counter (PC) increments by 1 so it is pointing to the next instruction to be executed
19
Q

Describe the process of the decode stage

A

During the decode stage of the cycle, the CPU needs to work out what is required from the instruction.

20
Q

Opcode

A

What the instruction is

21
Q

Oprand

A
  • What to do the instruction to
  • This could be either data or an address where the data is stored
22
Q

Describe the process of the execute stage and give examples.

A
  • During the execute stage of the cycle, the CPU will carry out the instruction that was fetched
  • Performing a calculation
  • Storing a result or data back in main memory (RAM)
  • Going to main memory to fetch data from a different location
23
Q

What three characteristics affect the CPU speed

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

Clock Speed

A
  • The clock speed is measured in Hertz (Hz) and is the number of fetch-decode-execute cycles that can take place in 1 second
  • The faster the clock speed, the more instructions can be fetched and executed per second
25
Cache Size
- Cache is very small, very fast memory on or close to the CPU - The larger the cache size, the more frequently used instructions or data can be stored - This results in the CPU having to complete fewer fetch cycles from memory (RAM), speeding up the performance
26
Number of Cores
- A core works like it is its own CPU - Multiple core processors mean they have multiple separate processing units that can fetch, decode and execute instructions at the same time
27
Explain why having a dual core processor might improve the performance of the computer (2)
- The computer with the dual core processor has two cores/double the amount of cores [1] - Parallel processing can take place [1] - Each core can execute a separate instruction at the same time [1] - Each core can process instructions independently of each other [1]
28
Describe a CPU instruction set
An instruction set is a list of all the commands that can be processed by a CPU, and the commands are machine code
29
What is an embedded system?
An embedded system is a computer system which is used to perform a dedicated function, inside a larger mechanical unit
30
Examples of embedded systems
-Heating thermostats -Hospital equipment -Washing machines -Dishwashers -Coffee machines -Satellite navigation systems -Factory equipment -Security systems -Traffic lights
31
Properties of an embedded system
-They are small in size -They use less power than a general-purpose computer -They have a lower cost