Course: Computer Architectures

Source: E. Sanchez, Multiple-issue processors, Politecnico di Torino, ASE 2026/27, 20 PDF pages. Local file: 12 - multiple issue.pdf. Number 12 follows the filename; no lecture date is inferred. The original PDF and figures remain local because redistribution permission is uncertain. Added examples and clarifications are distinguished below.

Learning route

The last two lectures explained ready-work scheduling and provisional execution. This lecture widens the instruction stream: accept more than one instruction per clock, then provide sufficient execution, broadcast and commit capacity to benefit. The detailed reusable lesson is Multiple Issue and Superscalar Throughput.

  1. Separate issue width from instruction latency and average CPI.
  2. Understand decode versus issue before counting two accepted instructions per cycle.
  3. Apply the static model’s slot restrictions: an FP load is a memory operation, not FP arithmetic.
  4. Read the timing diagrams in cycles and instruction positions separately.
  5. Extend Tomasulo/ROB allocation to multiple issue, then compare the same loop with and without speculation.

Prerequisites: Tomasulo Dynamic Scheduling, Hardware Speculation and the Reorder Buffer, Latency and Initiation Interval. Lab 05 - Superscalar Execution and Load Store Units gives a measured CPI-below-one connection with its own settings.

Static two-issue design (pages 3–14)

The illustrated machine fetches and decodes two 32-bit instructions per cycle in an aligned 64-bit issue packet. One is integer/memory/branch and the other FP arithmetic. The FP-load fld f2,0(x1) uses the memory slot even though its destination is an FP register. Some implementations impose packet order; page 5’s “current” wording is dated source context, not a universal property of present processors.

Independent instructions can still conflict on register-file ports or miss the required fetch supply. Dependent arithmetic must wait for a loaded value. FP units need pipelining or replication to accept sufficient independent work. Fetch, resources and data.

The page 6 ideal diagram assumes FP execution lasts three cycles. Pages 11–13 use a five-stage load path: IF1, ID2, EX3, MEM4, WB5. Its value is available after MEM4 for a consumer’s EX5. The same-packet companion and the next packet’s two positions are too early to use it: three instruction positions, not three extra cycles. This is an illustrative load-use timing rule, not a universal cache/memory latency. RISC-V has no architectural branch delay slots despite the source’s timing terminology. Step-by-step timing.

Dynamic two-issue design (pages 15–16)

Instructions allocate stations and ROB entries in program order, potentially several in one cycle. Execution can occur later and out of order when operands and resources permit. A dependent pair may issue together while the younger consumer waits. Up to two normal commits per cycle still obey ROB age and readiness. A single-result CDB can bottleneck multiple completed operations; replicating result distribution increases hardware cost.

This dynamic example is not constrained to the earlier one-integer/one-FP packet rule. Avoid treating the two illustrative organizations as one unchanged machine.

Worked loop comparison (pages 17–20)

Loop: ld   x2, 0(x1)
      addi x2, x2, 1
      sd   x2, 0(x1)
      addi x1, x1, 8
      bne  x2, x3, Loop

The loop loads an element, increments and stores it, advances the pointer, and continues while the incremented element x2 differs from x3. The branch does not compare the pointer with an end address. The example permits up to two issue and two commit operations per clock and assumes all speculative predictions are correct.

IterationLoad issues, both casesLoad executes, no speculationLoad executes, speculation
1122
2485
37148

Issuing early alone is insufficient. Without speculation, iteration 2’s load waits for iteration 1’s branch to execute at cycle 7. With speculation it executes at cycle 5, using the earlier produced pointer value rather than waiting for architectural pointer commit. True dependencies remain: the increment still waits for its own load.

Speculative schedule, first iteration

InstructionIssueExecute/addressRead memoryCDBCommit
Load x212345
Increment x215—67
Store x223——7
Advance x123—48
Branch37——8

The store’s EX at 3 calculates an address; its data is still pending from the increment. Memory changes at commit 7. The early pointer calculation broadcasts at 4 but commits later at 8. Thus iteration 2 can use its forwarded value to calculate the next address at 5. Load and pointer both broadcast at cycle 4, so this table must not be read as enforcing a single one-result CDB.

In iteration 2, commit cycles are 9, 10, 10, 11 and 11. In iteration 3 they are 12, 13, 13, 14 and 14. Instructions can finish out of order while paired commits still preserve order. No exact alternative arbitration rules or full hidden hardware configuration are inferred beyond the source table.

Result and limits

The source reports 19 cycles without speculation and 14 with it for the first three iterations: 19/14 = 1.3571 speedup. Both machines already support multiple issue; the extra improvement comes from earlier execution across branches. Wrong predictions and their recovery would reduce the benefit.

Page 18’s first-case table is cropped in the supplied PDF, including the right edge and later rows. The visible load timings above and page 20’s explicit total are readable; missing rows are not reconstructed as if directly visible. The speculative table on page 19 is readable in full.

PDF page map

PagesMaterial
2CPI below one; superscalar and VLIW named
3–6Static scheduling, slot categories, packet alignment and ideal overlap
7–10Fetch limitations, FP units, register ports and RAW
11–13Load/branch timing in cycles and positions
14Source’s market generalization; dated context
15–16Dynamic multiple issue and CDB bandwidth
17–20Loop schedules and 19-versus-14-cycle comparison

The market claims on page 14 are not verified current recommendations. VLIW is only introduced as another category; detailed VLIW techniques are not supplied or exercised here.

Review route

Explain why ten-cycle latency need not imply CPI ten, classify an FP load’s slot, then trace the load diagram cycle by cycle. Finally locate the difference between the two loop schedules: which instruction issues early in both cases but executes earlier only with speculation? Use the answered checks in Multiple Issue and Superscalar Throughput > 8. Recall and answers.