Structure and Function of the Processor Flashcards

(77 cards)

1
Q

What is the ALU?

A

The ALU (Arithmetic and Logic Unit) completes all of the arithmetical and logical operations.

Can perform shift operations also.

Logical operations include boolean logic operations such as AND, OR, NOT, and XOR.

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

What is the control unit?

A

directs the operations of the CPU. It has the following jobs:

Controlling and coordinating the activities of the CPU
Managing the flow of data between the CPU and other components
Accepting the next instruction
Decoding instructions
Storing the resulting data back in memory

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

what is a register

A

Registers are small memory cells that operate at a very high speed.

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

purpose of register

A

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
5
Q

job of the program counter

A

holds address of next instruction to be executed
It sends the address to the MAR, before being incremented, and pointing to the next address.

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

job of accumulator

A

its a general purpose register

Stores the results from calculations

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

job of memory address reg

A

Holds the address of a location that is to be
read from or written to.
This address was copied from the PC.

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

job of mem data reg

A

Temporarily stores data that has been read
or data that needs to be written to memory.

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

job of current instruction reg

A

Holds the current instruction being
executed, divided up into operand and
opcode.

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

width of bus

A

The width of the bus - num of parallel wires the bus has.

directly proportional to the number of bits that can be transferred simultaneously at any given time.

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

typical bus widths

A

buses are typically 8, 16, 32 or 64 wires wide.

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

what are buses

A

Buses are a set of parallel wires which connect two or more components inside the CPU.
There are three buses in the CPU: data bus, control bus, and address bus. These buses
collectively are called the system bus.

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

data bus

A

This is a bi-directional bus (meaning bits can be carried in both directions). This is 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

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
15
Q

address bus

A

This is the bus 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
16
Q

control signals of control bus

A

bus request
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

A LEVEL ONLY - PIPELINING

A

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
18
Q

what is fetch decode eecute cycle

A

The fetch-decode-execute cycle is the sequence of operations that are completed in order
to execute an instruction.

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

aim of pipelining - A LEVEL ONLY

A

Pipelining is aimed to reduce the amount of the CPU which is kept idle.

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

what is pipelining seperated into

A

instruction pipelining
arithmetic pipelining

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

instruction pipelinning

A

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

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

arithmetic pipelining

A

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

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

decode phase

A

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

the data/instruction is decoded and processed

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

fetch phase

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
amount and type of cache mem
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.
26
execute phase
Execute phase: - The decoded instruction is executed opcode carried out on the operand
27
lev 2 cache
Relatively fast memory cell, with a medium sized capacity. (256KB-2MB)
28
num of cores
A computer with multiple cores can complete more than one fetch-execute cycle at any given time. However, not all programs are able to utilise multiple cores efficiently as they have not been designed to do so, so this is not always possible.
29
what is a core
A core is an independent processor that is able to run its own fetch-execute cycle.
30
Why is it that a dual core results in apporximately below 2x speed
The cores need to communicate w/ each other which takes time
31
Why sometimes multicore is not possible
However, not all programs are able to utilise multiple cores efficiently as they have not been designed to do so, so this is not always possible.
32
factors affecting cpu performace
There are three factors that affect CPU performance: clock speed, number of cores and the amount and type of cache memory.
33
clock speed
The clock speed is determined by the system clock. This is an electronic device which generates signals, switching between 0 and 1. All processor activities begin on a clock pulse, and each CPU operation starts as the clock changes from 0 to 1. The clock speed is the time taken for one clock cycle to complete.
34
lev 1 cache
Very fast memory cells with a small capacity. (2-64KB)
35
von neumann architecture
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. Von Neumann architecture is built on the stored program concept.
36
lev 3 cache
Much larger and slower memory cell.
37
harvard achitecture - A LEVEL ONLY
Harvard architecture has physically separate memories for instructions and data, more commonly used with embedded processors.This is useful for when memories have different characteristics, i.e. instructions may be read only, while data may be read-write. This also allows you to optimise the size of individual memory cells and their buses depending on your needs, i.e. the instruction memory can be designed to be larger so a larger word size can be used for instructions.
38
advantages von neumann arch
Cheaper to develop as the control unit is easier to design Programs can be optimised in size
39
what is key aspects of von neumann arch
MAR MDR Program counter accumulator Bus ALU control unit
40
contemporary processing
Contemporary processors use a combination of Harvard and Von Neumann architecture. Von Neumann is used when working with data and instructions in main memory, but uses Harvard architecture to divide the cache into instruction cache and data cache.
41
advantages harvard arch - A LEVEL ONLY
quicker execution as data and instructions can be fetched in parallel. memories can be different sizes, which can make more efficient use of space
42
wHATS THE system bus
the collection of the data bus, address bus and control bus
43
What is the width of a bus?
Num of parallel wires it has
44
What does adding a wire to the address bus do to the number of addressable locations
2x num of addressable locations
45
Bus Request
bus request: shows that a device is requesting the use of the data bus
46
Bus grant
Bus grant: shows that the CPU has granted access to the data bus
47
Memory write
Memory write: data in the data bus is written into the addressed location
48
Memory read
Memory read: data is read from an addressed location to be placed onto the data bus
49
Interrupt Request
Interrupt request: shows that a device is requesting access to the CPU
50
Clock
Clock: used to synchronise operations
51
the 5 registers used in FDE
PC MDR MAR CIR ACC
52
what is memory divided up into equal units of
Words
53
word lengths
8,16,32,64bit The word length is the number of bits that can processed in one cycle
54
what does each word have
seperate mem address
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77