3.2 Inside the CPU Flashcards
1
Q
Arithmetic Logic Unit (ALU)
A
- Carries out calculations (arithmetical processing) - to find the numerical answer to mathematical problems
- Carries out logical operations - to find the true/false answer to logical deductions
- Holds temporary/interim values during calculations in a register called the accumulator (ACC)
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
3
Q
Registers
A
Small areas of fast memory inside the CPU
4
Q
Accumulators
A
Used as fast memory to hold partial results in a calculation
5
Q
Program Counter (PC)
A
Holds address of the next instruction to fetch
- Can change to a different location by some instructions
- Peripherals can change PC to interrupt CPU
6
Q
Memory Address Register (MAR)
A
Holds address to read from/write to
7
Q
Instruction Register (IR)
A
Holds instruction currently being executed
8
Q
Memory Data Register (MDR)
A
stores data/instructions THAT IS IN USE from address in MAR
9
Q
Buses
A
Short wire connections
10
Q
Address bus
A
- carries an address/location…
- … of the next item to be fetched
- data travels in one direction (unidirectional)
11
Q
Data bus
A
- carries data…
- … that is currently being processed
- data travels in both directions (bidirectional)
12
Q
Control bus
A
- carries signals
- controls the actions of the CPU/processor
- can be either unidirectional or bidirectional
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
14
Q
7 stages in a Von Neumann fetch-execute cycle
A
- PC (program counter) contains the address of the next instruction to be fetched
- Address contained in the PC is copied to the MAR (memory address register) via the address bus
- 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
- The entire instruction is then copied from the MDR and placed in the CIR (current instruction register)
- Value in the PC is then incremented so that it points to the next instruction to be fetched
- The address part of the instruction, if any, is placed in the MAR
- The instruction is finally decoded and is then executed
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