Course: Computer Architectures · Lab 05 · Results recorded 2 November 2026

Status: Exercises 1 and 2 implemented, measured and reported. Optional Exercise 3 was not completed. University upload is not established by these results.

Objective and program

After Lab 04 - AdaGrad Scheduling and Unrolling explored software scheduling, this lab compares the same vector program on an in-order configuration and superscalar configurations with one or two load/store units (LSUs). The question is whether additional hardware removes the bottleneck limiting elapsed time.

The program processes 100 elements using the assignment’s branch-dependent arithmetic. Its integer i/3 uses integer division: the v5 path multiplies for indices 0–2, divides for 3–5 and adds for 6–99. Final traces confirm 3 multiplications, 3 divisions and 94 additions on that output path. The assignment supplies no input arrays; the preserved source defines explicit single-precision inputs, including sign/zero and branch-boundary cases. Divisors are nonzero.

Configurations

Both cases use integer ALU latency 1, FP ALU/MUL/DIV 2/6/6, single precision, no compressed instructions and direct-memory instruction/read/write latency 1/1/1. All arithmetic units except FP DIV are pipelined.

SettingIn-orderSuperscalar
Integer MUL/DIV latency3/81/1
Out-of-order executionDisabledEnabled superscalar execution
Branch predictorIn-order configurationIdeal BPU
Visible Issue / CDB / Commit widthsIn-order teaching pipeline2 / 2 / 2
LSUs testedIn-order configuration1, then 2

The speedup includes changed integer latencies and branch/execution configuration; it does not isolate issue width alone. An ideal predictor removes realistic prediction errors in this experiment; it does not measure the accuracy of a practical BHT or BTB. See Branch Prediction Fundamentals.

Results

ConfigurationInstructionsElapsed cyclesCPI = cycles / instructions
In-order1,4093,1342.2243
Superscalar, ideal BPU, one LSU1,4099250.6565
Superscalar, ideal BPU, two LSUs1,4099250.6565

Superscalar speedup relative to this in-order configuration is 3,134/925 = 3.3881. CPI below 1 is possible because overlapping execution can complete more than one instruction per cycle on average. The instruction count is unchanged; the configurations differ in how execution overlaps.

Why did a second LSU not reduce runtime?

The source-based worksheet’s address-unit ready-instruction waiting slots fall from 103 to 1, but elapsed time stays 925 cycles. Those waiting slots sum local delays and can overlap with other work; they are not 102 cycles that can simply be subtracted from the total.

Last Issue occurs at cycle 912, with completion at 925. The Issue/control stream and final dependency/commit tail remain limiting. Each control transfer has its own Issue cycle in this teaching model. ASE’s broader waiting-cell statistic is 13,718 for both superscalar runs and includes more than LSU contention. Improving one local resource helps elapsed time only if it shortens the limiting execution path. See Structural Hazards in Multicycle Pipelines and Amdahl Law and Pipeline Speedup.

Correctness, counting and timing limits

All 200 stored output words match an independently rounded binary32 reference in each final run and were checked again in the final native-export records. Setup expands to six real instructions; dynamic computation count is 6 + 3×14 + 3×15 + 94×14 = 1,409. Squashed work and the protected three-instruction exit block are excluded.

Full source-based worksheets match all 1,409 executed instruction rows in both superscalar exports, tracking register versions, oldest-ready unit arbitration, CDB limits and in-order Commit. These reconstruct local ASE conventions rather than independently predict undocumented hardware. The first three loop-ending branches commit at cycles 29, 38 and 48.

Measurements are the visible ASE teaching-pipeline cycles. The underlying raw gem5 issueWidth is 8 while dispatchWidth=2 determines the visible Issue stage used here; raw ticks must not be substituted for the reported 925 cycles. No simulator code was changed.

Review and evidence

  • Why does CPI below one make sense here?
  • Why can a local waiting measure improve while total runtime stays unchanged?
  • What additional controls would be needed to isolate the effect of issue width alone?

Answers: multiple instructions overlap; the changed resource may not limit the final completion time; hold latencies, predictor, workload and other resources fixed while changing only the intended width.

Results come from the preserved Lab 05 completion record, final measurements and source snapshots. The public measurement table retains the primary totals. Personalized reports and submission packages stay private. Existing verified measurements were documented without rerunning the simulator.

Related: Instruction-Level Parallelism, Instruction Dependencies, Register Renaming, Lecture 05 - Multicycle Operations, Lecture 07 - Instruction-Level Parallelism.

Multiple issue connection

The multiple-issue lecture explains why width can produce CPI below one and why other stages, dependencies and CDB capacity can still limit throughput. Its illustrative latencies and packet rules are separate from this lab’s configuration. Multiple Issue and Superscalar Throughput