Section 1 - Components Of A Computer Flashcards

- Describe the function of the ALU and Control Unit - Describe the role of the CPU and the role of the following registers: - Program Counter - Accumulator - Memory Address Register - Memory Data Register - Current Instruction Register

You may prefer our related Brainscape-certified flashcards:
1
Q

What is another name for the CPU?

A

Processor

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

What are the 4 main components of the CPU?

A

1) Control Unit
2) Buses
3) Arithmetic Logic Unit
4) Dedicated Registers

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

What is the CPU’s function?

A

To execute instructions

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

What does the Control Unit Do? (3 points)

A

1) Controls and co-ordinates the activities of the CPU
2) Directs the flow of data between the CPU and other devices
3) Accepts the next instruction and decodes it into several steps such as fetching addresses and data from memory, manages its execution and stores the resulting data back in memory or registers

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

What is a bus?

A

A set of parallel wires connecting two or more components of a computer

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

How many lines typically does a bus consist of?

A

8, 16, 32, or 64 lines

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

What are the data, address, and control bus collectively known as?

A

The system bus

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

How are the system buses used collectively with the CPU and the main memory? (3 points)

A

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

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

What are the main components the system buses connect?

A

1) Processor
2) Memory
3) Input/Output controllers

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

Each bus is a “shared transmission medium”, what does this mean?

A

Only one device can transmit along a bus at any one time

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

What directions can the control signals travel between the processor, memory, and I/O controllers?

A

Both

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

What directions can the data signals travel between the processor, memory, and I/O controllers?

A

Both

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

What directions can the address signals travel between the processor, memory, and I/O controllers?

A

Only one way; the processor sends the address of an instruction, or of data to be stored or retrieved, TO memory, or TO and I/O controller

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

Why is the control bus necessary?

A

The data and address buses are shared by all the components of a system, therefore control lines must be provided to make sure that access to and use of data does not lead to conflict

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

What is the purpose of the control bus?

A

To transmit command, timing, and specific status information between system components

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

What is the purpose of the data bus?

A

To move data and instructions between system components

15
Q

What are the 6 control lines and purpose?

A

1) Bus request - Indicates that a device is requesting the use of the data bus
2) Bus grant - Indicates that the CPU has granted access to the data bus
3) Memory Write - Causes data on the data bus to be written into the addressed location
4) Memory Read - Causes data from the addressed location to be placed on the data bus
5) Interrupt request - Indicates that a device is requesting access to the CPU
6) Clock - Used to synchronise operations

16
Q

What is a word?

A

Units that memory is divided up internally into, which are a fixed size group of digits handled as units by the processor

16
Q

Typically, how many bits are words?

A

8, 16, 32, or 64 bits

16
Q

Why would word size vary?

A

Different types of processors have different word sizes

16
Q

What does the address bus do?

A

Transmits the memory address of words that are used as operands in program instructions, so that the data can be retrieved and sent back to the processor.
However, when an instruction has been performed and the result is to be stored at a particular memory location, it is transmitted via the data bus.

17
Q

What does the ALU do? Give 3 examples.

A

The ALU performs arithmetic and logic operations on the data.
1) ARITHMETIC - It can perform instructions such as ADD, SUBTRACT, MULTIPLY, or DIVIDE on fixed or floating point numbers
2) SHIFT - It can also perform shift operations, shifting bits to the left or right in a register
3) LOGIC - It can carry out Boolean logic operations, comparing two values using operators such as AND, OR, NOT, or XOR

18
Q

What is a register?

A

A special memory cell that operates at a very high speed

19
Q

Where do all arithmetic, logical, and shift operations take place?

A

Registers

19
Q

Typically, how many registers are in the CPU?

A

16

20
Q

What is the accumulator?

A

A register, or a memory location used to store the intermediate results of arithmetic and logical operations.

20
Q

Why do some special purpose computers still use a single accumulator?

A

In order to simplify the design

21
Q

What does the accumulator do?

A

Takes the place of the general purpose registers.
For simplicity, we assume that all calculations take place here

22
Q

What does the PC do?

A

Holds the address of the next instruction to be executed.
This may be the next instruction in a sequence of instructions, or if the current instruction is a branch or jump instruction, then it may the the instruction to jump to (copied from the CIR to the PC)

22
Q

What is operand?

A

Part of the instruction which holds either:
- The address of the data to be used with the operation, which is then copied to the MAR
- The actual data to be operated on, which will be copied to the MDR
- The data to be operated may be passes on to the ALU/accumulator

22
Q

What is opcode?

A

Part of the instruction that is used to determine the type of instruction and what hardware to use to execute it

22
Q

What 2 things are instructions divided into?

A

Operand and Opcode

23
Q

What does the CIR do?

A

Holds the current instruction being executed

23
Q

What does the MAR do?

A

Holds the address of the memory location from which data (or an instruction) is to be fetched or to which data is written

23
Q

What does the MDR do?

A

Used to temporarily store the data read from or written to memory (also can be known as the memory buffer register)

24
Q

What are the 3 phases a sequence of operations involved in executing an instruction divided up into?

A

Fetching
Decoding
Executing
This cycle repeats over and over as each instruction of the program is executed

25
Q

What happens in the fetch phase of the FDE cycle?

A

1) The address of the next instruction is copied from the PC to the MAR
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

25
Q

What happens in the decode phase of the FDE cycle?

A

4) The instruction held in the CIR is decoded. The instruction is split up into opcode and operand.

26
Q

What happens in the execute phase of the FDE cycle?

A

5) The appropriate instruction/opcode is then performed on the operand