CPU Architecture Flashcards

(79 cards)

1
Q

What is a register?

A

Very quick and small storage memory inside the CPU

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

What does the mnemonic of an LMC command do

A

Tells the CPU what operation to carry out

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

What does the operand of an LMC command do

A

States the data the operation should use (the address off the instruction)

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

Why is assembly language not portable

A

It is unique to the processor family it is designed for

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

What are three buses

A

Address bus, data bus, control bus

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

What does the address bus transfer

A

Transfers the address from MAR to RAM

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

What does the data bus do

A

Carries the actual data between the CPU and RAM

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

What does the control bus do

A

Carries the signal that states whether the CPU is reading from or writing to RAM

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

What are the five stages of the fetch part of LMC

A
  1. Contents of PC copied to MAR
  2. PC increments
  3. MAR will send signal to RAM along the buses
  4. MDR will send data along the data bus
  5. Contents of MDR copied to CIR
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What are the different types of registers?

A

Program Counter, Memory Address Register, Memory Data Register, Accumulator, Current Instruction Register

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

What are the two types of registers that contain an address

A

Program counter, Memory Address Register

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

What is the LMC operation for ending an algorithm

A

HLT

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

What is the LMC operation for adding a value of an address to the accumulator

A

ADD

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

What is the LMC operation for subtracting a value of an address from the accumulator

A

SUB

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

What is the LMC operation for storing the value of the accumulator

A

STA

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

What is the LMC operation for loading the value of thee accumulator from memory

A

LDA

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

What is the LMC operation for branching to another instruction, no matter the value of the accumulator

A

BRA

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

What is the LMC operation for branching to another instruction if the value of accumulator is zero

A

BRZ

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

What is the LMC operation for branching to another instruction, if the value of the accumulator is positive or zero

A

BRP

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

What is the LMC operation for taking inputs

A

INP

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

What is the LMC operation for outputting values

A

OUT

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

What is the LMC operation for assigning variables

A

{name} DAT {starting value}

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

What is meant by processor performance

A

The number of instructions that a processor can complete per second

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

What are the three factors that affect CPU performance

A
  • Clock speed
  • Number of cores
  • The amount and type of cache
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
When can a CPU operation commence
On a switch from 0 to 1
26
What does the clock speed provide
An upper limit to the maximum number of operations that may take place per second
27
What is clock speed measured in
Hertz (Hz)
28
When do bottlenecks occur
When performance is being limited by one aspect of the device
29
What does having more cores help with
Multitasking
30
What happens when the user is multitasking and has a single core CPU
The processor switches between running the instructions of each program
31
What is pipelining
When the CPU handles different instructions simultaneously
32
What can be done to serparate a problem into parts that can be worked on simultaneously
Parallel processing / multi-threading
33
What is the function of cache
Store frequently used data and instructions
34
What are the three different levels of cache
L1, L2, L3
35
Which two levels of cache exist in individual cores
Level 1 and 2
36
Which level of cache is shared between all the cores
Level 3
37
What needs to happen when the processor no longer needs to execute instructions that it was fetching and decoding
"flush the pipe"
38
How can modern day processors avoid "flushing the pipe" from every happening
Branch prediction
39
What are words
Chunks of data most commonly used by the computer
40
In what instance causes the processor to "flush the pipe"
Branch misprediction
41
Why must the size operand be at least the width of an address bus
An operand can be an address; so it must be at least the width o the address bus
42
What needs to happen when you "flush the pipe"
— Clear the CIR — Update PC (rest of fetch cycle is carried out)
43
What is the stored program concept
- A program made up of machine code that is stored in memory to be executed - The instructions are fetched from memory one at a time, decoded and executed
44
What is the Von Neumann architecture
Has a single memory and a single data bus which transfers both data and instructions
45
What is the Havard architecture
Has separate memories for instructions and data
46
Which architecture allows an instruction to be fetched while a data read/write command is occuring
Havard
47
Which architecture is most used in conventional processors
Von Neumann
48
Which architecture is most used in embedded systems
Harvard
49
Which architecture share the same memory for data and instructions
Von Neumann
50
Which architecture share separate memories for data and instructions
Harvard
51
Which architecture only uses one bus for both data and instructions
Von Neumann
52
Which architecture uses separate buses for data and instructions
Harvard
53
How does modern computer architecture work
Better performing cache whilst keeping flexibility
54
What does SIMD stand for
Single Instruction Multiple Data
55
What is another name for SIMD
Vectorisation
56
What does SIMD really do
Allows the same instruction to be applied to multiple pieces of data at the same time
57
What does MIMD stand for
Multiple Instructions Multiple Data
58
What does MIMD really do
Allows multiple different instructions to be carried out on groups of data by making use of multiple cores
59
What is distributed computing
Splitting a single problem up to allow work to be shared between different computers across a network
60
What are the advantages of distributed computing
1. Workload is shared, increasing the speed of execution 2. More resources available, so more computing power 3. If a device fails, the program will not halt
61
What are the disadvantages of distributed computing
Communication needed is slow → must go via networks
62
What specific types of applications commonly use Harvard architecture
Digital Signal Processing (DSP) and some embedded systems
63
How could the modern CPU architecture be better than traditional architectures
1. If using split cache → better performance in cache 2. SIMD and MIMD allows much quicker execution of repetitive operations
64
What programs are less suitable for distributed computing
Programs that require previous results for future calculation
65
What programs are more suitable for distributed computing
Programs where different parts can be completed independently
66
What are the similarities of having a multicore CPU and distributed computing
Running parts of a program using separate CPUs or cores
67
What are the differences of having a multicore CPU and distributed computing
— Communication via networks in distributed computing whilst cores can directly communicate in multicore processors — No shared memory in distributed computing
68
What are the two types of instruction sets
RISC and CISC
69
What does CISC stand for
Complex Instruction Set Computer
70
What does RISC stand for
Reduced Instruction Set Computer
71
What are the benefits of CISC
- High-level code can be translated in fewer assembly instructions - Compilers are easier to create
72
What are the benefits of RISC
— More energy efficient — Simpler hardware — Cheaper
73
What are RISC most commonly used for
Mobile computers
74
What are CISC mostly commonly used for
x86 desktop computers
75
What can be used to make CISC behave more like RISC
Mircocode
76
What is the performance equation for the CPU
Time/ program = time/cycle * cycles/instruction * instructions/program
77
Which part of the performance equation does RISC minimise
Cycles/instruction
78
Which part of the performance equation does CISC minimise
Instructions/program
79
Why might CISC processors perform better with less cache space than RISC processors
CISC processors produce fewer lines of Assembly so more can be stored in cache other than RAM (cache has faster access speeds than RAM)