Sec 5. Chap 26 : The Processor. Flashcards

1
Q

ALU.

A

Arithmetic Logic Unit

Mathematical operations.

Completes add / subtract / multiply / shift operations / bool logic on floating point values

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

Control Unit

A

Directs the operation of the processor. It tells the computer’s memory, arithmetic and logic unit and input and output devices how to respond to the instructions that have been sent to the processor.

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

System clock.

A

Generates pulses, a series of signals between 0 and 1 billions of time a second - regulates the timing and flow of all computer functions

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

General purpose registers

A

Stores temporary data within the microprocessor.

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

Accumulator

A

the accumulator is a register in which intermediate arithmetic and logic results are stored.

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

Program counter (PC)

A

Holds the address of the next instruction to be executed

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

Current instruction register (CIR)

A

holds the current instructions being executed (CIR)

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

Memory address register (MAR)

A

In a computer, the memory address register is the CPU register that either stores the memory address from which data will be fetched to the CPU, or the address to which data will be sent and stored. In other words, MAR holds the memory location of data that needs to be accessed.

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

Memory buffer register (MBR)

A

Stores information that is being sent to, or received from, the memory along the bidirectional data bus.

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

Status register (SR)

A

A collection of status flag bits, such as interrupt enabled bits, that changes depending on the previous outcome of an execution.

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

Fetch execute cycle

Fetch stage

A
  1. Address of the next instruction coped from the Programme counter to the memory address register.
  2. This instruction is sent to the Memory buffer register along the data bus. Programme counter is incremented for the next address.
  3. Contents of the Memory Buffer Register are coped to the Current Instruction Register.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Fetch execute cycle

Decode stage

A
  1. Instruction held in the Current instruction register is decoded. Instruction split into opcode and operand.
    (OP code determines instruction type and what hardware to use)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Fetch execute cycle

Execution stage

A
  1. Instruction is executed using the Arithmetic logic Unit. Results stored in the general purpose registers / memory.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Factors affecting processor performance

list

A
Core count
amount / speed of cache
clock speed
word length
address / data bus width
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Cache

A

Small amount of memory next to the cpu - instructions are fetched from ram and are copied to the cache so that if they are needed again it does not need to be sent for again. Reduces average cost to access data from main memory.

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

Interrupts

A

Interrupts are signals sent to the CPU by external devices, normally I/O devices. They tell the CPU to stop its current activities and execute a new process.

17
Q

Interrupt service routine.

A

An interrupt service routine (ISR) is a software routine that hardware invokes in response to an interrupt. ISR examines an interrupt and determines how to handle it executes the handling. Once completed the original values are loaded of the stack (process resumes).

18
Q

Interrupt check after each cycle.

A

Start -> execute cycle -> interrupt?

if interrupt = true
status register set and
ISR called.
-> start

if interrupt = false
start

19
Q

Processor instruction set.

A

Machine code instructions have two sections for each word.

Operation code (opcode) is made up of the basic machine operation and the addressing mode.

How the operand is used is determined by the addressing mode.

20
Q

Addressing mode.

A

Immediate addressing : Operand is the actual call to be operated on.

Direct addressing : Operand holds the memory address of the value to be operated on.