1.1.1 Architecture - Registers within the CPU Flashcards

1
Q

What is a register and what do they do in the CPU?

A

A register is a small and fast type of memory in the CPU. They hold temporary data while a software program is running.

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

What are the three main buses in the CPU?

A

The Data Bus
The Address Bus
The Control Bus

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

What does the Data Bus carry and where to and from?

A

The data bus carries both instructions and data around the system, for example from the CPU to RAM or to the graphics card.

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

What does the Address Bus carry and where to and from?

A

The Address Bus carries storage addresses of data or instructions from the Memory Address Register to main memory.

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

What does the Control Bus carry and where to and from?

A

The Control Bus carries signals around the system to co-ordinate actions within the CPU and also control external components such as the hard disk, graphics card etc.

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

What is the purpose of the accumulator?

A

The accumulator temporarily stores various pieces of data within the CPU.
This includes any data that has been processed or results of calculations made by the ALU.

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

Why is the accumulator so important?

A

The accumulator is a register, which means it is the fastest type of memory. This means it can be accessed much quicker than the main memory - which is where the data would be stored otherwise.

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

When an address specified by the MAR is examined, where are its contents copied into?

A

The contents are copied into the MDR, which holds them temporarily.

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

What is the purpose of the MAR?

A

The MAR temporarily stores the address of the next data or instruction in main memory.

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

What is the purpose of the CIR?

A

The Current Instruction Register holds the current instruction ready for decoding and executing by the Control Unit.

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

What are the two parts of the instructions that are held in the CIR?

A

The operation code (opcode) - machine code that has to be carried out by the CPU

The operand - the second part of the instruction that the opcode acts upon. It contains data, a memory address or both.

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

What is opcode?

A

Operation code is machine code that has to be carried out by the CPU. It is one of the two parts that makes up instructions.

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

What is the operand?

A

The operand is the second part of instructions, which contains data, a memory address or both. Opcode acts upon the operand.

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

What is the purpose of the PC?

A

The program counter stores the location of the next instruction.
When it is time for the next instruction to be fetched, the content of the PC is loaded into the MAR. It is then incremented (in a liner program).

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

What is the alternative to incrementing the PC after a cycle?

A

If the program is not linear, the PC can be made to jump to another location entirely. This is called a branch instruction.

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

What is the purpose of the MDR?

A

The purpose of the MDR is to store data moving to and from memory. It also storesinstructions on their way from memory.