1.1.1 (b) Flashcards
OCR H446 Computer Science Specification
Ready to master these flashcards?
Sign in to study with spaced repetition and track your progress.
Sign In to Track ProgressTerms in this set (19)
give me an overview on the FDE cycle (4 things)
- it repeats millions/billions of times - its the core operational loop of the CPU - it shows how the CPU retrieves, interprets, runs instructions - based on what is stored in main memory
what is the FDE cycle? (3 things)
- its a step by step process - that the CPU follows - to carry out one instruction
how does the FDE cycle work? (2 things)
- by coordinating the CU, registers and buses - so that they can move and process data/instructions
why does the FDE cycle matter?
- so that a stored-program computer - can automatically execute instructions - repeatedly and sequentially
what are the 4 step-by-step breakdown of the FDE cycle
- fetch - decode -execute - repeat
why is the Fetch stage important? (two things)
- it allows for the instructions to be read from memory - unless a jump/branch changes the PC
what does the Fetch stage do?
- it gets the next instruction to move from main memory into the CPU
what's the 1-3 procedure of the Fetch stage?
1) PC ->MAR - the address of the next instruction gets copied into the PC - then gets copied into the MAR 2) address bus -> memory - the address travels via the address bus - to locate instruction in RAM 3) the control unit sends "memory read" signals via the control bus
what's the 4-6 procedure of the Fetch stage?
4) memory -> MDR - the instruction (binary opcode) is fetched from that memory address - and into the MDR via the data bus 5) MDR -> CIR - the fetched instruction is then copied into the CIR 6) PC is incremented by one, so the next address of the instruction is prepared
why is the decode stage important?
- because it converts binary machine code instructions into specific electronic control actions that the hardware can execute
what's the 1-4 procedure of the decode stage?
1) The CU examines the opcode in the CIR - because the instruction is split into opcode (what to do) + operand (data/address) 2) The CU decodes the opcode - so it determines which component must act 3) Then the CU generates control signals to activate necessary circuits 4) if the instruction involves operand - the MAR is loaded with that operand's address - so the next fetch will retrieve data
what does the execute stage do?
- it carries out decoded instruction
why is the execute stage important? (2 things)
- because it actually performs the task the instruction specifies - so that the flow of the program is updated
what's the 1-3 procedure of the execute stage?
1) The CU sends appropriate control signals to execute the instruction 2)Then, the results gets stored back into the ACC/memory 3) Finally, the flag in the status register is updated
what happens in the repeat stage?
- After the execution, the PC already points to the next instruction - then the cycle returns to fetch + repeats until a halt instruction/interrupt occurs
how is the clock involved in the FDE cycle?
- because a higher clock speed means more FDE cycles are completed per second - because for each FDE stage, it takes one/more clock cycles to to complete one instruction - because it generates regular pulses which coordinates all operations
how is pipelining involved in the FDE cycle?
- because pipelining overlaps FDE cycles - so while one instruction is fetching, the next is decoding and another is executing - but it introduces many hazards e.g. branch misprediction/data dependency
name me all of the control signals (from CU into the control bus)
- clock - memory read/memory write - I/O read/write - interrupt request/acknowledge - reset/halt
give the purpose of each control signal
- clock -> synchronises all operations - memory read/ memory write -> controls the direction of the data transfer when the RAM is being used - I/O read/write -> controls peripheral data flow - interrupt request/acknowledge -> handles priority tasks - reset/halt -> restarts/stops the execution
Want to Learn More?
Get personalised lessons, quizzes, and instant feedback from your AI tutor.
Start Learning