OCR H446 A Level Computer Science · 1.1 Characteristics of Contemporary Processors
Stretch tasks Structure and Function of the Processor
Quiz Challenge
A quiz game against four computer players, then short and long written answers.
- Quiz Blitz12 questions against the clock
- Quick Fire4 short answers
- Big Think2 long answers
About 20 minutes
This or That
Pixel the cat asks 8 questions. Each has two answers: pick the right one.
- Two answers to every question
- A fish treat for every right answer
- Streaks win Pixel shades, then a party hat
About 4 minutes
Memory Match
Flip the cards two at a time to match each term card to its meaning card.
- 12 cards: each term has a meaning
- One peek at every card
- Combo points for pairs found in a row
6 pairs, about 4 minutes
Sort It
Sort each statement into the right box, like the tick box tables in the exam.
- 12 cards to sort into 3 boxes
- Drag a card, tap a box or press its number
- Combo points for cards sorted in a row
12 cards, about 4 minutes
Code Word
Guess the lesson's secret words. Every guess shows which letters are right.
- A clue for every word
- Tiles turn green, amber or grey after each guess
- Fewer guesses win more points
3 words, about 4 minutes
Link Up
12 tiles hide 3 groups of 4. Work out what links them.
- Pick four tiles that belong together
- Four slips and the round is over
- Fewer slips win more points
3 groups, about 3 minutes
Bug Hunt
Two statements are true and one has a bug. Catch the bug before it gets away.
- Three statements in every round
- Tap the one with the mistake
- Streaks win bonus points
5 rounds, about 4 minutes
Brain games
Train your brain on this lesson
Logic, memory and speed, built from this lesson's own key ideas. Win up to three diamonds in each game.
Odd One Out
Four tiles: three share a link and one does not. Spot the odd one out, then see what links the rest.
- Three belong together, one does not
- A hint shows the link, for fewer points
- Quick answers and streaks win more
8 rounds, about 3 minutes
Memory Flash
Study the term cards, then they flip over. Find the card that goes with each clue, from memory.
- Three levels: 3, 4 and 6 cards
- Two tries to find each card
- Streaks win bonus points
3 levels, about 4 minutes
Fact or Fib
Statements fly in one at a time. Is each one a fact or a fib? Decide fast.
- Swipe, tap or use the arrow keys
- Every fib comes with its fix
- Streaks multiply your points
12 statements, about 3 minutes
The final challenge
City Run
Race a robot cat on inline skates through a neon cyber city, from Neon Station to the Hyper Tunnel. Every question is a row of neon gates across the tracks: skate through the one with the right answer, dodge the trains and barriers, and grab diamonds.
- 20 questions from this lesson, in four parts of the city
- Swipe, tap or use the arrow keys
- Dodge trains and holograms, and jump crates and cones
20 questions, about 6 minutes
Bonus challenge
Neon Roll
Roll a glowing ball down an endless neon slope, past towers lit up with neon signs of Pixel the cat. Steer, jump the gaps and dodge the blocks. Questions from this lesson wait at gates along the way: every right answer keeps the ball rolling.
- Questions from this lesson at every gate
- Hold the arrow keys or a side of the slope to steer
- 8 right answers win two diamonds, 15 win three
Endless, about 5 minutes
The games need JavaScript. Every question is below, with the answers at the end.
Read the lesson: Structure and Function of the Processor
Structure and Function of the Processor: the questions
Quiz Challenge, round 1: Quiz Blitz
Which register holds the instruction currently being decoded and executed?
- Memory Data Register
- Memory Address Register
- Program Counter
- Current Instruction Register
Interrupts are checked at the end of each fetch decode execute cycle.
- True
- False
What happens to the memory a processor can address when one more line is added to its address bus?
- It doubles
- It grows by one location
- It grows by one byte
- It stays the same
Put the fetch stage in order, as A Level describes it.
Number these 1 to 4.
- The PC is incremented
- The instruction arrives in the MDR along the data bus
- The instruction is copied from the MDR into the CIR
- The address in the PC is copied into the MAR
Which TWO are flags held in the status register?
Tick 2.
- Zero
- The address of the next instruction
- The instruction being decoded
- The result of the last calculation
- Carry
What does the Control Unit split the instruction in the CIR into?
- An address and a data value
- A page and an offset
- A flag and a register
- An opcode and an operand
Why can interrupts be nested?
- Interrupt service routines are kept in cache
- Each saved state goes on a stack and is restored in reverse order
- Every interrupt has a core of its own
- Interrupts are checked continuously
Pipelining reduces the time each individual instruction takes to complete.
- True
- False
Put the handling of an interrupt in order.
Number these 1 to 4.
- The saved state is popped back into the registers
- The interrupt register is checked at the end of the cycle
- The register contents are pushed onto a stack
- The interrupt service routine runs
Which register holds flags such as carry, zero and overflow?
What happens to the pipeline when a conditional branch is taken?
- The interrupt register is cleared
- The instructions already fetched are discarded
- The clock speed doubles
- The cache is emptied
Why is a Harvard architecture faster than von Neumann?
- It keeps every program in ROM
- It needs no registers
- An instruction and its data can be fetched at the same time
- It has a higher clock speed
Quiz Challenge, round 2: Quick Fire
Explain why the instruction is copied from the MDR into the CIR. [2 marks]
Describe what happens to the registers when an interrupt is serviced. [2 marks]
Explain how pipelining increases the throughput of a processor. [2 marks]
Explain why a wider data bus can improve performance. [2 marks]
Quiz Challenge, round 3: Big Think
Describe the full fetch decode execute cycle, naming the registers and buses used. [6 marks]
Compare the von Neumann and Harvard architectures. [4 marks]
This or That: tick the right answer
Which register does the instruction move into after the MDR?
- The CIR
- The MAR
When does the processor check for interrupts?
- At the end of each cycle
- Continuously, mid instruction
Where is the processor's state saved when an interrupt is serviced?
- In cache memory
- On a stack
An address bus grows from 16 lines to 17. What happens to the memory it can address?
- It doubles
- It grows by one location
Which change moves more data in each transfer?
- A wider address bus
- A wider data bus
What does branch prediction reduce?
- The cost of pipeline flushes
- The number of registers needed
Which architecture suits a digital signal processor?
- Harvard
- Von Neumann
What does the opcode of an instruction give?
- The address of the data
- The operation to perform
Memory Match: match each term to its meaning
| Term | Meaning |
|---|---|
| A CIR | 1 The data, or the address of the data, to work on |
| B Status register | 2 Discarding instructions after a branch is taken |
| C Opcode | 3 Holds the instruction being decoded and executed |
| D Operand | 4 Holds flags such as carry, zero and overflow |
| E Pipeline flush | 5 Instructions and data competing for one bus |
| F Von Neumann bottleneck | 6 Names the operation an instruction performs |
Sort It: tick one box in each row
Which stage of the fetch decode execute cycle does each step belong to?
| Statement | Fetch | Decode | Execute |
|---|---|---|---|
| The instruction arrives in the MDR along the data bus | |||
| The status register flags are updated | |||
| The PC is incremented | |||
| The address in the PC is copied into the MAR | |||
| The opcode is used to work out which operation to perform | |||
| The control unit splits the instruction into opcode and operand | |||
| The operand is identified as data or as an address | |||
| A jump instruction changes the value in the PC | |||
| The ALU carries out a calculation | |||
| Control signals are generated for the units that will act | |||
| The instruction is copied from the MDR into the CIR | |||
| The result is placed in the accumulator |
Code Word: write the word that fits each clue
The part of an instruction that says which operation to perform. (6 letters)
Overlapping fetch, decode and execute so several instructions are in progress at once. (8 letters)
A signal asking for the processor's attention, checked at the end of each cycle. (9 letters)
Link Up: find the three groups
These 12 tiles make 3 groups of 4. Write each group in the table, and what links its tiles.
- Accumulator
- Overflow
- MAR
- Zero
- Carry
- Negative
- Clock speed
- Cache size
- Program counter
- Word length
- Number of cores
- CIR
| Group | The 4 tiles | What links them |
|---|---|---|
| Group 1 | ||
| Group 2 | ||
| Group 3 |
Bug Hunt: tick the statement that is wrong
In each set, two statements are true and one has a mistake in it.
- The CIR holds the address of the instruction being executed.
- The program counter holds the address of the next instruction to fetch.
- The MAR holds the address being read from or written to.
- A higher priority interrupt can interrupt an interrupt service routine.
- Interrupts cannot be nested, because only one state can be saved at a time.
- The registers are pushed onto a stack when an interrupt is serviced.
- The data bus carries data and instructions in both directions.
- A 32 bit address bus can address 2 to the power 32 locations.
- The address bus carries addresses in both directions.
- Branch prediction reduces the cost of pipeline flushes.
- Pipelining lets one instruction be fetched while another is decoded.
- Pipelining makes each single instruction finish in fewer cycles.
- Von Neumann architecture stores instructions and data in one memory.
- Harvard architecture is cheaper and simpler than von Neumann.
- Harvard architecture has separate memories for instructions and data.
Brain game: Odd One Out
Three tiles in each set share a link. Tick the odd one out, then write what links the other three.
- Accumulator
- Program counter
- Word length
- CIR
What links the other three?
- Zero
- Carry
- Negative
- Word length
What links the other three?
- Overflow
- Clock speed
- Cache size
- Word length
What links the other three?
- Overflow
- Zero
- Carry
- Program counter
What links the other three?
- Overflow
- Cache size
- Word length
- Number of cores
What links the other three?
- Accumulator
- Clock speed
- Program counter
- CIR
What links the other three?
Brain game: Memory Flash, on paper
Which term means this? Write your answer from memory.
Names the operation an instruction performs
The data, or the address of the data, to work on
Discarding instructions after a branch is taken
Holds the instruction being decoded and executed
Holds flags such as carry, zero and overflow
Instructions and data competing for one bus
Brain game: Fact or Fib
Tick Fact if the statement is true and Fib if it is not.
Pipelining lets one instruction be fetched while another is decoded.
- Fact
- Fib
A higher priority interrupt can interrupt an interrupt service routine.
- Fact
- Fib
Pipelining makes each single instruction finish in fewer cycles.
- Fact
- Fib
A 32 bit address bus can address 2 to the power 32 locations.
- Fact
- Fib
The CIR holds the address of the instruction being executed.
- Fact
- Fib
The data bus carries data and instructions in both directions.
- Fact
- Fib
Interrupts cannot be nested, because only one state can be saved at a time.
- Fact
- Fib
The registers are pushed onto a stack when an interrupt is serviced.
- Fact
- Fib
The address bus carries addresses in both directions.
- Fact
- Fib
Branch prediction reduces the cost of pipeline flushes.
- Fact
- Fib
Pipelining reduces the time each individual instruction takes to complete.
- Fact
- Fib
Harvard architecture is cheaper and simpler than von Neumann.
- Fact
- Fib
City Run
City Run is a race through a neon cyber city, played on screen. It asks 20 of the questions above, from the quiz, This or That, Memory Flash and Fact or Fib.
Neon Roll
Neon Roll is a ball rolling down an endless neon slope, played on screen. Every right answer keeps it rolling. It asks the questions above, from the quiz, This or That, Memory Flash and Fact or Fib.
Answers
Round 1: Quiz Blitz
- Current Instruction Register At A Level the instruction is copied from the MDR into the CIR, which leaves the MDR free for the data the instruction needs.
- True Checking at the end of a cycle means the processor is always in a consistent state when it switches to an interrupt service routine.
- It doubles An address bus with n lines can address 2 to the power n locations, so each extra line doubles the number of addresses.
- The address in the PC is copied into the MAR → The PC is incremented → The instruction arrives in the MDR along the data bus → The instruction is copied from the MDR into the CIR PC to MAR, increment the PC, the instruction comes back along the data bus into the MDR, then it is copied into the CIR.
- Carry; Zero Carry, zero, negative and overflow are flags. The next address is in the PC, the instruction is in the CIR and the result is in the accumulator.
- An opcode and an operand The opcode says which operation to perform. The operand is the data, or the address of the data, it works on.
- Each saved state goes on a stack and is restored in reverse order The registers are pushed onto a stack. A higher priority interrupt pushes another state on top, and each state is popped back in turn.
- False Each instruction still passes through every stage. Pipelining overlaps instructions, so throughput rises, not the speed of any one instruction.
- The interrupt register is checked at the end of the cycle → The register contents are pushed onto a stack → The interrupt service routine runs → The saved state is popped back into the registers Check at the end of the cycle, save the state on the stack, run the ISR, then restore the state and carry on where the program left off.
- status register The status register holds flags set by the last operation, which later instructions can test.
- The instructions already fetched are discarded The instructions behind the branch followed the wrong path, so they are thrown away in a pipeline flush. Branch prediction reduces how often this happens.
- An instruction and its data can be fetched at the same time Separate memories and buses mean instructions and data never compete for one bus, which removes the von Neumann bottleneck.
Round 2: Quick Fire
- The MDR is then free to hold the data the instruction needs
- The CIR keeps the instruction while it is decoded and executed
Model answerCopying the instruction into the CIR leaves the MDR free to hold the data the instruction needs, while the CIR keeps the instruction as it is decoded and executed.
- Their contents are pushed onto a stack, saving the current state
- They are popped back when the interrupt service routine finishes
Model answerThe contents of the registers are pushed onto a stack to save the current state, then popped back into the registers when the interrupt service routine finishes.
- While one instruction is executed, the next is decoded and another is fetched
- So close to one instruction completes every cycle
Model answerPipelining overlaps the stages, so while one instruction is executed the next is decoded and another is fetched at the same time. Close to one instruction then completes every cycle.
- More bits are carried in each transfer
- So fewer transfers are needed and throughput rises
Model answerA wider data bus carries more bits in each transfer, so fewer transfers are needed to move the same amount of data and throughput rises.
Round 3: Big Think
- The address in the PC is copied into the MAR
- The PC is incremented
- The address goes out on the address bus, with a read signal on the control bus
- The instruction returns along the data bus into the MDR
- The instruction is copied from the MDR into the CIR
- The Control Unit splits it into opcode and operand
- It is executed, for example by the ALU with the result in the accumulator, and the flags are updated
- Interrupts are checked at the end of the cycle
Model answerThe address in the PC is copied into the MAR and the PC is incremented. The address is sent along the address bus with a read signal on the control bus, and the instruction comes back along the data bus into the MDR. It is copied from the MDR into the CIR. The control unit decodes it into an opcode and an operand. The instruction is executed, for example by the ALU with the result in the accumulator, and the status register flags are updated. At the end of the cycle the processor checks for interrupts.
- Von Neumann keeps instructions and data in one shared memory
- Harvard has separate memories and separate buses
- In von Neumann, instructions and data compete for one bus, the bottleneck
- Harvard can fetch an instruction and data at the same time, so it is faster
- Harvard is more complex and costly, and is used in embedded systems and DSPs
- Von Neumann is cheaper and simpler, and is used in general purpose computers
- Modern processors are hybrids, with separate instruction and data caches
Model answerIn the von Neumann architecture instructions and data share one memory and one bus, so they compete for it, which is the von Neumann bottleneck. Harvard has separate memories and separate buses, so an instruction and its data can be fetched at the same time, which is faster. Von Neumann is cheaper and simpler and is used in general purpose computers, while Harvard is more complex and is used in embedded systems and digital signal processors.
This or That
- The CIR The MDR passes the instruction to the Current Instruction Register, where it stays while it is decoded and executed.
- At the end of each cycle Checking at the end of a cycle means the processor is always in a consistent state when it switches to the interrupt service routine.
- On a stack The registers are pushed onto a stack. That is what lets a higher priority interrupt interrupt an interrupt service routine.
- It doubles n lines give 2 to the power n addresses, so every extra line doubles the number of locations.
- A wider data bus The data bus width sets how much moves in one transfer. A wider address bus reaches more memory instead.
- The cost of pipeline flushes If the processor guesses the branch right, the instructions already in the pipeline are the right ones and nothing is thrown away.
- Harvard Separate instruction and data memories let a DSP fetch both at once, which matters for fast, repetitive signal work.
- The operation to perform The opcode names the operation. The operand gives the data, or the address of the data.
Memory Match
- A 3 CIR: Holds the instruction being decoded and executed
- B 4 Status register: Holds flags such as carry, zero and overflow
- C 6 Opcode: Names the operation an instruction performs
- D 1 Operand: The data, or the address of the data, to work on
- E 2 Pipeline flush: Discarding instructions after a branch is taken
- F 5 Von Neumann bottleneck: Instructions and data competing for one bus
Sort It
- Fetch The instruction arrives in the MDR along the data bus Memory sends the instruction back along the data bus into the MDR as part of the fetch.
- Execute The status register flags are updated Flags such as zero and carry are set by the operation that has just been executed.
- Fetch The PC is incremented The PC moves on during the fetch, so it already points at the next instruction.
- Fetch The address in the PC is copied into the MAR Every fetch starts by copying the address of the next instruction from the PC into the MAR.
- Decode The opcode is used to work out which operation to perform Working out what the instruction means is the decode stage.
- Decode The control unit splits the instruction into opcode and operand Splitting the instruction into its parts is what decoding means.
- Decode The operand is identified as data or as an address Decoding includes working out what the operand refers to.
- Execute A jump instruction changes the value in the PC A jump is carried out in the execute stage by loading a new address into the PC.
- Execute The ALU carries out a calculation Doing the arithmetic or logic is executing the instruction.
- Decode Control signals are generated for the units that will act Once decoded, the control unit prepares the signals that will carry the instruction out.
- Fetch The instruction is copied from the MDR into the CIR The last step of the fetch puts the instruction in the CIR, ready to be decoded.
- Execute The result is placed in the accumulator The result of an ALU operation lands in the accumulator as the instruction executes.
Code Word
- OPCODE The part of an instruction that says which operation to perform.
- PIPELINE Overlapping fetch, decode and execute so several instructions are in progress at once.
- INTERRUPT A signal asking for the processor's attention, checked at the end of each cycle.
Link Up
- Registers Program counter; CIR; MAR; Accumulator
- Status flags Carry; Zero; Overflow; Negative
- Affect performance Clock speed; Cache size; Number of cores; Word length
Bug Hunt: the wrong statement, and why
- The CIR holds the address of the instruction being executed. The CIR holds the instruction itself, copied from the MDR, not its address.
- Interrupts cannot be nested, because only one state can be saved at a time. The state is saved on a stack, so several states can be saved in turn and interrupts can nest.
- The address bus carries addresses in both directions. The address bus is one way, from the processor to memory. The data and control buses are the two way ones.
- Pipelining makes each single instruction finish in fewer cycles. Each instruction still passes through every stage. Pipelining raises throughput by overlapping instructions.
- Harvard architecture is cheaper and simpler than von Neumann. Harvard needs two memories and two sets of buses, so it is more complex and costly. It is faster, which is why it suits embedded systems.
Odd One Out
- Word length is the odd one out: it goes with Affect performance. The other three: Registers.
- Word length is the odd one out: it goes with Affect performance. The other three: Status flags.
- Overflow is the odd one out: it goes with Status flags. The other three: Affect performance.
- Program counter is the odd one out: it goes with Registers. The other three: Status flags.
- Overflow is the odd one out: it goes with Status flags. The other three: Affect performance.
- Clock speed is the odd one out: it goes with Affect performance. The other three: Registers.
Memory Flash
- Opcode Names the operation an instruction performs
- Operand The data, or the address of the data, to work on
- Pipeline flush Discarding instructions after a branch is taken
- CIR Holds the instruction being decoded and executed
- Status register Holds flags such as carry, zero and overflow
- Von Neumann bottleneck Instructions and data competing for one bus
Fact or Fib
- Fact Pipelining lets one instruction be fetched while another is decoded.
- Fact A higher priority interrupt can interrupt an interrupt service routine.
- Fib Pipelining makes each single instruction finish in fewer cycles. The fix: Each instruction still passes through every stage. Pipelining raises throughput by overlapping instructions.
- Fact A 32 bit address bus can address 2 to the power 32 locations.
- Fib The CIR holds the address of the instruction being executed. The fix: The CIR holds the instruction itself, copied from the MDR, not its address.
- Fact The data bus carries data and instructions in both directions.
- Fib Interrupts cannot be nested, because only one state can be saved at a time. The fix: The state is saved on a stack, so several states can be saved in turn and interrupts can nest.
- Fact The registers are pushed onto a stack when an interrupt is serviced.
- Fib The address bus carries addresses in both directions. The fix: The address bus is one way, from the processor to memory. The data and control buses are the two way ones.
- Fact Branch prediction reduces the cost of pipeline flushes.
- Fib Pipelining reduces the time each individual instruction takes to complete. The fix: Each instruction still passes through every stage. Pipelining overlaps instructions, so throughput rises, not the speed of any one instruction.
- Fib Harvard architecture is cheaper and simpler than von Neumann. The fix: Harvard needs two memories and two sets of buses, so it is more complex and costly. It is faster, which is why it suits embedded systems.

