Computer Science I / Data Path and Control
Practice question · Select all that apply

The CPU is executing ADD R1, R2, writing the result back into R1. Select every control signal the control unit must produce for this instruction.

Hints
  1. Trace the operands' route: out of some registers, through the ALU, back to somewhere.
  2. Two of the options describe work that belongs to a different instruction family entirely.
Show the answer
  • B. Whether the ALU should add or subtract
  • C. Which register the ALU's result is written back to
  • E. Which registers to read onto the ALU's inputs
Why

An arithmetic instruction needs its sources selected, the ALU's function chosen, and its destination selected, three signals along one route. It touches no memory address (that would be a data-transfer instruction) and sets no PC target (that would be control flow). Assuming every instruction touches memory is the trap.

Read the lesson: Data Path and Control →

Practise Data Path and Control

The app has 7 more questions on this lesson, and keeps your place in the course. Computer Science I is free to start.

More questions on Data Path and Control