structure and function of a processor Flashcards
The characteristics of contemporary processors,input,output and storage devices
Define the central processing unit
Carries out the instructions in computer programs.
The central processing unit ‘runs programs’ by continually fetching, decoding and executing instructions
Define the arithmetic logic unit
The ALU carries out the calculations and logical decisions. The results of its calculations are stored in the accumulator.
Define the control unit
The control unit sends out signals to coordinate how the processor works.
It controls how data moves around parts of the CPU and how it moves between the CPU and memory.
Instructions are decoded in the control unit.
Define what registers are
Areas of memory within the processor itself.
- They can be accessed at extremely fast speeds so the processor can use them without causing a bottleneck.
special purpose registers
What is the purpose of the program counter (PC)?
special purpose register - Registers in the processor that have a specific use.
PC - Holds the memory address of the next instruction to be executed.
With each execution of the FDE cycle, it gets incremented to point to the next instruction, allowing the program to be executed in sequence, instruction by instruction.
The program counter can be changed by instructions that alter the flow of control
Eg. branch, BRA, BRP
special purpose registers
what is the purpose of the memory data register (MDR)?
special purpose register - Registers in the processor that have a specific use.
MDR - Stores the data or instructions that are to be fetched from or sent to memory
special purpose registers
What is the purpose of the memory address register (MAR)?
special purpose register - Registers in the processor that have a specific use.
MAR - Stores the address of the data or instructions that are to be fetched from or sent to memory.
special purpose registers
What is the purpose of the current instruction register (CIR)?
special purpose register - Registers in the processor that have a specific use.
CIR - Stores the most recently fetched instruction, which will be decoded and executed. ( split into opcode and operand)
special purpose registers
What is the purpose of the accumulator (ACC)?
special purpose register - Registers in the processor that have a specific use.
ACC - stores the results of calculations made by the ALU
What is the purpose of general purpose registers?
These can temporarily store data being used rather than sending data to and from memory.
What are ‘buses’
communication channels through which data can be sent around the computer.
Main buses:
- The data bus
- The address bus
- The control bus
What is the data bus
The data bus carries data between the processor and memory
What is the address bus
The address bus carries the address of the memory location being read from or written to.
What is the control bus
The control bus sends control signals from the control unit.
Describe the ‘fetch’ stage of the FDE cycle
1) The contents of the PC are copied to the MAR
2) The read signal is sent across the control bus and the contents of the MAR are sent across the address bus
3) The contents of the memory location stored at the MAR are then sent across the data bus and stored in the MDR
4) The contents of the MDR are then copied to the CIR
5)The PC is incremented by one unless the next instruction is BRZ, BRA, BRP