Fetch Decode Execute Cycle Flashcards
Define Arithmetic Logic Unit (ALU)
Performs calculations like ADD, OR and shift operators
Define Control Unit (CU)
Coordinates activities in CPU, memory and peripherals
Define Clock
Continuous sequence of clock pulses to help CU through its operations
Define registers
Fast chip memory for temporary storage of binary values
Define Program Counter (PC)
Holds address of next instruction to be executed.
Define Current Instruction Register (CIR)
Stores current instruction being run (in binary)
Define General Purpose registers
Have no specific purpose. Can store binary numbers. Often used as temporary storage when performing arithmetic functions.
Define Memory Address Register (MAR)
Holds address of memory location from which data will be read from or written to. This is processors direct connection to address bus for accessing main memory. Either address of next instruction or address of data to be used in an instruction
Define Memory Buffer Register (MDR)
Temporarily stores data read from or written to memory.
Processors direct connect to data bus for accessing main memory. Can be next instruction to be fetched, or data to be used in a instruction
Define Status Register (SR)
Contain bit that are set (1) or cleared (0) depending on result of instruction. One bit is set so an overflow could occur.
Define Accumulator
Mainly used as register in CPU to store intermediate logical or arithmetical data in multistep calculations
What is the fetch stage
- Contents of PC copied into MAR
- Passes address to MAR along the address bus
- PC is incremented for next instruction
- The CU does a memory read operation, allowing data of memory location to return along data bus back to the MDR
- Contents in MDR is copied to the CIR
What is the decode stage
- Data in MDR passed to the CU which then decodes instructions, then signals other components the instruction to be completed
What is the execute stage
- Instruction executed, using ALU, or loading/saving data to/from main memory, if needed
- SR is then updated
Define an interrupt
A signal sent to processor from a program/external device that halts other processes until it is dealt with
If many occur at once deals with them in priority
Test for interrupts happen at end of FDE cycle