3.2 Inside the CPU Flashcards

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

Arithmetic Logic Unit (ALU)

A
  1. Carries out calculations (arithmetical processing) - to find the numerical answer to mathematical problems
  2. Carries out logical operations - to find the true/false answer to logical deductions
  3. Holds temporary/interim values during calculations in a register called the accumulator (ACC)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Control Unit

A
  • Controls operation of memory, processor and input/ output
  • INSTRUCTIONS are interpreted
  • Sends signals to other components telling them “what to do”
  • Has a timer to send control signals in the right order, giving each action time to finish before sending the next signal
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Registers

A

Small areas of fast memory inside the CPU

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

Accumulators

A

Used as fast memory to hold partial results in a calculation

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

Program Counter (PC)

A

Holds address of the next instruction to fetch

  1. Can change to a different location by some instructions
  2. Peripherals can change PC to interrupt CPU
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Memory Address Register (MAR)

A

Holds address to read from/write to

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

Instruction Register (IR)

A

Holds instruction currently being executed

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

Memory Data Register (MDR)

A

stores data/instructions THAT IS IN USE from address in MAR

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

Buses

A

Short wire connections

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

Address bus

A
  • carries an address/location…
  • … of the next item to be fetched
  • data travels in one direction (unidirectional)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Data bus

A
  • carries data…
  • … that is currently being processed
  • data travels in both directions (bidirectional)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Control bus

A
  • carries signals
  • controls the actions of the CPU/processor
  • can be either unidirectional or bidirectional
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Describe the purpose of a logic gate in a logic circuit.

A
  • to carry out a logical operation
  • to control the flow of electricity through a logic circuit
  • to alter the output from given inputs
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

7 stages in a Von Neumann fetch-execute cycle

A
  1. PC (program counter) contains the address of the next instruction to be fetched
  2. Address contained in the PC is copied to the MAR (memory address register) via the address bus
  3. The instruction is then copied from the memory location contained in the MAR and is placed in the MDR (memory data register) using the data bus
  4. The entire instruction is then copied from the MDR and placed in the CIR (current instruction register)
  5. Value in the PC is then incremented so that it points to the next instruction to be fetched
  6. The address part of the instruction, if any, is placed in the MAR
  7. The instruction is finally decoded and is then executed
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Stored program concept

A
  • Program instructions and data are stored temporarily in main memory
  • Instructions are then fetched, decoded and executed by the processor ONE AFTER ANOTHER
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Fetch-execute cycle (3 steps)

A
  1. The Program Counter (PC) in the CPU specifies where the next instruction to be executed is stored. The control unit (CU) fetches the next instruction to be executed from main memory.
  2. The CU decodes the instruction so it knows what action to carry out.
  3. The CU sends the instruction to the ALU. The ALU carries out the action. The PC is updated to point to the next instruction.
    - The process is repeated.
17
Q

Handshaking

A

The exchange of pre-determined signals between a computer and input/output device to assure proper synchronisation

18
Q

Polling

A

The checking of the status/readiness of the external device

19
Q

Buffer

A

A temporary storage area in the main memory for data before the data is processed

20
Q

Interrupt

A

A signal sent from a device that halts the running of the processor to service the interrupt
- interrupts have different priorities

21
Q

Checksum

A

A verification check used to detect errors in data after transmission