Section 1 - Chapter 1: Processor Components Flashcards

1
Q

What is a CPU and what does it compose of?

A

The CPU, also known simply as the processor, has a number of different components which enable it to carry out its task of executing instruction. These components include:
- control unit
- buses
- arithmetic logic unit (ALU)
- dedicated registers

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

What is the role of the control unit?

A

The control unit coordinates and controls the activities of the CPU, by directing the flow of data between the CPU and other devices. It accepts the next instruction, decodes it and manages its execution, storing the resulting data back in memory or registers.

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

What is a bus?

A

A bus is a set of parallel wires connecting two or more components of a computer. It typically consists of 8,16,32 or 64 lines.

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

How do buses work?

A

When the CPU wishes to access a particular main memory location, it sends this address to memory on the address bus. The data in that location is then returned to the CPU on the data bus. Control signals are sent along the control bus.

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

What are the 3 types of buses?

A

The three types of buses are:
- Control Bus
- Data bus
- Address Bus
These three buses are known collectively as the SYSTEM BUS

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

Which buses sends/carries signals in both direction?

A

Control and data bus. The address bus does not.

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

What is the control bus?

A

The control bus is a bi-directional bus, meaning that signals can be carried in both directions. The data and address buses are shared by all components of the system.

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

Why are control lines used?

A

To ensure access to and use of the data and address buses by the different components of the system does not lead to conflict.

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

What is the purpose of the control bus?

A

The purpose of the control bus is to transmit command, timing and specific status information between system compnents.

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

What do control lines include?

A

Control lines include:
- Bus Request: indicates that a device is requesting the use of the data bus
- Bus Grant: indicates that the CPU has granted access to the data bus
- Memory Write: causes data on the data bus to be written into the addressed location
- Memory Read: causes data from the addressed location to be placed on the data bus
- Interrupt Request: indicates that a device is requesting access to the CPU
- Clock: used to synchronize operations

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

What is the data bus?

A

The data bus, typically consisting of 8,16,32, 64 separate lines, provides a bi-directional path for moving data and instructions between system components

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

Address Bus - what is memory divided into?

A

Memory is divided up internally into units called words

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

Address Bus - What is a Word?

A

A word is a fixed size group of digits which is handled as a unit by the processor.

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

What does the Address Bus do?

A

The address bus transmits the memory addresses of words that are used as operands in program instructions, so that data can be retrieved and sent back to the processor.

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

What does the ALU do?

A

The ALU performs arithmetic and logical operations on the data. It can perform instructions such as:
- ADD, SUBTRACT, MULTIPLY, DIVIDE
- Shift Operations
- And can carry out Boolean logic operations.

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

What are registers?

A

Registers are special memory cells that can operate at very high speed.

17
Q

What are the five types of registers?

A
  • Accumulator
  • Program Counter
  • Current Instruction Register
  • Memory Address Register
  • Memory data register
18
Q

What is an Accumulator?

A

An Accumulator takes the place of the general-purpose register. It acts as a temporary storage location which holds an intermediate value in mathematical and logical calculations.

19
Q

What is a Program Counter?

A

A Program Counter holds the address of the next instruction to be executed.

20
Q

What is a Current Instruction Register?

A

It holds the current instruction being executed and divides it into operand and opcode.

21
Q

What is a Memory Address Register?

A

It holds the address of the memory location from which data is to be fetched or to which data is to be written

22
Q

What is a Memory Data Register?

A

It is used to temporarily store the data read from or written to memory. Also known as a memory buffer register.

23
Q

What is the Fetch phase?

A

1) The address of the next instruction is copied from the program counter to the memory address register.
2) The instruction held at that address is copied to the MDR. Simultaneously, the content of the PC is incremented so that it holds the address of the next instruction.
3) The contents of the MDR are copied to the CIR

24
Q

What is the decode phase?

A

The instruction held in the CIR is decoded. The instruction is split into opcode and operand and the opcode is used to determine the type of instruction and what hardware to use to execute it. The operand holds either:
- the address of the data to be used with the operation, which is then copied to the MAR, or
- the actual data to be operated on, which will be copied to the MDR
- the data to be operated on may be passed to the ALU/accumulator.

25
Q

What is the execute phase?

A

The appropriate instruction/opcode is carried out on the operand.