Course: Computer Architectures · Lecture: Lecture 12 - Multiple Issue
1. Width is different from latency
A pipeline overlaps instructions even when only one new instruction issues per cycle. A multiple-issue processor can accept more than one per cycle. A two-issue design can accept A and B in one cycle, then C and D in the next, if dependencies and resources permit.
This does not shorten each instruction’s own calculation to half a cycle. Latency measures how long a particular operation takes; throughput measures how much work completes over time. A ten-cycle divide does not by itself prevent average CPI below one: independent instructions may overlap it on other units. If most work depends on the divide, that dependency limits the benefit.
Under ideal sustained two-instruction-per-cycle operation, CPI = cycles/instructions = 1/2 = 0.5. This is a throughput limit, not a promise for every program or short run. Fill/drain overhead, unused slots, dependencies, misses and recovery can increase average CPI. Latency and Initiation Interval and Pipeline CPI and Stall Costs provide the earlier performance vocabulary.
2. Decode versus issue
Decode identifies the operation, operands and destination. Issue accepts an instruction into the next scheduling/execution structures after required checks. They may be grouped in an ID stage, but they are distinct actions.
In the Tomasulo/ROB model, an instruction may be decoded but unable to issue because no suitable reservation station or ROB slot is free. After issue it may still wait for operands. Two-decode capacity supports two-issue throughput, but decoding two does not guarantee both can issue. Tomasulo Dynamic Scheduling · Hardware Speculation and the Reorder Buffer.
3. The static two-slot model
The slides first examine a particular statically scheduled superscalar design. Compiler instruction order is used, with checks and stalls as required. Each issue packet groups two 32-bit instructions aligned on a 64-bit boundary:
| Slot | Allowed instruction categories |
|---|---|
| Integer/memory/branch | Integer ALU, load, store or branch |
| FP arithmetic | FP arithmetic operation, excluding loads/stores |
An FP load such as fld f2,0(x1) copies memory data into an FP register. It is a memory operation, so it uses the first slot. fadd.d f6,f8,f10 performs arithmetic and uses the FP slot. Slot category follows the operation, not the destination register’s name.
An independent load/add pair can be eligible by instruction type; two integer additions or two FP additions cannot fill both slots in this particular design. The later dynamic example has different pairing capabilities; do not carry this restriction into every two-issue processor.
4. Three separate obstacles to filling the packet
- Fetch supply: the cache must provide both instructions (64 bits in this model). A packet crossing cache blocks can reduce fetch to one instruction in designs described by the slides. A packet contains at most one branch here.
- Resource access: independent instructions may compete for FP register-file ports. A port is an access connection. Providing another port or issuing the first instruction alone are source options.
- Data readiness:
fld f2,0(x1)followed byfadd.d f6,f2,f10needs the load’s new value. The addition cannot calculate from old f2 simply because the packet has a vacant arithmetic slot.
The FP units also need sufficient initiation capacity: pipelined units or multiple independent units can support repeated operations. An operation with a long latency need not prevent another independent operation from entering a pipelined unit; non-pipelined occupancy is a different limit.
5. Read the load timing without confusing units
For the five-stage load drawn in pages 11–12:
| Clock cycle | Stage | Action |
|---|---|---|
| 1 | IF | Fetch |
| 2 | ID | Decode/issue |
| 3 | EX | Calculate address |
| 4 | MEM | Read memory |
| 5 | WB | Write register |
The value becomes available at the end of cycle 4. With forwarding in this illustrated pipeline, a consumer can use it in EX during cycle 5. A consumer in the next packet would normally reach EX in cycle 4, so it has a one-cycle load-use gap. This is different from the load’s whole five-cycle fetch-to-WB path.
Now count instruction positions in the paired stream:
Packet 1: [load A] [B]
Packet 2: [C] [D]
Packet 3: [E] [F]B, C and D are three positions too early to use the loaded value under the diagram’s assumptions. E/F can reach EX in cycle 5. The compiler may place independent useful work in the intervening positions; otherwise slots are unused or execution stalls. Three instruction positions do not mean three extra clock cycles.
Page 13 similarly illustrates several younger instruction positions entering before a branch redirect takes effect. The source calls these delay slots, but ordinary RISC-V has no architectural branch delay slots. Treat the diagrams as timing windows of the illustrated machine, not a guarantee that three instructions after a branch always execute. Load and Branch Delay Slots.
6. Dynamic multiple issue with the ROB
The processor can issue more than one instruction per cycle while preserving program order within allocation. A then B can both receive ROB entries in one cycle; B is still younger. If B needs A, it receives A’s producer tag and waits. Issuing together is not the same as executing together.
At commit, up to two oldest eligible instructions can commit per cycle in the final example. An unfinished head cannot be skipped merely because younger results are ready. Renaming, memory checks and recovery requirements continue to apply.
Broadcast bandwidth matters too. With one CDB serving one result per cycle, two operations finishing simultaneously cannot both publish immediately. Extra CDB capacity can improve throughput at a hardware cost. The example schedules should not be interpreted as a one-CDB machine merely because the earlier introduction used one bus: page 19 shows multiple broadcasts in some cycles.
Fetch → Decode/Issue → Execution → Result distribution → CommitA wider front end cannot sustain more useful completions than dependencies and the rest of this path allow.
7. Why speculation adds to multiple issue
Multiple issue increases accepted instructions per cycle. Dynamic scheduling lets ready work pass waiting work. Speculation permits execution across unresolved branches, with provisional effects retained until safe commitment. They solve related but different limits.
The source loop’s next-iteration load issues before the earlier branch resolves in both cases. Without speculation it waits to execute; with correct speculation it can execute sooner. Speculation does not remove the load-to-increment RAW dependency within an iteration.
The source’s first three iterations take 19 cycles without speculation and 14 with correct predictions, a speedup 19/14 ≈ 1.3571. The same 15 loop instructions are compared under the source’s timing conventions. Do not mistake the restricted static issue-packet model for the dynamic pairing used in this example. The full tables and commit sequence are summarized in Lecture 12 - Multiple Issue.
The source briefly names Very Long Instruction Word (VLIW) processors as another multiple-operation approach, but does not develop VLIW scheduling. As added context, VLIW explicitly packages operations for compiler-directed parallel execution; it should not be silently treated as identical to a dynamically scheduled superscalar processor.
8. Recall and answers
- A divide takes ten cycles. Does this alone establish a CPI of ten? Why?
- A load into f2 is paired with independent arithmetic on f8/f10. What can block the pair despite independent inputs?
- Explain five load stages, a one-cycle load-use gap and three affected instruction positions without treating them as the same measurement.
- Can a dependent pair issue together in a dynamic two-issue machine? Must it execute together?
- Why can multiple issue without speculation still stall at a loop boundary?
Answers: 1. No: CPI averages all instructions and depends on overlap. 2. Fetch supply or port/unit conflicts. 3. Full instruction path, producer/consumer timing gap, and occupied positions in a two-wide stream are distinct. 4. If supported and resources allow, yes; the consumer waits on its tag. 5. Younger issued work may be prohibited from executing until the earlier branch resolves.