Mock Revision Flashcards
Function of Control Unit?
. Coordinates all activities in cpu
. Directs flow of data between CPU and other devices
. Accepts next instruction, decodes it, handles its exectutions and stores data in registers
. Sends memory read and write requests to main memory on the control bus
Function of the Program Counter?
. Holds address of the next instruction to be executed
. At the start of the FDE the address in the PC is copied to the MAR
Function of the MAR?
. Holds address of memory location in which data or instruction is about to be fetched from or written to
. Sends address to memory down the address bus
Function of MDR?
. Used to temporarily stort data which is read from or written to memory
. all data to and from memory must travel through the data bus and through the MDR
Function of the CIR?
. Holds the current instruction being executed
. Contents of the MDR are copied to the Cir is its an instruction
. Contains the opcode and operand of the current instruction
Function of the ALU?
. Performs arethmatic and logical operations on data
. Boolean logic operations
. Often uses general purpose registers to temporarily hold result of a calculation (eg ACC)
. Conduit for input and output
Function of the ACC?
. one of the general purpose registers
. data or control info is stored in them
. more general purpose operators a processer has, the faster it’ll operate
. ALU Calculations are temporarily stored here
What is opcode and operand?
Opcode - What process to do.
Operand - What/where to do that process to.
What do each of the buses do?
Address Bus: Carries memory addresses
Data Bus: Carries the binary that make up the data carried.
Control Bus: Carries control signals (Read/Write) to other CPU components.
What is waterfall?
Waterfall lifecycle works in linear stages that must be completed before moving the next one.
Pros of Waterfall?
Drawbacks of Waterfall?
PROS
. It is easy to follow and understand - linear process
. Easy to manage a a team because it goes one stage at a time
. good for clearly planned projects - clear deliverables
DRAWBACKS
. Bad for overly complex projects - lots of documentation
. Inflexible - not possible to go back and make changes
. can casue delays and significant cost increases as additional work is required
What is FCFS?
First Come First Serve - uses FIFO.
What is RR?
Where each process is allocated a time slice or quantum if process is not done by the end of allocated time it returns to the back of the ready Q.
What is SRT?
p
Shortest Remaining time first.
Pre Emptive Algorithm - It will be suspended if a higher priority process joins the queue.
What is MLFQ
Seperates processes based on priority - prioritises those with short CPU bursts and higher I/O bursts.