1.1.1 strucure of the cpu Flashcards
Arithmetic logical unit
- alu complete all the arithmetic and logical operations.
- arithmetic operations include mathematical operations, ADD, SUB. etc.
- logical operations include Boolean logic operations like AND, OR, etc
Control unit
Control unit control the activities of the cpu
jobs of the control unit.
- control and coordinate the activities of the cpu
- control the flew of data between the cpu and device
- accepting the next instruction
- decoding the instruction
- storing results back in memory
what are registers
registers are small memory cell that store data temporarily while it been executed
name the 5 registers
- program counter
- accumulator
- memory address register
- memes data register
- current instruction register
program counter:
hold/store the address of the next instruction to be executed.
accumulator:
store the results from calculations
memory address register:
hold the address of the location of data in main memory to be fetched
Memory address register:
temporarily store data that has been fetched from main memory
current instruction register:
hold the current instruction been executed, divide up into operand or opcode
Buses
Buses are parallel wires that connect 2 or more components in the cpu.
- data bus
- address bus
- control bus
Databus:
this bus is bi-directional and transmit data and instructions between components
Address bus:
this bus transfer the data address in main memory
control bus:
this bus is bi-directional and it transmit control signals between internal and external components.
and control the use of address and data bus
Phases in execution cycle
- fetch
- decode
- execute