1.1 structure and function of the CPU Flashcards
what is the ALU and what is its job?
the arithmetic logic unit, this carries out calculations and logical decisions.
what is the control unit and what is its job?
The control unit sends out signals to co-ordinate the processor. Controls how the data moves around parts of the CPU and how it moves between CPU and memory.
what are buses?
buses are a pathway for electrical signals to travel on.
what is a register?
a register is a memory location inside the processor that can hold one instruction.
what kind of registers are there?
- program counter
- accumulator
- memory data register
- memory address register
- current instruction register.
what is a program counter?
a program counter is a register that keeps track of the line of code being executed. It gets incremented to point to the next instruction, with each cycle of the FDE cycle, allowing the program to be ran line by line.
what is an accumulator?
an accumulator is a register that
stores the results of the calculations made by the ALU.
what is a MDR?
MDR is a memory data register and it stores the data that has been fetched from or stored in memory.
what is a MAR?
MAR is a memory address register and it stores the address of the data or instructions that are to be fetched or sent.
what is a CIR?
CIR is a current instruction register and it stores the most recently fetched instruction waiting to be decoded and executed.
what is machine code?
Machine code is binary instruction and is split into OPCODE and data it is very effective as it means the computer has to do less work to carry out the instruction but not user friendly.
what is assembly code?
Assembly code is one above machine code and allows the programmer to read/write code easier. The mnemonic for the op code is three letters.
what are high level languages?
High level languages like python is easiest for coding as it is easy to understand and read.
what is the FDE cycle/
FDE- fetch, decode, execute.
what is a clock cycle?
A single clock cycle is a complete FDE cycle.