OCR H446 A Level Computer Science · 1.1 Characteristics of Contemporary Processors

Stretch tasks Types of Processor

Task 1

Quiz Challenge

A quiz game against four computer players, then short and long written answers.

  1. Quiz Blitz12 questions against the clock
  2. Quick Fire4 short answers
  3. Big Think2 long answers

About 20 minutes

Task 2

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

Task 3

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

Task 4

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

Task 5

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

Task 7

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.

Logic

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

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

Speed

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: Types of Processor

Types of Processor: the questions

Quiz Challenge, round 1: Quiz Blitz

  1. Why do RISC processors pipeline more easily than CISC processors?

    • They use microcode for every instruction
    • They run at lower clock speeds
    • Their instructions are a fixed length and take similar times
    • They have larger instruction sets
  2. What is microcode used for in a CISC processor?

    • Carrying out complex instructions as simpler internal steps
    • Storing the operating system
    • Compressing programs in memory
    • Predicting which way branches go
  3. A CISC program usually needs fewer instructions than the same program written for RISC.

    • True
    • False
  4. Which task suits a GPU best?

    • Running a program with many unpredictable branches
    • Following a long chain of steps that each need the last result
    • Scheduling the operating system's processes
    • Applying the same calculation to millions of pixels
  5. Which THREE limit the speedup from adding more cores?

    Tick 3.

    • Time spent coordinating the cores
    • The size of the monitor
    • The amount of secondary storage
    • Parts of the task that must run in sequence
    • Data dependencies between steps
  6. What does the S in SIMD stand for?

  7. Which family of processors is an example of CISC?

    • ARM
    • A graphics processor
    • x86
  8. A GPU is simply a faster version of a CPU.

    • True
    • False
  9. Order these from the fewest cores to the most.

    Number these 1 to 3.

    • A quad core CPU
    • A typical modern GPU
    • A single core CPU
  10. Amdahl's law says the maximum speedup from parallel processing is limited by what?

    • The fraction of the task that must stay sequential
    • The clock speed of the slowest core
    • The amount of cache on each core
    • The number of programs running
  11. Why did RISC come to dominate mobile devices?

    • RISC needs no compiler
    • Simpler hardware draws less power, which saves battery
    • RISC programs need less memory
    • RISC has a larger instruction set
  12. What is a coprocessor?

    • A secondary processor that takes on specific tasks
    • A second copy of the operating system
    • A processor that only runs in sleep mode
    • A register that holds two values

Quiz Challenge, round 2: Quick Fire

  1. Explain why RISC processors usually have lower power consumption than CISC processors. [2 marks]

  2. Explain why a GPU is not suited to a task with many branches. [2 marks]

  3. Describe two differences between RISC and CISC instructions. [2 marks]

  4. Explain why doubling the number of cores does not halve the time a program takes. [2 marks]

Quiz Challenge, round 3: Big Think

  1. Compare RISC and CISC processors, explaining why each is suited to its main uses. [6 marks]

  2. Explain why a GPU can train a machine learning model much faster than a CPU. [4 marks]

This or That: tick the right answer

  1. Which design suits a phone that runs on a battery?

    • RISC
    • CISC
  2. Where does the complexity sit in CISC?

    • In the compiler
    • In the hardware
  3. Which instructions are easier to pipeline?

    • Fixed length ones
    • Variable length ones
  4. A task applies one filter to every pixel of a video. Which processor suits it?

    • A GPU
    • A single CPU core
  5. Which limits the speedup from extra cores?

    • The sequential part of the task
    • The size of the hard disk
  6. What does SIMD apply one instruction to?

    • One data item at a time
    • Many data items at once
  7. Which is a typical CISC family?

    • x86
    • ARM
  8. Each step of a program needs the result of the step before. Will more cores help much?

    • Yes, each core takes a step
    • No, the steps must run in order

Memory Match: match each term to its meaning

TermMeaning
A RISC1 Large set of complex, variable length instructions
B CISC2 Thousands of simple cores built for uniform work
C GPU3 Small set of simple, fixed length instructions
D Amdahl's law4 Time lost coordinating cores and sharing data
E Data dependency5 Speedup is capped by the part that must stay sequential
F Communication overhead6 A step that needs the result of an earlier step

Sort It: tick one box in each row

Which kind of processor does each statement describe?

StatementRISCCISCGPU
One instruction can do the work of several
Instructions are all the same length
Built to run the same operation on huge amounts of data
The compiler builds complex operations from simple steps
Instructions vary in length
Thousands of simple cores working side by side
Slows down on code full of unpredictable branches
Uses microcode to carry out complex instructions
Most instructions finish in a single cycle
The x86 family in most desktop computers
Ideal for rendering millions of pixels at once
The ARM processors in almost every smartphone

Code Word: write the word that fits each clue

  1. Low level steps inside a CISC processor that carry out its complex instructions. (9 letters)

  2. His law says the sequential part of a task caps the speedup from more processors. (6 letters)

  3. A single sequence of instructions that one core can run. (6 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.

  • Many cycles each
  • Data dependencies
  • Sequential parts
  • Single threaded code
  • Complex hardware
  • Coordination
  • Fixed length
  • Microcode
  • Simple decoding
  • Variable length
  • One cycle each
  • Low power

Bug Hunt: tick the statement that is wrong

In each set, two statements are true and one has a mistake in it.

    • RISC instructions are a fixed length and usually take one cycle.
    • RISC programs need fewer instructions than CISC programs.
    • CISC instructions vary in length and can take several cycles.
    • A GPU runs code with many unpredictable branches faster than a CPU.
    • SIMD applies one instruction to many data items at once.
    • A GPU has thousands of simple cores.
    • A step that needs an earlier result cannot start early.
    • Amdahl's law limits the speedup from adding more processors.
    • Doubling the number of cores always halves the running time.
    • In CISC, the complexity sits in the compiler rather than the hardware.
    • In RISC, the compiler builds complex operations from simple instructions.
    • CISC processors often use microcode.
    • ARM processors are RISC and run almost every phone.
    • RISC processors draw more power because they run more instructions.
    • Most desktop computers use x86 processors, which are CISC.

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.

    • Many cycles each
    • Fixed length
    • One cycle each
    • Low power

    What links the other three?

    • Many cycles each
    • Data dependencies
    • Complex hardware
    • Microcode

    What links the other three?

    • Data dependencies
    • Sequential parts
    • Single threaded code
    • Fixed length

    What links the other three?

    • Complex hardware
    • Fixed length
    • One cycle each
    • Low power

    What links the other three?

    • Many cycles each
    • Single threaded code
    • Microcode
    • Variable length

    What links the other three?

    • Sequential parts
    • Single threaded code
    • Coordination
    • Microcode

    What links the other three?

Brain game: Memory Flash, on paper

Which term means this? Write your answer from memory.

  1. Large set of complex, variable length instructions

  2. Thousands of simple cores built for uniform work

  3. Small set of simple, fixed length instructions

  4. Time lost coordinating cores and sharing data

  5. Speedup is capped by the part that must stay sequential

  6. A step that needs the result of an earlier step

Brain game: Fact or Fib

Tick Fact if the statement is true and Fib if it is not.

  1. RISC instructions are a fixed length and usually take one cycle.

    • Fact
    • Fib
  2. A GPU runs code with many unpredictable branches faster than a CPU.

    • Fact
    • Fib
  3. A CISC program usually needs fewer instructions than the same program written for RISC.

    • Fact
    • Fib
  4. Doubling the number of cores always halves the running time.

    • Fact
    • Fib
  5. SIMD applies one instruction to many data items at once.

    • Fact
    • Fib
  6. A GPU is simply a faster version of a CPU.

    • Fact
    • Fib
  7. RISC processors draw more power because they run more instructions.

    • Fact
    • Fib
  8. In CISC, the complexity sits in the compiler rather than the hardware.

    • Fact
    • Fib
  9. In RISC, the compiler builds complex operations from simple instructions.

    • Fact
    • Fib
  10. A GPU has thousands of simple cores.

    • Fact
    • Fib
  11. A step that needs an earlier result cannot start early.

    • Fact
    • Fib
  12. RISC programs need fewer instructions than CISC programs.

    • 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

  1. Their instructions are a fixed length and take similar times Uniform instructions move through the pipeline stages in step, so the stages stay full.
  2. Carrying out complex instructions as simpler internal steps Microcode lets the hardware carry out one complex instruction as a sequence of simpler operations.
  3. True Each CISC instruction can do the work of several simple ones, so programs are shorter.
  4. Applying the same calculation to millions of pixels A GPU applies one instruction to many data items at once, which is SIMD.
  5. Parts of the task that must run in sequence; Data dependencies between steps; Time spent coordinating the cores Amdahl's law, data dependencies and communication overhead all cap the gain. Software that is not multi threaded is a fourth limit.
  6. single SIMD is Single Instruction Multiple Data: one instruction applied to many data items at once.
  7. x86 Desktop and laptop processors in the x86 family are CISC. ARM, used in phones, is RISC.
  8. False A GPU has many simple cores built for the same operation on lots of data. A CPU has fewer, more powerful cores for complex sequential work.
  9. A single core CPU → A quad core CPU → A typical modern GPU One core, then four, then the thousands of simple cores inside a GPU.
  10. The fraction of the task that must stay sequential However many processors are added, the sequential part still takes the same time, so it sets a ceiling on the speedup.
  11. Simpler hardware draws less power, which saves battery On a device that runs from a battery, power efficiency matters most, and simple fixed length instructions also pipeline cleanly.
  12. A secondary processor that takes on specific tasks A coprocessor, such as a GPU, handles particular work to relieve the main processor.

Round 2: Quick Fire

    • RISC hardware is simpler, with fewer transistors
    • Because the compiler builds complex operations, so no microcode or complex decoding is needed
    Model answer

    RISC hardware is simpler, with fewer transistors, because complex operations are built by the compiler from simple instructions, so no microcode or complex decoding hardware is needed and less power is used.

    • GPU cores apply the same instruction to many data items at once
    • Branches send items down different paths, so many cores sit idle
    Model answer

    GPU cores apply the same instruction to many data items at once. When branches send different data items down different paths, the cores cannot all run the same code, so many sit idle waiting.

    • RISC instructions are fixed length, CISC instructions are variable length
    • A RISC instruction usually takes one cycle, a CISC one can take several
    • RISC has a small set of instructions, CISC a large set
    • CISC instructions are complex and do more work each, RISC ones are simple
    Model answer

    RISC instructions are fixed length, while CISC instructions are variable length. A RISC instruction usually takes one cycle, while a CISC instruction can take several cycles.

    • Part of the program must still run in sequence, as Amdahl's law says
    • Some steps depend on the results of earlier steps
    • Coordinating the cores and sharing data adds overhead
    • Software that is not multi threaded only uses one core
    Model answer

    Part of the program must still run in sequence, which Amdahl's law says limits the speedup, and some steps depend on the results of previous steps. The cores also spend time coordinating and sharing data, which adds overhead.

Round 3: Big Think

    • RISC has a small set of simple instructions
    • CISC has a large set of complex instructions
    • RISC instructions are fixed length and take one cycle, CISC ones vary and take several
    • RISC pipelines easily because its instructions are uniform
    • The complexity sits in the compiler for RISC and in the hardware, with microcode, for CISC
    • RISC draws less power, so it suits phones running on a battery
    • CISC needs fewer instructions per program and suits desktops and laptops
    • ARM is the best known RISC design
    Model answer

    RISC processors have a small set of simple instructions that are fixed length and usually take one cycle, while CISC processors have a large set of complex, variable length instructions that can take several cycles. Because RISC instructions are uniform, they pipeline easily. In RISC the complexity sits in the compiler, while CISC builds it into the hardware using microcode. RISC hardware is simpler and draws less power, so ARM processors suit phones running on a battery. CISC needs fewer instructions per program, and the x86 family is used in desktops and laptops.

    • A GPU has thousands of simple cores
    • Each core applies the same instruction to different data, which is SIMD
    • Training is mostly matrix multiplication, the same arithmetic repeated
    • So the work can be split up and run in parallel
    • A CPU has a few powerful cores built for complex sequential work
    Model answer

    A GPU has thousands of simple cores, and each one applies the same instruction to different data, which is SIMD. Training a machine learning model is mostly matrix multiplication, the same arithmetic repeated across millions of values, so it can be split up and run in parallel. A CPU has a few powerful cores built for complex sequential work, so it processes far fewer values at the same time.

This or That

  1. RISC Simple RISC hardware draws less power, which is why ARM processors run almost every phone.
  2. In the hardware CISC builds complex instructions into the hardware, often with microcode. RISC leaves the compiler to build them from simple steps.
  3. Fixed length ones Fixed length instructions move through the stages in step, so the pipeline stays full.
  4. A GPU The same operation on millions of pixels is SIMD work, exactly what a GPU's thousands of cores are built for.
  5. The sequential part of the task Amdahl's law: however many cores you add, the part that must run in order still takes the same time.
  6. Many data items at once Single Instruction Multiple Data: one instruction, many data items, all at the same time.
  7. x86 Desktop and laptop processors in the x86 family are CISC. ARM is the best known RISC design.
  8. No, the steps must run in order Data dependencies force the steps to run one after another, so extra cores sit idle.

Memory Match

  • A 3 RISC: Small set of simple, fixed length instructions
  • B 1 CISC: Large set of complex, variable length instructions
  • C 2 GPU: Thousands of simple cores built for uniform work
  • D 5 Amdahl's law: Speedup is capped by the part that must stay sequential
  • E 6 Data dependency: A step that needs the result of an earlier step
  • F 4 Communication overhead: Time lost coordinating cores and sharing data

Sort It

  1. CISC One instruction can do the work of several Powerful, complex instructions mean CISC programs need fewer of them.
  2. RISC Instructions are all the same length Fixed length instructions are a defining feature of RISC.
  3. GPU Built to run the same operation on huge amounts of data That is SIMD, the way a GPU works.
  4. RISC The compiler builds complex operations from simple steps RISC moves the complexity into the compiler.
  5. CISC Instructions vary in length Variable length instructions are a CISC feature, and one reason it is harder to pipeline.
  6. GPU Thousands of simple cores working side by side A GPU has thousands of simple cores, where a CPU has a few powerful ones.
  7. GPU Slows down on code full of unpredictable branches Branches send data down different paths, so a GPU's cores sit idle. CPUs handle branching far better.
  8. CISC Uses microcode to carry out complex instructions Microcode breaks a complex CISC instruction into simpler internal steps.
  9. RISC Most instructions finish in a single cycle Simple RISC instructions usually take one cycle each.
  10. CISC The x86 family in most desktop computers Desktop and laptop x86 processors are CISC.
  11. GPU Ideal for rendering millions of pixels at once The same lighting calculation applied to every pixel is perfect GPU work.
  12. RISC The ARM processors in almost every smartphone ARM is the best known RISC design, chosen for its low power use.

Code Word

  1. MICROCODE Low level steps inside a CISC processor that carry out its complex instructions.
  2. AMDAHL His law says the sequential part of a task caps the speedup from more processors.
  3. THREAD A single sequence of instructions that one core can run.

Link Up

  • RISC features Fixed length; One cycle each; Simple decoding; Low power
  • CISC features Variable length; Microcode; Many cycles each; Complex hardware
  • Limit parallel speedup Sequential parts; Data dependencies; Coordination; Single threaded code

Bug Hunt: the wrong statement, and why

  1. RISC programs need fewer instructions than CISC programs. Each RISC instruction does less, so a RISC program needs more instructions. CISC packs more work into each one.
  2. A GPU runs code with many unpredictable branches faster than a CPU. Branches send data items down different paths, so GPU cores sit idle. A CPU, with branch prediction, handles them better.
  3. Doubling the number of cores always halves the running time. Sequential parts, data dependencies and coordination overhead all mean the time falls by less than half.
  4. In CISC, the complexity sits in the compiler rather than the hardware. CISC builds the complexity into the hardware, often with microcode. It is RISC that moves it into the compiler.
  5. RISC processors draw more power because they run more instructions. RISC hardware is simpler, so it draws less power, which is why it suits devices that run on a battery.

Odd One Out

  1. Many cycles each is the odd one out: it goes with CISC features. The other three: RISC features.
  2. Data dependencies is the odd one out: it goes with Limit parallel speedup. The other three: CISC features.
  3. Fixed length is the odd one out: it goes with RISC features. The other three: Limit parallel speedup.
  4. Complex hardware is the odd one out: it goes with CISC features. The other three: RISC features.
  5. Single threaded code is the odd one out: it goes with Limit parallel speedup. The other three: CISC features.
  6. Microcode is the odd one out: it goes with CISC features. The other three: Limit parallel speedup.

Memory Flash

  1. CISC Large set of complex, variable length instructions
  2. GPU Thousands of simple cores built for uniform work
  3. RISC Small set of simple, fixed length instructions
  4. Communication overhead Time lost coordinating cores and sharing data
  5. Amdahl's law Speedup is capped by the part that must stay sequential
  6. Data dependency A step that needs the result of an earlier step

Fact or Fib

  1. Fact RISC instructions are a fixed length and usually take one cycle.
  2. Fib A GPU runs code with many unpredictable branches faster than a CPU. The fix: Branches send data items down different paths, so GPU cores sit idle. A CPU, with branch prediction, handles them better.
  3. Fact A CISC program usually needs fewer instructions than the same program written for RISC.
  4. Fib Doubling the number of cores always halves the running time. The fix: Sequential parts, data dependencies and coordination overhead all mean the time falls by less than half.
  5. Fact SIMD applies one instruction to many data items at once.
  6. Fib A GPU is simply a faster version of a CPU. The fix: A GPU has many simple cores built for the same operation on lots of data. A CPU has fewer, more powerful cores for complex sequential work.
  7. Fib RISC processors draw more power because they run more instructions. The fix: RISC hardware is simpler, so it draws less power, which is why it suits devices that run on a battery.
  8. Fib In CISC, the complexity sits in the compiler rather than the hardware. The fix: CISC builds the complexity into the hardware, often with microcode. It is RISC that moves it into the compiler.
  9. Fact In RISC, the compiler builds complex operations from simple instructions.
  10. Fact A GPU has thousands of simple cores.
  11. Fact A step that needs an earlier result cannot start early.
  12. Fib RISC programs need fewer instructions than CISC programs. The fix: Each RISC instruction does less, so a RISC program needs more instructions. CISC packs more work into each one.