§ 4.8. RV32I Experiment Results¶
Experiment setup · Fixed programs · Generated workloads · Compiled workloads
Which of the three RV32I cores of this chapter runs programs fastest: the single-cycle core, the baseline pipeline or the advanced pipeline? This page runs all three on the workloads of § 4.2. The advanced pipeline is run with each of its five branch predictors, so every comparison has seven targets.
These runs use flip-flop memory, which answers in the same clock cycle, so they compare the cores and not the memory. The last section, memory systems, keeps the advanced core fixed and compares the memory arrangements of § 4.7 over DRAM, with four cache behaviors.
The answer in short¶
- The advanced pipeline with the two-bit predictor is the fastest of the three cores in almost every case: 13 of 14 fixed programs, 14 of 15 generated workloads, 20 of 23 controlled tests, all 5 longer branch patterns and both compiled programs, in every timing profile.
- The other cores typically take 1.3–2.1× as long. The single-cycle core needs fewer cycles but each is about 1.75× longer; the baseline pipeline has the shortest clock but stalls on every dependency and branch.
- The baseline wins only when it needs about as many cycles as the advanced core (independent work with few branches); then its shorter clock decides.
- No branch predictor is best everywhere. Static taken, backward-taken or one-bit each win some patterns; two-bit is never far behind and is the steadiest choice.
Time of every target against the single-cycle core, per workload group
(embedded clocks; lower is faster). Each point is the geometric mean over
the group's cases of target time / single-cycle time. The fixed-program
group leaves out the eight programs that end in an expected trap. The
generated and controlled groups share some cases, so they are separate
descriptions, not parts of one score.
How to read the results¶
The seven targets¶
| Column | Core | Branch handling |
|---|---|---|
| Single | Single-cycle | One instruction per cycle: nothing to predict |
| Baseline | Baseline pipeline | Assumes not taken; stalls on every dependency |
| Adv NT | Advanced pipeline | Static: always not taken |
| Adv T | Advanced pipeline | Static: always taken |
| Adv BT | Advanced pipeline | Static: backward branches taken, forward not taken |
| Adv 1b | Advanced pipeline | One-bit history per branch (16 entries) |
| Adv 2b | Advanced pipeline | Two-bit counter per branch (16 entries) |
Cycles and time¶
The tables give cycles. A core's cycle count is the same in every
timing profile: the campaigns were run in
unit and again in embedded and desktop, and every case took the same
number of cycles. What differs is the length of a cycle, each core's
certified clock period:
Certified clock period of each core with flip-flop memory, per timing profile.
| Core | unitticks | embeddedps (MHz) | desktopps (MHz) |
|---|---|---|---|
| Single-cycle | 142 | 7,164 (140) | 4,986 (201) |
| Baseline pipeline | 68 | 3,354 (298) | 2,334 (428) |
| Advanced pipeline | 80 | 4,104 (244) | 2,858 (350) |
Time = cycles × clock period, so a core with more cycles can still win
with a shorter clock. The advanced core's period is the same for all five
predictors. The single-cycle period is 1.75× the advanced one in embedded
(1.74× in desktop, 1.77× in unit).
How the runs were checked¶
Every run matched the instruction oracle (or the fixture's own verdict) and the expected final memory, with zero setup violations at its clock. Most were also compared with a structural reference core run at the same clock (equivalence checks): all fixed programs, longer branch patterns, predictor sizes and compiled programs, and a spot check of the generated workloads.
| Workload group | Cases per profile | Results |
|---|---|---|
| 22 fixed programs × 7 targets | 154 | Fixed programs |
| 15 generated workloads × 7 targets | 105 | Generated workloads |
| 23 controlled tests × 7 targets | 161 | Controlled tests |
| 5 longer branch patterns × 7 targets | 35 | Longer branch patterns |
| 3 predictor sizes, advanced two-bit | 3 | Predictor size |
| 2 compiled programs × 7 targets | 14 | Compiled programs |
Cases count table entries, not distinct programs: some workloads appear in more than one group. The full Embench section is a projection from older cycle counts, outside these totals.
Summary by workload group¶
The advanced core fixed to two-bit prediction against the other two cores,
on exactly the same cases. "Takes" is the geometric mean of
other core's time / advanced two-bit time in embedded; above 1 means
slower than advanced.
| Group | What it tests | Cases | Fastest core: single / baseline / advanced | Single-cycle takes | Baseline takes |
|---|---|---|---|---|---|
| Fixed programs | Short programs and instruction mixes | 14 | 0 / 1 / 13 | 1.33× | 1.33× |
| Generated workloads | One case of each workload family | 15 | 0 / 1 / 14 | 1.41× | 1.73× |
| Controlled tests | One pressure varied at a time | 23 | 0 / 3 / 20 | 1.45× | 1.65× |
| Longer branch patterns | Five branch patterns, 64 iterations | 5 | 0 / 0 / 5 | 1.44× | 2.11× |
The winner counts are the same in all three profiles. In desktop the
ratios match embedded within 0.001; in unit they are 1–4 % higher,
because the baseline and single-cycle clocks are relatively a little longer
there. The groups share some cases, so the rows are separate descriptions,
not scores to average.
Results by workload group¶
Fixed programs¶
The 22 fixed programs test instruction behavior and include six short workloads. Programs 09–16 end in an expected trap or fault: their tiny counts test that a core stops at the right instruction, not its speed, so the comparisons below use the other 14.
Cycles, complete 22 × 7 FF panel:
| Case | Single | Baseline | Adv NT | Adv T | Adv BT | Adv 1b | Adv 2b |
|---|---|---|---|---|---|---|---|
| program-01 | 29 | 72 | 43 | 39 | 39 | 41 | 43 |
| program-02 | 35 | 50 | 39 | 39 | 39 | 39 | 39 |
| program-03 | 17 | 27 | 21 | 21 | 21 | 21 | 21 |
| program-04 | 24 | 56 | 40 | 30 | 40 | 40 | 40 |
| program-05 | 11 | 25 | 19 | 19 | 19 | 19 | 19 |
| program-06 | 10 | 20 | 14 | 14 | 14 | 14 | 14 |
| program-07 | 61 | 123 | 79 | 67 | 67 | 69 | 71 |
| program-08 | 42 | 89 | 59 | 53 | 53 | 55 | 57 |
| program-09 | 2 | 6 | 6 | 6 | 6 | 6 | 6 |
| program-10 | 2 | 6 | 6 | 6 | 6 | 6 | 6 |
| program-11 | 2 | 9 | 6 | 6 | 6 | 6 | 6 |
| program-12 | 3 | 10 | 7 | 7 | 7 | 7 | 7 |
| program-13 | 2 | 9 | 6 | 6 | 6 | 6 | 6 |
| program-14 | 3 | 10 | 7 | 7 | 7 | 7 | 7 |
| program-15 | 2 | 9 | 6 | 6 | 6 | 6 | 6 |
| program-16 | 3 | 12 | 9 | 9 | 9 | 9 | 9 |
| program-17 | 73 | 77 | 77 | 77 | 77 | 77 | 77 |
| program-18 | 66 | 262 | 70 | 70 | 70 | 70 | 70 |
| program-19 | 67 | 169 | 103 | 103 | 103 | 103 | 103 |
| program-20 | 51 | 138 | 85 | 57 | 57 | 59 | 61 |
| program-21 | 84 | 217 | 134 | 106 | 106 | 108 | 110 |
| program-22 | 61 | 129 | 87 | 75 | 75 | 77 | 79 |
What it shows:
- Advanced two-bit is fastest on 13 of the 14 programs. The exception is
program 17: baseline and advanced both need 77 cycles, and the baseline's
shorter clock wins (258 ns against 316 ns in
embedded). - Fewer cycles do not mean less time. Program 04 takes 24 single-cycle
cycles against 40 advanced two-bit cycles, yet advanced is slightly faster
(164 ns against 172 ns in
embedded). - Two-bit is not the best predictor on every program. On program 20, static taken and backward-taken need 57 cycles against 61 for two-bit and 85 for not-taken.
- With the eight trap programs included, the single-cycle core comes within 2 % of advanced two-bit: in such short runs, filling the pipeline costs more than the pipeline saves.
Generated workloads¶
The 15 generated workload families each contribute one case, run unchanged on all seven targets. The three legacy loops use their own iteration scheme; the other twelve run eight iterations with size eight and seed one (sort and CRC32: two iterations). A family name stands for this one case, not for every parameter value.
Cycles, complete 15 × 7 FF panel:
| Case | Single | Baseline | Adv NT | Adv T | Adv BT | Adv 1b | Adv 2b |
|---|---|---|---|---|---|---|---|
| dependent | 44 | 142 | 62 | 50 | 50 | 52 | 54 |
| alternating | 40 | 130 | 66 | 54 | 54 | 64 | 58 |
| nested | 220 | 603 | 350 | 242 | 242 | 260 | 250 |
| independent | 551 | 625 | 569 | 557 | 557 | 559 | 561 |
| dependency | 551 | 2,137 | 569 | 557 | 557 | 559 | 561 |
| load-use | 218 | 468 | 300 | 288 | 288 | 290 | 292 |
| load-scheduled | 218 | 404 | 236 | 224 | 224 | 226 | 228 |
| branch-pattern | 70 | 217 | 104 | 92 | 92 | 100 | 96 |
| branch-alias | 161 | 558 | 195 | 183 | 183 | 201 | 187 |
| calls | 170 | 434 | 268 | 256 | 256 | 258 | 260 |
| stream | 519 | 1,156 | 713 | 605 | 605 | 623 | 613 |
| pointer-chase | 391 | 1,220 | 649 | 541 | 541 | 559 | 549 |
| sort | 453 | 1,166 | 615 | 679 | 567 | 593 | 585 |
| crc32 | 823 | 2,179 | 1,233 | 1,001 | 1,017 | 1,057 | 1,039 |
| scan | 439 | 1,244 | 633 | 525 | 525 | 543 | 533 |
What it shows:
- Advanced two-bit is fastest on 14 of 15. The exception is
independent: baseline needs 625 cycles against 561, but its shorter clock makes it faster (2.10 µs against 2.30 µs inembedded). - Dependencies are what the baseline cannot hide.
dependencydoes the same work asindependentwith each instruction waiting for the last: single-cycle and advanced keep their 551 and 561 cycles, while baseline rises from 625 to 2,137, because only the advanced core forwards results. - Scheduling loads helps. Moving work between a load and its use lowers advanced two-bit from 292 to 228 cycles and removes all 64 load-use stalls.
- Static taken and backward-taken often beat two-bit on these short cases, before a two-bit counter has learned the branches.
Controlled tests¶
The core-gap preset changes one pressure at a time and keeps everything else identical: dependency distance, load scheduling, branch direction, branch aliasing, predictor training, calls and data kernels. Some settings repeat a generated case. They are diagnostics, not 23 independent programs. Sort and CRC32 run two iterations; the other whole programs eight, with size eight and seed one.
Dependencies and loads¶
Cycles, eight controlled settings:
| Case | Single | Baseline | Adv NT | Adv T | Adv BT | Adv 1b | Adv 2b |
|---|---|---|---|---|---|---|---|
| independent-short | 89 | 128 | 93 | 95 | 95 | 93 | 93 |
| independent-long | 551 | 625 | 569 | 557 | 557 | 559 | 561 |
| dependency-d1 | 551 | 2,137 | 569 | 557 | 557 | 559 | 561 |
| dependency-d2 | 551 | 1,121 | 569 | 557 | 557 | 559 | 561 |
| dependency-d4 | 551 | 625 | 569 | 557 | 557 | 559 | 561 |
| dependency-d8 | 551 | 625 | 569 | 557 | 557 | 559 | 561 |
| load-use | 218 | 468 | 300 | 288 | 288 | 290 | 292 |
| load-scheduled | 218 | 404 | 236 | 224 | 224 | 226 | 228 |
In dN a result is used N instructions after it is produced. At distance one the
baseline needs 2,137 cycles against advanced two-bit's 561; at distance four
or more it is back to 625 cycles and, with its shorter clock, faster than
advanced. The load-use pair is the same work with and without scheduling:
292 cycles and 64 load-use stalls against 228 and none.
Cost of a dependency and of an unscheduled load. Each bar is the stressed case's cycles divided by its control's (above one: the pressure costs cycles), for all seven targets.
Branches¶
Cycles, nine controlled settings:
| Case | Single | Baseline | Adv NT | Adv T | Adv BT | Adv 1b | Adv 2b |
|---|---|---|---|---|---|---|---|
| branch-taken | 66 | 213 | 108 | 80 | 96 | 84 | 88 |
| branch-not-taken | 74 | 221 | 100 | 104 | 88 | 90 | 92 |
| branch-alternating | 70 | 217 | 104 | 92 | 92 | 100 | 96 |
| branch-bursts | 74 | 221 | 100 | 104 | 88 | 90 | 92 |
| branch-irregular | 69 | 216 | 105 | 89 | 93 | 95 | 99 |
| alias-spacing8 | 97 | 302 | 131 | 119 | 119 | 107 | 111 |
| alias-spacing16 | 161 | 558 | 195 | 183 | 183 | 201 | 187 |
| branch-body-training0 | 56 | 184 | 94 | 66 | 82 | 70 | 74 |
| branch-body-training32 | 56 | 184 | 94 | 66 | 82 | 66 | 66 |
The branch direction decides which predictor wins. The training pair measures the same branch body after 0 or 32 earlier iterations (executed and checked, but outside the measured window): a trained two-bit predictor drops from 74 to 66 cycles and from five next-PC misses to one.
Calls and data kernels¶
Cycles, six controlled settings:
| Case | Single | Baseline | Adv NT | Adv T | Adv BT | Adv 1b | Adv 2b |
|---|---|---|---|---|---|---|---|
| calls | 170 | 434 | 268 | 256 | 256 | 258 | 260 |
| stream | 519 | 1,156 | 713 | 605 | 605 | 623 | 613 |
| pointer-chase | 391 | 1,220 | 649 | 541 | 541 | 559 | 549 |
| scan | 439 | 1,244 | 633 | 525 | 525 | 543 | 533 |
| sort | 453 | 1,166 | 615 | 679 | 567 | 593 | 585 |
| crc32 | 823 | 2,179 | 1,233 | 1,001 | 1,017 | 1,057 | 1,039 |
These add variety to the controlled group: calls and data-heavy loops on the same seven targets, each for its stated input only.
Longer branch patterns¶
The five branch directions again, now for 64 iterations of the branch-pattern workload, so that the predictors have time to learn.
Cycles, 64 iterations of each pattern:
| Target | taken | not-taken | alternating | bursts | irregular |
|---|---|---|---|---|---|
| Single | 458 | 522 | 490 | 490 | 488 |
| Baseline | 1,501 | 1,565 | 1,533 | 1,533 | 1,531 |
| Adv NT | 780 | 716 | 748 | 748 | 750 |
| Adv T | 528 | 720 | 624 | 624 | 618 |
| Adv BT | 656 | 592 | 624 | 624 | 626 |
| Adv 1b | 532 | 594 | 688 | 576 | 626 |
| Adv 2b | 536 | 596 | 628 | 592 | 626 |
Time of each target per pattern (embedded clocks). Color shows each value
against the pattern's fastest target; outlines mark the fastest. Compare
within a pattern: the patterns do different amounts of work.
What it shows:
- Every advanced predictor beats both other cores on every pattern.
- Each pattern has its own best predictor: taken wins always-taken and irregular, backward-taken wins always-not-taken, taken and backward-taken tie on alternating, one-bit wins bursts.
- Two-bit is the safe choice: within 2.8 % of the best on every pattern, and the lowest geometric mean of the five predictors.
Predictor size¶
One 64-iteration case whose branches are 16 addresses apart, run on advanced two-bit with three table sizes:
| Entries | Cycles | Next-PC misses |
|---|---|---|
| 8 | 1,363 | 67 |
| 16 | 1,363 | 67 |
| 32 | 1,239 | 5 |
With 8 or 16 entries the branches collide in the table; 32 entries separate them and save 9.1 % of the time. This shows the effect of aliasing on one address pattern, not a best table size.
Compiled programs¶
Two checked-in ELF programs test loading compiler-produced RV32I code. Both passed their own verdict, the oracle and the structural reference on all seven targets.
Cycles, complete 2 × 7 FF panel:
| Case | Single | Baseline | Adv NT | Adv T | Adv BT | Adv 1b | Adv 2b |
|---|---|---|---|---|---|---|---|
| self-check.elf | 19 | 56 | 26 | 32 | 26 | 26 | 26 |
| compiled.elf | 64 | 166 | 86 | 94 | 86 | 88 | 88 |
Advanced two-bit is the fastest core on both, in every profile. Both are small and dominated by startup code; they are not the full applications of the next section.
Full Embench: conditional clock-only projection¶
Not a current measurement. An earlier campaign ran 19 Embench workloads on all seven targets with their original verifiers and the instruction oracle, but without the structural reference, on an older version of the code. They were not rerun. The table holds those historical cycle counts; the times below assume they are unchanged and multiply them by the current clocks.
Historical cycles, all 19 × 7 target cells:
| Workload | Single | Baseline | Adv NT | Adv T | Adv BT | Adv 1b | Adv 2b |
|---|---|---|---|---|---|---|---|
| aha-mont64 | 11,425,502 | 16,739,060 | 14,019,466 | 12,357,832 | 12,564,698 | 12,380,704 | 12,312,016 |
| crc32 | 6,130,443 | 19,966,346 | 7,356,891 | 7,007,039 | 7,007,033 | 7,007,375 | 7,007,039 |
| cubic | 30,287,860 | 71,399,587 | 42,590,615 | 37,505,317 | 37,296,609 | 37,130,343 | 36,513,847 |
| edn | 75,135,316 | 191,060,158 | 111,910,206 | 92,733,864 | 89,051,016 | 83,631,098 | 83,518,500 |
| huffbench | 2,693,952 | 5,749,891 | 3,365,737 | 3,215,457 | 2,922,743 | 2,963,505 | 2,940,475 |
| matmult-int | 29,506,443 | 74,426,421 | 44,177,157 | 36,564,643 | 36,015,495 | 37,160,367 | 36,407,605 |
| minver | 12,751,619 | 29,064,911 | 17,987,531 | 16,165,139 | 15,762,493 | 15,306,379 | 15,227,437 |
| nbody | 27,246,935 | 65,541,011 | 38,868,841 | 33,659,173 | 32,939,523 | 33,132,073 | 32,826,229 |
| nettle-aes | 4,807,300 | 5,875,634 | 5,044,530 | 5,046,090 | 4,957,130 | 4,998,206 | 4,940,870 |
| nettle-sha256 | 4,099,001 | 5,219,708 | 4,206,627 | 4,177,117 | 4,158,071 | 4,168,539 | 4,160,961 |
| nsichneu | 2,238,725 | 6,562,009 | 3,379,608 | 4,175,512 | 3,377,174 | 3,406,714 | 3,354,964 |
| picojpeg | 5,241,766 | 11,818,952 | 6,129,158 | 5,591,750 | 5,768,474 | 5,537,090 | 5,519,994 |
| qrduino | 6,032,091 | 15,169,390 | 7,948,406 | 7,543,352 | 7,374,356 | 7,556,310 | 7,317,850 |
| sglib-combined | 2,975,542 | 6,906,791 | 3,828,677 | 4,063,561 | 3,808,805 | 3,698,971 | 3,637,847 |
| slre | 2,533,787 | 5,732,802 | 3,104,696 | 3,452,584 | 3,104,482 | 3,061,616 | 2,969,702 |
| st | 17,895,271 | 42,991,287 | 25,458,239 | 22,453,967 | 21,590,901 | 21,850,025 | 21,484,209 |
| statemate | 1,684,582 | 3,023,302 | 1,938,243 | 1,875,385 | 1,914,555 | 1,887,029 | 1,855,627 |
| ud | 6,771,211 | 14,687,130 | 8,966,161 | 9,051,945 | 8,658,491 | 8,868,513 | 8,531,311 |
| wikisort | 6,310,064 | 14,142,504 | 8,959,126 | 8,149,074 | 7,926,686 | 7,644,544 | 7,552,916 |
Projected time against the single-cycle core (embedded clocks), from
the historical cycles above; valid only if those counts still hold.
If the old cycle counts still hold, advanced two-bit would be the fastest
core on all 19 workloads in unit and on 18 of 19 in embedded and
desktop, where baseline would lead nettle-aes. Single-cycle would take
1.52× (unit) and 1.50× (embedded, desktop) as long as advanced two-bit,
and baseline 1.58× and 1.52× (geometric means). This is arithmetic on old
counts, not a validated comparison or an official Embench score.
Memory systems¶
The results above use separate zero-wait memories. This section keeps the core fixed and varies the memory system: the five arrangements of § 4.7 over one DRAM, and four behaviors of their caches. The advanced core only serves as a realistic source of requests.
Setup.
| Part | Configuration |
|---|---|
| Core | Advanced pipeline (§ 4.6), behavioral |
| L1 caches (C-ID, D-ID) | One for instructions, one for data: 256 B each |
| L2 cache (D-0, D-ID) | Shared, 2 KiB |
| Cache geometry | Two ways (8 sets per L1, 64 sets in the L2), or four ways at the same capacity (4 and 32 sets); 16-byte lines; SRAM tag and data stores; a miss fills its line with one burst; one request at a time |
| Cache behaviors | Write-through without write-allocate; the same with a two-entry write buffer; write-back with write-allocate; write-back with four ways (pseudo-LRU). The behavior applies to the data L1 and the L2; the instruction L1 is read-only |
| Main memory | One DRAM of 65,536 words with the datasheet's row size (512 words in embedded, 1,024 in desktop) and refresh; A has one per port |
| Clock | 4,104 ps in embedded, 2,858 ps in desktop; the clock analysis certifies every arrangement and behavior at that clock |
| Checks | Every run produced the expected results and final memory, with zero setup violations |
The four programs differ in how they use memory:
| Program | What it does with memory |
|---|---|
calls |
Nested function calls: small code, return addresses saved on and restored from the stack (size 16, 256 measured iterations) |
sort |
Sorts 64 words: a 512-byte working set, larger than an L1 and smaller than the L2 (4 iterations) |
stream |
Walks 1,024 words once per iteration: larger than the L2 (4 iterations) |
pointer-chase |
Follows 512 nodes (4 KiB) in random order: each load depends on the previous one (4 iterations) |
Each measurement starts after one warm-up iteration. Code and data sit as in § 4.7. The arrangements and behaviors were fixed before any run, and no memory timing or cache setting was changed after seeing results. The runs with caches used the compact cache controller, which gives the same cycles as the gate-level one; the write-through runs were also measured with gate-level controllers, with the same results.
Speed against B, the shared memory without caches (higher is faster;
embedded, with desktop in brackets). Without caches, separate memories
(A) give:
| Program | A |
|---|---|
calls |
1.51× (1.57×) |
sort |
1.99× (2.08×) |
stream |
1.38× (1.40×) |
pointer-chase |
1.85× (2.19×) |
With caches:
| Program | Arrangement | Write-through | Write buffer | Write-back | Write-back, 4 ways |
|---|---|---|---|---|---|
calls |
C-ID | 3.58× (3.63×) | 4.28× (4.58×) | 4.28× (4.69×) | 4.28× (4.69×) |
calls |
D-0 | 3.46× (3.55×) | 4.09× (4.37×) | 4.09× (4.49×) | 4.09× (4.49×) |
calls |
D-ID | 3.39× (3.48×) | 4.28× (4.69×) | 4.28× (4.69×) | 4.28× (4.69×) |
sort |
C-ID | 3.93× (4.00×) | 5.28× (5.72×) | 5.05× (5.59×) | 5.01× (5.55×) |
sort |
D-0 | 3.71× (3.79×) | 4.87× (5.25×) | 4.73× (5.26×) | 4.96× (5.57×) |
sort |
D-ID | 3.65× (3.74×) | 5.35× (5.87×) | 5.26× (5.91×) | 5.25× (5.89×) |
stream |
C-ID | 3.06× (3.07×) | 4.07× (4.29×) | 2.78× (2.82×) | 2.78× (2.82×) |
stream |
D-0 | 2.91× (2.94×) | 3.84× (4.05×) | 2.41× (2.52×) | 2.61× (2.71×) |
stream |
D-ID | 2.82× (2.85×) | 3.98× (4.24×) | 2.45× (2.56×) | 2.45× (2.56×) |
pointer-chase |
C-ID | 3.02× (3.79×) | 3.02× (3.79×) | 3.02× (3.79×) | 3.03× (3.81×) |
pointer-chase |
D-0 | 3.27× (3.95×) | 3.27× (3.95×) | 3.27× (3.95×) | 3.25× (3.93×) |
pointer-chase |
D-ID | 3.14× (3.77×) | 3.14× (3.77×) | 3.14× (3.77×) | 3.13× (3.76×) |
embedded; caches with a two-entry write buffer. The line marks B; the fastest arrangement of each program is highlighted. Every behavior is in the table above.What it shows:
- The fastest systems put first-level caches with a write buffer in front
of the shared memory.
calls,sortandstreamrun 4.0–5.4× faster than B (embedded), with the L1s alone (C-ID) or with both levels (D-ID) within 2.4 % of each other. A store is answered at once and reaches DRAM while the program goes on. - Sharing one DRAM costs 1.4–2.2× (A against B). The two ports rarely
ask in the same cycle; the cost is DRAM rows. In
sort(embedded), A's two memories open 796 rows and B's shared DRAM 18,377, because instruction fetches and data accesses interleave on one device. At about twelve cycles per row change, that accounts for most of B's extra cycles. - The L1 pair gives most of the gain; an L2 alone comes close. With write-through or a write buffer, C-ID and D-0 are within 3–9 % of each other: at this clock a hit in the larger L2 costs about as much as a hit in an L1.
- Waiting for stores is what makes two levels slow. With write-through
and no buffer, D-ID is 4–8 % slower than C-ID in
calls,sortandstream: every store goes through both levels to DRAM while the program waits. A write buffer removes the wait: then D-ID is the fastest forsort, and equal to or faster than C-ID forcalls. - Write-back is not better here, and can be worse. It matches the
write buffer in
callsand comes within 5 % insort. Instreamit takes 9–21 % more cycles than write-through:streamwrites its output once, so fetching each output line on a write miss (write-allocate) only brings in data that is overwritten, and every changed line is written back later. - Random access favors the bigger cache. In
pointer-chase, whose cycles a write buffer does not change, the 256-byte L1 rarely holds a node and every miss fetches a whole line, so the L2 alone (D-0) is fastest with any behavior. Indesktopthe whole 4 KiB array fits in one DRAM row, which helps every arrangement with a DRAM behind it. - Four ways at the same capacity change little. Only the L2 alone gains:
about 5 % fewer cycles in
sortand 7 % instream. The small L1s are limited by their size, not by conflicts within a set.
Cycles and cycles per instruction of every run
Cycles in the measured window and cycles per instruction (CPI).
calls
| Arrangement | Caches | embedded cycles |
CPI | desktop cycles |
CPI |
|---|---|---|---|---|---|
| A | none | 62,529 | 12.21 | 65,944 | 12.88 |
| B | none | 94,309 | 18.42 | 103,331 | 20.18 |
| C-ID | Write-through | 26,321 | 5.14 | 28,499 | 5.57 |
| C-ID | Write buffer | 22,013 | 4.30 | 22,547 | 4.40 |
| C-ID | Write-back | 22,013 | 4.30 | 22,013 | 4.30 |
| C-ID | Write-back, 4 ways | 22,013 | 4.30 | 22,013 | 4.30 |
| D-0 | Write-through | 27,296 | 5.33 | 29,144 | 5.69 |
| D-0 | Write buffer | 23,037 | 4.50 | 23,671 | 4.62 |
| D-0 | Write-back | 23,037 | 4.50 | 23,037 | 4.50 |
| D-0 | Write-back, 4 ways | 23,037 | 4.50 | 23,037 | 4.50 |
| D-ID | Write-through | 27,820 | 5.43 | 29,665 | 5.79 |
| D-ID | Write buffer | 22,013 | 4.30 | 22,031 | 4.30 |
| D-ID | Write-back | 22,013 | 4.30 | 22,013 | 4.30 |
| D-ID | Write-back, 4 ways | 22,013 | 4.30 | 22,013 | 4.30 |
sort
| Arrangement | Caches | embedded cycles |
CPI | desktop cycles |
CPI |
|---|---|---|---|---|---|
| A | none | 281,202 | 10.14 | 302,048 | 10.89 |
| B | none | 559,942 | 20.19 | 628,588 | 22.67 |
| C-ID | Write-through | 142,446 | 5.14 | 157,293 | 5.67 |
| C-ID | Write buffer | 106,133 | 3.83 | 109,953 | 3.96 |
| C-ID | Write-back | 110,966 | 4.00 | 112,528 | 4.06 |
| C-ID | Write-back, 4 ways | 111,805 | 4.03 | 113,327 | 4.09 |
| D-0 | Write-through | 150,892 | 5.44 | 165,890 | 5.98 |
| D-0 | Write buffer | 114,917 | 4.14 | 119,720 | 4.32 |
| D-0 | Write-back | 118,369 | 4.27 | 119,422 | 4.31 |
| D-0 | Write-back, 4 ways | 112,905 | 4.07 | 112,905 | 4.07 |
| D-ID | Write-through | 153,511 | 5.54 | 168,220 | 6.07 |
| D-ID | Write buffer | 104,677 | 3.77 | 107,166 | 3.86 |
| D-ID | Write-back | 106,455 | 3.84 | 106,450 | 3.84 |
| D-ID | Write-back, 4 ways | 106,733 | 3.85 | 106,733 | 3.85 |
stream
| Arrangement | Caches | embedded cycles |
CPI | desktop cycles |
CPI |
|---|---|---|---|---|---|
| A | none | 410,643 | 14.31 | 451,632 | 15.73 |
| B | none | 567,601 | 19.77 | 632,355 | 22.03 |
| C-ID | Write-through | 185,577 | 6.47 | 205,977 | 7.18 |
| C-ID | Write buffer | 139,373 | 4.86 | 147,303 | 5.13 |
| C-ID | Write-back | 204,311 | 7.12 | 223,893 | 7.80 |
| C-ID | Write-back, 4 ways | 204,283 | 7.12 | 223,893 | 7.80 |
| D-0 | Write-through | 194,892 | 6.79 | 215,278 | 7.50 |
| D-0 | Write buffer | 147,831 | 5.15 | 156,029 | 5.44 |
| D-0 | Write-back | 235,072 | 8.19 | 251,407 | 8.76 |
| D-0 | Write-back, 4 ways | 217,533 | 7.58 | 233,148 | 8.12 |
| D-ID | Write-through | 201,013 | 7.00 | 222,082 | 7.74 |
| D-ID | Write buffer | 142,679 | 4.97 | 149,043 | 5.19 |
| D-ID | Write-back | 232,090 | 8.09 | 246,895 | 8.60 |
| D-ID | Write-back, 4 ways | 231,943 | 8.08 | 246,895 | 8.60 |
pointer-chase
| Arrangement | Caches | embedded cycles |
CPI | desktop cycles |
CPI |
|---|---|---|---|---|---|
| A | none | 134,203 | 13.06 | 125,641 | 12.23 |
| B | none | 248,769 | 24.22 | 275,375 | 26.81 |
| C-ID | Write-through | 82,295 | 8.01 | 72,584 | 7.07 |
| C-ID | Write buffer | 82,295 | 8.01 | 72,584 | 7.07 |
| C-ID | Write-back | 82,295 | 8.01 | 72,584 | 7.07 |
| C-ID | Write-back, 4 ways | 81,986 | 7.98 | 72,334 | 7.04 |
| D-0 | Write-through | 75,971 | 7.40 | 69,702 | 6.79 |
| D-0 | Write buffer | 75,971 | 7.40 | 69,702 | 6.79 |
| D-0 | Write-back | 75,971 | 7.40 | 69,702 | 6.79 |
| D-0 | Write-back, 4 ways | 76,561 | 7.45 | 70,069 | 6.82 |
| D-ID | Write-through | 79,289 | 7.72 | 73,041 | 7.11 |
| D-ID | Write buffer | 79,289 | 7.72 | 73,041 | 7.11 |
| D-ID | Write-back | 79,289 | 7.72 | 73,041 | 7.11 |
| D-ID | Write-back, 4 ways | 79,579 | 7.75 | 73,208 | 7.13 |
What these results do not show¶
- Memory. The core comparisons use flip-flop memory. The latency of every
memory technology is in 3.6 Memory Timing;
memory systems over DRAM are measured above. The memory-system results
cover one capacity per cache level, one request at a time, no prefetch and
a DRAM with one open row; other designs need their own runs.
An older campaign with timed memories used the controllers from before the
gate-level memory timing work; it was not rerun and remains in the
repository history at tag
timing-legacy. - Other inputs. The tables cover the stated programs, sizes, predictor sizes and clocks. Any change to the circuits, delay tables or clocks needs new certificates and, where cycles can change, new runs.
- Host speed. Results are simulated cycles and times; how long the host computer took is not a measured result.
- Earlier publication. The first
unitcampaign (October 14, 2026) ran the advanced core at 100 ticks, the certificate then; the current one is 80 (94 until the bus splitter became wiring inuniton 2026-10-27, then 82 until theunitdelay tables were re-proven the same day). The cycles are unchanged, but the shorter clock changes a few orderings: single-cycle no longer wins two fixed programs, and every advanced predictor now beats single-cycle on every longer branch pattern.