---
title: "Gemmini — paper by Genc et al. (2021) — summary and ideas"
description: "Gemmini connects configurable neural network accelerators to software and complete chips to reveal how system design changes performance."
canonical: "https://research.elamur.ai/free/en/papers/genc-2021-gemmini-enabling-systematic-deep-learning/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Translate](https://md.translate.elamur.ai/free/en/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/genc-2021-gemmini-enabling-systematic-deep-learning/)

[home](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2021](https://md.research.elamur.ai/free/en/papers/2021/) / Gemmini: Enabling Systematic Deep-Learning Architecture Evaluation via Full-Stack Integration

# Gemmini: Enabling Systematic Deep-Learning Architecture Evaluation via Full-Stack Integration

Paper · 2021 · Hasan Genc, Seah Kim, Alon Amid et al.

**Authors:** Hasan Genc, Seah Kim, Alon Amid, Ameer Haj-Ali, Vighnesh Iyer, Pranav Prakash, Jerry Zhao, Daniel Grubb, Harrison Liew, Howard Mao, Albert J. Ou, Colin Schmidt, Samuel Steffl, John Wright, [Ion Gabriel Stoica](https://md.research.elamur.ai/free/en/authors/ion-gabriel-stoica/), [Jonathan Ragan‐Kelley](https://md.research.elamur.ai/free/en/authors/jonathan-ragan-kelley/), Krste Asanović, Borivoje Nikolić and [Yakun Sophia Shao](https://md.research.elamur.ai/free/en/authors/yakun-sophia-shao/) · **Year:** 2021 · **Venue:** Proceedings - ACM IEEE Design Automation Conference · **Licence:** [arXiv — non-exclusive license to distribute](http://arxiv.org/licenses/nonexclusive-distrib/1.0/)

[**327** citations OpenAlex, 2026-10-14](https://openalex.org/works?filter=cites:W2989762710|W3178941450) · [Proceedings - ACM IEEE Design Automation Conference](https://openalex.org/S4210231368) · [licence](http://arxiv.org/licenses/nonexclusive-distrib/1.0/)

- [PDF](https://arxiv.org/pdf/1911.09925)
- [DOI 10.1109/dac18074.2021.9586216](https://doi.org/10.1109/dac18074.2021.9586216)
- [arXiv 1911.09925](https://arxiv.org/abs/1911.09925)
- [OpenAlex](https://openalex.org/W3178941450)

Citations: OpenAlex, 2026-10-14.

## Deep dive: Gemmini: Enabling Systematic Deep-Learning Architecture Evaluation via Full-Stack Integration

Gemmini connects configurable neural network accelerators to software and complete chips to reveal how system design changes performance. · about 35 minutes to read

**In this deep dive**

1. [Summary](#dd-summary)
2. [Ideas worth borrowing](#dd-ideas-worth-borrowing)
3. [How Mova uses it](#dd-how-mova-uses-it)
4. [The problem and its context](#dd-the-problem-and-its-context)
5. [The method, step by step](#dd-the-method-step-by-step)
6. [Experiments and results](#dd-experiments-and-results)
7. [What the ablations show](#dd-what-the-ablations-show)
8. [Limitations](#dd-limitations)
9. [What came after](#dd-what-came-after)

### Summary

A fast neural network accelerator can still belong to a slow computer. Its arithmetic units may finish their work quickly while the surrounding processor prepares inputs, the memory system moves data, or address translation delays requests. Gemmini addresses this gap between an accelerator considered alone and an accelerator operating inside a working system. The paper presents an open-source generator that produces configurable accelerator hardware, matching software support, and integration with a complete system-on-chip. Its central contribution is an experimental environment in which those parts can be designed and evaluated together.

The hardware centers on an array of multiply-and-accumulate units, supported by local memories and optional circuits for operations that otherwise fall to the host processor. Designers can vary the array’s organization, arithmetic representation, dataflow, memory resources, and surrounding system. The software offers both an automatic route from ONNX network descriptions to executable programs and lower-level C/C++ interfaces. Integration with RISC-V processors and the Chipyard framework allows the resulting systems to run Linux. That matters because operating systems, shared caches, and processor activity can expose performance costs and correctness problems that an isolated accelerator test misses.

The evaluation combines cycle-exact system simulation using FireSim with commercial chip synthesis and physical implementation tools. Gemmini is tested on image-processing networks and BERT. For ResNet50, a configuration with an on-the-fly input-rearrangement unit reaches 22.8 frames per second at 1 GHz. The authors report a 2,670x speedup against an in-order Rocket processor and an 1,130x speedup against an out-of-order BOOM processor. The gains vary substantially with workload: MobileNetV2 reaches 18.7 frames per second and a 127x speedup over Rocket, while BERT achieves a 144x improvement against that processor. The paper also reports that Gemmini-generated accelerators were fabricated using TSMC 16nm and Intel 22nm technologies, establishing that the generated hardware can be physically realized.

The more revealing findings concern interactions between components. Without accelerator support for input rearrangement, replacing Rocket with BOOM improves CNN performance by 2.0x. Once that work moves into the accelerator, processor choice matters much less. A virtual-memory study finds that a small private translation cache with inexpensive filter registers comes within 2% of the best measured performance. A memory-allocation study finds that the preferred use of additional SRAM changes when concurrent workloads compete for a shared cache: in the dual-core setting, enlarging the shared cache improves overall performance by 8.0%, compared with 4.2% from enlarging accelerator-local storage. Gemmini’s argument is therefore broader than accelerator speed. It shows why the right accelerator design depends on the software, processor, translation machinery, and memory hierarchy around it.

### Ideas worth borrowing

#### Evaluate the complete execution path

A component’s local throughput does not determine the speed of the application that uses it. Gemmini makes the host processor, operating system, address translation, shared memory, and accelerator part of the same experiment. This works because it preserves the delays and dependencies that disappear when a component receives idealized inputs. The idea applies wherever specialized computation depends on substantial preparation or coordination: the useful measurement follows the request from application entry through data movement and execution to the final result.

The practical lesson is to define the experimental boundary before optimizing the component. If input preparation belongs to the real workload, its cost belongs in the measurement. If several workers share a cache, their interference belongs in the measurement as well. A narrow benchmark remains useful for diagnosing a unit, but it cannot answer every question about the system containing that unit.

#### Generate the software contract with the hardware

Gemmini emits a parameter header alongside each accelerator instance. The header records properties that software needs to know, including array dimensions, supported dataflows, and available auxiliary circuits. This prevents the generated hardware and its software assumptions from drifting apart. It also makes architectural exploration more practical: changing a hardware parameter does not leave every software layer to rediscover what changed.

The broader idea is that configurable components should export their capabilities in a form their users can consume directly. This applies to specialized libraries, storage engines, and execution backends as well as hardware. Configuration becomes a shared contract between layers. The benefit is especially strong when a parameter changes which optimizations are legal or how much work can fit into a local resource.

#### Keep convenient and precise interfaces together

Gemmini supports a high-level route for running network descriptions and a lower-level route for controlling accelerator operations through C/C++. These interfaces serve different investigations. Application developers can ask whether a workload runs well without managing every hardware detail. Systems researchers can inspect and alter scheduling, tiling, and accelerator use more directly.

This arrangement works because ease of use and experimental control address different needs. A high-level interface helps users reach a functioning baseline; a precise interface makes that baseline explainable and adjustable. The same principle can guide a transparent language system: provide a simple path for ordinary execution while preserving access to the operations and resource decisions that determine behavior.

#### Measure latency as well as miss frequency

The address-translation study shows why a high cache hit rate can coexist with meaningful overhead. A translation lookup that succeeds may still consume several cycles. Gemmini’s filter registers exploit repeated accesses to the same page to avoid that lookup entirely for suitable requests.

The reusable idea is to distinguish avoiding an expensive miss from avoiding the access itself. Once misses become uncommon, the common successful path may dominate the remaining cost. This applies to software caches and lookup structures too. An optimization should be judged by the time removed from the execution path, rather than by one intermediate statistic that happens to improve.

#### Match memory placement to reuse and competition

The memory-partitioning study separates convolution, matrix multiplication, and residual addition because they use storage differently. Larger local memories help computations that repeatedly reuse their inputs. Shared-cache capacity can matter more when data must survive across intervening operations or when concurrent workloads evict one another’s inputs.

This idea is useful whenever the same storage budget can be allocated in different places. Before increasing capacity, identify what the data must survive, who reuses it, and who competes for the same space. The best location for memory follows those relationships. A resource that helps the most arithmetic-intensive operation may still be the wrong choice for the complete application.

#### Use realistic execution to test correctness

Linux execution uncovered both a timing-sensitive deadlock and improper physical-memory access in the authors’ development experience. These were not merely slower versions of behavior already visible in a simpler environment. They depended on events and checks that the simpler environment did not expose.

The borrowing opportunity is to treat integration as a correctness instrument. Context switches, permission enforcement, and shared-resource activity create situations that a carefully controlled component test may never exercise. Keeping such execution in the development loop can reveal assumptions that would otherwise survive until deployment. Gemmini’s value here comes from making those conditions available while the architecture is still being explored.

### How Mova uses it

For Mova, a small transparent language system implemented in Rust, Gemmini offers a way to think about execution and evaluation instead of a language-processing algorithm. The paper does not describe a Mova integration, and there is no basis for claiming that Mova already uses Gemmini hardware, its software interfaces, or its system-generation flow. The concrete connection is a possible engineering approach: make the costs and dependencies surrounding specialized computation visible enough to measure.

The closest fit is complete-path measurement. If Mova introduces an optimized execution backend, the relevant question would include the work needed to reach that backend. Preparing inputs, arranging buffers, allocating storage, dispatching operations, and transferring results could all affect the benefit. Gemmini’s im2col comparison illustrates why this matters. Moving expensive preparation away from a host processor changes both application performance and the kind of processor needed to support the accelerator. A Mova experiment could use the same reasoning to decide whether an optimization improves the full language-processing path or only the operation at its center.

Transparency also gives Mova a useful connection to Gemmini’s layered interfaces. A convenient interface could remain available for ordinary use while lower-level interfaces expose scheduling and resource choices for investigation. In Rust, an analogous capability description could make the properties of an execution backend explicit to the rest of the system. The paper’s generated header suggests the purpose of such a description: keep the implementation’s actual capabilities aligned with the assumptions made by software above it. This is a possible design direction, not a claim about an existing Mova interface.

Memory organization is another transferable question. If a Mova workload contains operations with different reuse patterns, treating all temporary data as equally valuable could hide important differences. Gemmini’s residual-addition example is useful because it separates immediate arithmetic reuse from the need to retain a value until a later consumer arrives. A future Mova investigation could distinguish short-lived working buffers, repeatedly accessed data, and values that must remain available across intervening computation. It could then measure whether local storage or a shared storage layer better serves the complete workload.

The concurrency result supplies a further caution. An arrangement that works well for an isolated request may behave differently when several requests share resources. For Mova, that suggests comparing solitary execution with concurrent execution before adopting a memory policy. The paper does not establish which policy Mova should choose. It establishes why the choice deserves measurement under the intended conditions.

Finally, Gemmini’s translation filters illustrate a small, inspectable optimization with a clear condition for success: consecutive requests frequently address the same page. A transparent system benefits from optimizations whose triggering condition, saved work, and fallback path can all be explained. Mova could borrow that standard of explanation even where its own repeated operations have nothing to do with virtual memory. The useful principle is to identify a measured regularity, remove a specific repeated cost, and check the effect on complete execution. No accelerator adoption is required to apply that discipline.

### The problem and its context

#### Why an efficient arithmetic engine may be insufficient

Neural network execution involves more than arithmetic. A processor may need to arrange data into the form expected by an accelerator, initiate transfers, handle unsupported operations, and coordinate progress. The accelerator itself needs access to memory through a larger system. If that system uses virtual addresses, requests must be translated. If caches or buses are shared, other activity can change the time required to obtain data.

These dependencies create a measurement problem. An accelerator evaluated alone may appear to have ample computation throughput, yet spend much of its deployed lifetime waiting for another component. Conversely, a modest addition to the accelerator may eliminate enough host work to make a simpler surrounding system sufficient. The relevant design question is therefore not simply how fast an arithmetic array can run. It is how an application moves through the entire machine.

The paper places this concern within [machine learning](https://md.research.elamur.ai/free/en/concepts/machine-learning/) applications ranging from computer vision to translation and robotic manipulation. Dedicated hardware can improve execution efficiency, but designing that hardware is expensive and difficult. Generator-based design tries to reduce the effort by turning an architectural template into a family of implementations. Designers choose parameters rather than rebuilding the whole accelerator for each experiment.

Gemmini argues that this productivity gain must extend beyond the accelerator boundary. If a generator changes the arithmetic engine but leaves software adaptation and system integration mostly outside the flow, many important experiments remain costly. A researcher can vary the component while still struggling to evaluate what that variation means for an application running under an operating system.

#### What earlier accelerator research explored

The paper describes a broad range of earlier accelerator architectures. Different designs target different performance and energy goals, and their choices reflect different expected applications and deployment environments. Memory organizations exploit particular data-reuse patterns. Interconnects determine how operands and intermediate results travel among arithmetic units.

Most of the spatial architectures discussed distribute work over many execution units. A systolic arrangement, exemplified in the paper by the TPU, passes values through a structured array. Other designs use parallel vector engines, with Brainwave and NVDLA given as examples. These arrangements differ in how work is grouped, how intermediate values move, and where pipeline boundaries occur.

The authors also situate Gemmini alongside research on sparsity and in-memory computation. Those directions seek efficiency through properties beyond a conventional dense arithmetic array: some exploit absent or unnecessary work, while others reconsider where computation happens relative to stored data. Gemmini’s central contribution does not depend on replacing those research questions. It supplies an environment for examining architectural choices together with their surrounding execution system.

This context matters because a generator should support meaningful variation. A tool that only changes the dimensions of one fixed organization cannot explore every tradeoff raised by different spatial designs. Gemmini therefore makes the arrangement of processing elements, pipeline structure, arithmetic representation, and dataflow part of the configurable template.

#### What earlier generators left difficult

The paper discusses existing generators as a step toward greater hardware-design productivity. Instead of producing a single fixed accelerator, they provide parameterized building blocks or templates. Nevertheless, the authors identify restrictions in the architectural choices those tools expose. Many emphasize fixed-point arithmetic, one dataflow, or one family of spatial organization.

Gemmini aims for a broader comparison space. It supports both fixed-point and floating-point arithmetic, and it permits dataflow choices at design time and during execution. Its spatial template can express systolic arrangements as well as vector-like organizations. Peripheral support also allows it to execute operations beyond the central matrix computation.

The software requirements are similarly diverse. The paper presents VTA and DNNWeaver as examples oriented toward users who prefer framework-level access. MAGNet and MAERI illustrate the interest in more direct hardware control. Gemmini combines these needs in one flow instead of assuming that every user wants the same interface.

The system boundary is the other major distinction. The authors argue that earlier generators did not provide the complete integration needed to study host processors, shared caches, buses, and system software together. Within that comparison, Gemmini’s contribution is the ability to instantiate a working surrounding system, including Linux execution, rather than merely attach an accelerator to an idealized source of requests.

#### Why the host processor remains important

The paper cites industry investigations in which CPU execution accounted for as much as 77% of application time despite the presence of an accelerator. That figure is background motivation from prior studies, not a result of Gemmini’s own benchmark suite. It illustrates the possibility that accelerated arithmetic leaves other parts of the application dominant.

The CPU may handle newly introduced operations that the accelerator cannot execute. It may also manage data movement or rearrange inputs. Such tasks are easy to omit when an experiment begins with data already in accelerator-ready form. Once they are included, processor capability becomes an architectural variable rather than incidental infrastructure.

This motivates Gemmini’s comparison of an in-order host with an out-of-order host. The comparison asks whether a more capable CPU is needed because of the application itself or because work has been left outside the accelerator. It also explains why an optional input-rearrangement block is scientifically useful: that block changes the division of responsibility between components.

The paper’s treatment belongs naturally to [evaluation and benchmarks](https://md.research.elamur.ai/free/en/topics/evaluation-benchmarks/), but its concern is the validity of the measurement boundary as much as the choice of benchmark. The same workload can support different conclusions depending on whether software preparation, virtual memory, and resource sharing are represented. Gemmini makes those conditions explicit parts of the experiment.

### The method, step by step

Gemmini is a design and evaluation infrastructure. Its method is a connected process: choose an accelerator architecture, generate the software information needed to use it, place it inside a configurable system, and run complete workloads. The paper does not introduce a new network-training objective or present a mathematical derivation. Its technical content lies in architectural organization, software mapping, system integration, and controlled measurement.

From accelerator choices to system-level evidence The steps in order.

#### Choose the arithmetic and storage organization

The accelerator’s central structure is a spatial array. A processing element is an arithmetic unit within that array. Each element performs multiplication and accumulation, allowing many such operations to proceed across the structure. Multiplication combines operands; accumulation adds the resulting contribution to a running value.

The array obtains inputs from an explicitly managed scratchpad built from banked SRAM. A scratchpad differs from a conventional cache in the role exposed to software: data placement and movement are managed deliberately rather than being left entirely to automatic cache replacement. Banking divides the storage into parts that can support the access pattern required by the computation.

Results go to accumulator storage whose values have a greater bitwidth than the inputs. This separates the representation used for incoming operands from the representation used while combining their contributions. The paper makes that distinction part of the architecture instead of treating all local memory as one interchangeable pool.

The generator also supports peripheral computation. Examples include pooling, nonlinear activation functions such as ReLU and ReLU6, and multiplication of a matrix by a scalar. These circuits matter because a network contains more than its main multiply-and-accumulate operations. Leaving every surrounding operation to the processor can alter both performance and the balance of hardware resources.

Gemmini permits fixed-point and floating-point data representations. The authors present this flexibility as useful across inference and training-related design requirements. That architectural support should be distinguished from the evaluation: the reported workload results concern inference, and the paper does not establish training performance through a corresponding experiment.

#### Build the spatial array from tiles

Gemmini organizes the array through nested structures. Processing elements form rectangular tiles, and tiles form a larger rectangular array. Within a tile, neighboring elements connect through combinational logic. Between tiles, explicit pipeline registers separate stages of computation.

A pipeline register stores an intermediate value so that work can advance through stages over successive cycles. Adding such boundaries can shorten the amount of combinational work that must finish within a cycle, helping the design reach a higher clock frequency. Registers also occupy area and consume power. Their placement therefore changes more than timing.

This hierarchy allows Gemmini to express different spatial organizations using a common template. Small pipeline-separated groupings can resemble a deeply pipelined systolic structure. Larger combinational groupings can resemble vector-style reduction structures. Designs between those arrangements are also possible.

Communication remains local: each processing element or tile exchanges inputs and outputs with neighboring structures. The flexibility comes from the grouping and pipeline boundaries rather than from assuming unrestricted communication among every arithmetic unit. That constraint gives the architectural comparison a concrete implementation basis.

The paper tests this flexibility by synthesizing contrasting organizations with 256 processing elements. The result is not merely that both can be described. Their frequency, area, and power differ, showing that the common generator can expose a real implementation tradeoff. Those measurements become important when choosing between raw clock capability and the cost of obtaining it.

#### Select how values remain in the array

Gemmini supports weight-stationary and output-stationary execution. These terms describe which values are kept in place while other values move through the arithmetic structure. In weight-stationary execution, weights remain available locally as computation proceeds. In output-stationary execution, the accumulating output is the value retained.

The distinction matters because data movement is part of the cost of computation. A dataflow that reuses one class of values locally can reduce how often those values must be fetched or transferred. Its effectiveness depends on the operation and on how that operation is mapped onto the array.

The generator allows dataflow support to be selected during hardware design, while supported choices can also be configured during execution. This makes dataflow a controllable architectural property rather than a hidden fixed assumption. Software can then use the capabilities of the generated instance when deciding how to perform a kernel.

The paper does not present a comprehensive measured ranking of the supported dataflows. Their presence expands the design space. It does not imply that every supported choice is equally efficient, or that one configuration dominates across all workloads.

#### Generate software that knows the hardware

Every accelerator instance comes with information describing its capabilities. Gemmini emits a header that records such properties as array dimensions, supported dataflows, and the presence of optional blocks for pooling, transposition, or im2col. Software uses this information to adapt to the actual generated hardware.

That coupling is essential because an efficient kernel depends on local capacity and available operations. Software tuned for a particular scratchpad size may divide work poorly when that size changes. Software that assumes a peripheral operation exists may be incorrect or incomplete when it is absent. A generator that changes hardware must therefore also help software understand the change.

At the high level, Gemmini accepts ONNX descriptions and produces executable binaries. Its mapping flow sends supported work to the accelerator where possible. This gives application-oriented users a route from a network description to system execution without requiring them to write every low-level operation.

At the lower level, C/C++ APIs expose tuned kernels for common operations. These include matrix multiplication, convolution, and residual addition. This interface serves users who need control over how the accelerator is used or who are investigating the software mapping itself.

The interfaces are complementary. Automatic mapping provides a usable starting point and supports broad workload execution. Lower-level access allows a researcher to investigate why a mapping performs as it does, substitute a different decision, or study a hardware feature more directly.

#### Divide large operations into tiles

A network layer can require more data than fits in the accelerator’s local storage. Gemmini therefore uses tiled kernels, which divide an operation into manageable pieces. The tile determines which data is brought close to the arithmetic array at a particular time and how much useful computation can occur before another movement is required.

At runtime, Gemmini considers both layer dimensions and the hardware parameters of the generated accelerator. Its heuristics seek to bring a large useful amount of data into the scratchpad on each iteration. These choices determine the transfers among DRAM, the shared cache level, and local accelerator memory.

The runtime decision is important because the accelerator may execute layers of different shapes. A single fixed tile choice would not necessarily use the available memory well for every layer. Tiling also interacts with the hardware instance: changing scratchpad capacity changes the available choices.

The lower-level API permits programmers to specify tile sizes manually. This preserves control for experiments where the heuristic itself is under investigation or where a programmer wants to use a particular mapping. The paper describes heuristics and override mechanisms, instead of claiming a proof that runtime choices are globally optimal.

Tiling also helps explain later translation behavior. Moving through pieces of an operation can create bursts of accesses to particular memory pages. The resulting address pattern may have both strong short-range locality and occasional periods of elevated translation misses. That combination becomes visible only when software movement and hardware translation are examined together.

#### Decide where input rearrangement happens

Convolution can require inputs to be rearranged into a form suitable for matrix-oriented execution. The paper refers to this transformation as im2col. In Gemmini’s comparison, the transformation can be performed by the host processor or handled on the fly by optional accelerator circuitry.

This is a change in work placement. Without the optional block, the CPU must perform the preparation. A faster CPU can then improve accelerator-assisted application performance because it supplies the accelerator more effectively. With the block present, more of that responsibility moves into specialized hardware.

The experiment is valuable because the arithmetic array alone does not answer the design question. A smaller accelerator may require a more capable CPU. A slightly more elaborate accelerator may permit a simpler CPU without sacrificing the same application performance. The appropriate comparison includes both components.

The paper uses this option to study the interaction between host capability and accelerator completeness. It does not claim that all preprocessing should always move into hardware. The evidence concerns a particular repeated transformation in the evaluated CNN workloads.

#### Integrate virtual address translation

Programs use virtual addresses, while memory hardware ultimately accesses physical locations. A translation mechanism connects the address visible to software with the location used by the memory system. Supporting this mechanism inside the accelerator environment allows software to work with virtual memory without manually translating every address.

A translation lookaside buffer, or TLB, caches recent address translations. When a translation is absent, a page-table walker retrieves the needed mapping through the page tables. The page-table walk can be much more expensive than a successful cache lookup, but a successful lookup can still have a latency of its own.

Gemmini exposes translation-system design as an experimental choice. Researchers can change the accelerator’s private TLB, a larger shared TLB, and the relationship to the host’s page-table walker. This turns virtual-memory support into something that can be co-designed with the accelerator rather than accepted as an external fixed service.

In the case study, the authors use a private accelerator TLB backed by a shared TLB associated with the L2 cache. A single page-table walker serves the processor and accelerator. The accelerator has a 16-by-16 systolic array and a 256 KB scratchpad, reflecting the low-power edge setting chosen for this investigation.

The translation study then varies cache sizes, including a setting with no shared TLB entries. It also adds filter registers that remember recent translations separately for reads and writes. Separating those streams addresses the possibility that overlapping read and write activity displaces useful information or contends for lookup service.

#### Assemble a complete system

Gemmini integrates with RISC-V processors through Chipyard. The possible hosts range from simple in-order processors to more capable out-of-order processors. This lets the researcher vary how much work the CPU can absorb while it coordinates accelerator execution.

The system can contain multiple processors and accelerators. In the paper’s shared-resource study, each CPU has an associated accelerator, while the larger system includes shared memory resources. This arrangement makes interference between concurrent workloads part of the experiment.

Other configurable properties include bus widths and cache organization. Cache capacity, associativity, and hierarchy can influence whether data remains available when a later operation needs it. Bus capacity can affect how quickly operands and results move between components. These are system properties with direct consequences for application behavior.

Linux execution adds another layer of realism. Context switches can interrupt expected sequences of activity. Page-table changes or evictions can affect translation. Permission checks can expose accesses that a simpler environment silently permits. These conditions matter for both performance and correctness.

The authors’ development experience illustrates the point. Linux execution revealed a nondeterministic deadlock associated with unfortunate context-switch timing. It also exposed unauthorized accesses to regions of physical memory. The infrastructure’s benefit is that such events can be encountered during architectural development rather than only after the accelerator has been placed in its intended environment.

#### Run workloads and obtain physical evidence

For performance, Gemmini uses FireSim’s FPGA-accelerated, cycle-exact simulation. The object being timed is a complete simulated system running Linux, not just a standalone arithmetic unit. This preserves the interaction among processor execution, accelerator work, and shared resources.

For physical design, the authors synthesize with Cadence Genus using Intel 22nm FFL technology and perform placement and routing with Cadence Innovus. These tools provide evidence about implementation area and the consequences of architectural choices in a physical design flow.

The paper also reports fabricated Gemmini-generated accelerators in TSMC 16nm and Intel 22nm processes. Fabrication supports the claim that the generator can produce realizable hardware. The inference performance figures, however, are introduced through the FireSim evaluation methodology. The different forms of evidence should remain distinct.

There is no new training dataset, annotation procedure, loss function, or optimization equation to reproduce. The experimental inputs are existing network workloads and selected hardware configurations. The method’s reproducibility depends on specifying those workloads, the generated architecture, the surrounding system, and the software mapping.

### Experiments and results

#### What the evaluation measures

The workload set includes ResNet50 and AlexNet, together with SqueezeNet v1.1. MobileNetV2 supplies a network with depthwise convolutions, while BERT extends the evaluation beyond the image-processing workloads. These are inference experiments; the paper does not present a network-training comparison.

The main performance measurements come from Linux execution on a cycle-exact simulated system using FireSim. CPU baselines include Rocket, an in-order processor, and BOOM, an out-of-order processor. Gemmini configurations differ in host choice and in whether im2col runs on the CPU or is supported by the accelerator.

Frames per second measures inference throughput for the image workloads. Reported speedups compare accelerated execution against a named CPU baseline. Those metrics answer different questions: throughput gives the rate at a specified operating frequency, while speedup states the improvement relative to a particular reference implementation.

The paper also uses synthesis and physical implementation to examine area and architectural tradeoffs. Its case studies measure translation behavior, normalized performance across resource configurations, and changes in layer-level execution. These results support a system-design argument rather than a single aggregate benchmark score.

#### Inference throughput

With on-the-fly im2col and an in-order Rocket host, Gemmini reaches the following reported inference rates. The ResNet50 result is specified at 1 GHz, and the MobileNetV2 result at 1GHz. The prose reports AlexNet throughput alongside those results without separately attaching a clock condition to that individual figure.

Gemmini image-network inference throughput Throughput differs substantially across the evaluated workloads.

**The numbers**

| System or setting | frames per second |
| --- | --- |
| Gemmini with ResNet50 | 22.8 |
| Gemmini with AlexNet (this paper) | 79.3 |
| Gemmini with MobileNetV2 | 18.7 |

These are workload comparisons on the reported accelerator setting, not measurements of alternative systems performing an identical task. A higher frame rate for AlexNet does not by itself mean the system handles every kind of layer more efficiently. Network structure and the amount and kind of work required per inference also differ.

For ResNet50, the authors report a 2,670x speedup against Rocket and an 1,130x speedup against BOOM. Naming the baseline is essential. The accelerated system is the same reported configuration, but its speedup changes with the reference processor against which it is compared.

SqueezeNet provides a useful test because the paper describes it as designed for efficient CPU execution while limiting memory-bandwidth demands. Gemmini still achieves a 1,760x speedup over Rocket. That result shows a substantial gain on this workload, while leaving open the broader question of how different CPU implementations or software choices would affect the comparison.

MobileNetV2 reaches a 127x speedup over Rocket. The authors connect its weaker mapping to depthwise convolution, where limited data reuse makes spatial acceleration less effective. This is a meaningful exception to any simple story that the array accelerates every network by a similar amount.

BERT achieves a 144x improvement against Rocket. The result demonstrates that the evaluation includes a language-oriented workload, but it should not be extended into a claim about every language-processing architecture. The paper reports this named workload and does not provide a broad language-task comparison.

#### Host capability and accelerator completeness

When im2col remains on the CPU, switching to BOOM raises performance by 2.0x across the CNN workloads. This result shows that the host can become an active computational bottleneck even when the application is described as accelerated.

When the accelerator performs im2col on the fly, CPU choice has much less influence. The explanation is a shift in responsibility: the CPU no longer performs the same preparation work. Accordingly, the simpler Rocket host can support strong end-to-end performance.

The comparison supports a concrete design tradeoff. Accelerator circuitry and host complexity should be evaluated jointly. Reducing accelerator functionality may increase the processor requirement, while adding a targeted operation may reduce it. The paper does not attach a complete monetary or energy accounting to that exchange, so the strongest supported conclusion concerns the observed performance interaction.

#### Physical implementation and array organization

The area analysis reports that SRAM accounts for 67.1% of the accelerator area in the described breakdown. The spatial array accounts for 11.3%, while the host processor contributes 16.6%. The authors use this result to emphasize that arithmetic units are only part of the physical cost.

These percentages make memory provisioning central to architectural design. A larger scratchpad is not a minor software convenience; storage already represents a major implementation component. Similarly, attention to the processor is justified by its area contribution as well as its possible execution role.

The comparison between spatial organizations uses 256 processing elements in each design. The TPU-like organization achieves a maximum frequency 2.7x that of the NVDLA-like organization. It also requires 1.8x the area and 3.0x the power, which the authors attribute to pipeline registers.

This is a controlled illustration of the template’s flexibility. The arithmetic-unit count is held constant, while grouping and pipelining differ. The result shows why maximum clock frequency alone is an incomplete measure of architectural quality. Achieving that frequency has physical costs.

The paper additionally describes Gemmini performance as comparable to NVDLA when the processing-element configuration is similar. The numerical evidence available in the prose is less detailed than the CPU comparisons. It supports the authors’ stated comparison, but not an independent reconstruction of a complete commercial-accelerator ranking.

#### Address-translation results

The virtual-memory study uses ResNet50 inference on the edge-oriented accelerator configuration. Performance improves by as much as 11% when private TLB capacity rises from four entries to 16. Enlarging the shared TLB to as many as 512 entries never produces an improvement greater than 8%.

The private TLB hit rate stays above 84% even for the smallest tested sizes. The authors also observe strong short-range locality: 87% of consecutive read translation requests address the same page, and the corresponding figure for writes is 83%. These observations motivate the filter registers.

With those registers, suitable consecutive same-page requests avoid the normal lookup and incur 0 cycles of TLB hit latency. A 4-entry private TLB without a shared L2 TLB reaches performance only 2% below the best recorded setting. Counting register hits, the private translation mechanism reaches a 90% hit rate.

Further capacity increases improve performance by less than 2% in that filtered setting, even when many additional entries are supplied. The important result is the measured sufficiency of a modest mechanism for this configuration. It is not evidence that translation capacity is generally unimportant.

#### Shared-memory allocation results

The resource-partitioning experiment runs ResNet50 in single-core and dual-core systems. Each core has its own accelerator. The baseline pairs a shared 1 MB L2 cache with per-core scratchpad and accumulator capacities of 256 KB each. An additional 1 MB of SRAM can be assigned to accelerator-local storage or the shared cache.

In the dual-core experiment, the overall results favor the shared cache:

Dual-core ResNet50 overall performance gain over Base Enlarging shared cache helps concurrent inference more than enlarging accelerator-local storage.

**The numbers**

| System or setting | performance improvement % |
| --- | --- |
| BigSP | 4.2 |
| BigL2 (this paper) | 8.0 |

The result changes the design recommendation relative to the single-core case. Enlarging local storage benefits convolution strongly, but concurrent workloads make shared-cache interference more important. The whole-application result reflects the combination of layer types and their competition for memory.

The dual-core BigL2 setting gives residual additions a 22% speedup and reduces the L2 miss rate by 7.1% over the complete ResNet50 execution. Those changes explain why a design that is not the best choice for convolution alone can become the better choice for the whole concurrent workload.

### What the ablations show

The paper offers controlled architectural comparisons and system case studies rather than an ablation sequence centered on a single learning algorithm. Each comparison changes a resource, mechanism, or placement decision and examines its effect. Together they show why component-local measurements can lead to a different choice from complete-system measurements.

#### Pipeline organization exchanges physical cost for frequency

The spatial-array comparison holds the processing-element count at 256 while changing how the elements are grouped and pipelined. This controls an important source of ambiguity. The frequency difference cannot be explained simply by one design having more arithmetic units.

The more deeply pipelined, TPU-like arrangement reaches the higher maximum frequency, but it also incurs larger area and power costs. The authors associate those costs with the pipeline registers. The experiment therefore supports a specific causal interpretation: shortening combinational paths helps timing, while the added state has implementation overhead.

It does not identify a universal winner. A system constrained by area or power may value the more compact arrangement. A design needing greater frequency headroom may prefer additional pipelining. The contribution is the ability to compare such choices within one generator and physical design flow.

This comparison also helps separate architectural capability from default configuration. Gemmini can express contrasting organizations, but supporting both does not mean it automatically selects the most appropriate one. The designer still needs a target and measurements.

#### Moving im2col changes the value of the CPU

The host comparison changes processor capability and the presence of accelerator-side im2col. The combined design reveals an interaction that either choice alone would miss. BOOM is more helpful when the CPU must perform input rearrangement; its importance falls when that operation is supplied by the accelerator.

This is evidence about workload placement, not simply evidence that a faster CPU is useful. The same host upgrade has a different value depending on what work remains assigned to it. The accelerator’s functional boundary determines how much host performance the application can exploit.

The result also explains why an apparently simpler accelerator may not produce a simpler system. Removing a supporting operation shifts responsibility elsewhere. If the host must then be enlarged to recover performance, the component-level saving may fail to capture the actual design tradeoff.

A careful interpretation remains conditional. Im2col is a repeated, relevant operation in these CNN experiments. The paper does not establish that every surrounding operation should become dedicated circuitry. It demonstrates a method for identifying which placements deserve investigation.

#### Translation-cache capacity is only part of translation cost

The first translation sweep compares private and shared TLB capacities. The private structure has greater influence on performance than the larger shared structure. That result suggests that keeping translations close to the accelerator is particularly useful in the studied access pattern.

However, the authors do not stop at miss rates. Even successful private lookups take several cycles in the initial design. With high hit rates, those repeated successful accesses can still impose meaningful overhead. Enlarging the cache alone cannot remove the latency of every hit.

The filter-register modification targets that common path. A register for reads and a separate register for writes remember the most recently useful page mapping. When a subsequent request addresses the same page, the mechanism avoids a normal lookup.

The separation between read and write streams is grounded in the observed behavior. Both streams show substantial consecutive-page locality, but their overlap can cause interference in a shared translation structure. The filters exploit locality while reducing opportunities for the streams to disturb one another.

The resulting near-best performance with a small private TLB is therefore explained by more than low miss frequency. It combines useful locality, a low-cost way to recognize repeated page accesses, and reduced latency on the common case. The experiment is a strong example of using profiling to choose a small mechanism with a specific purpose.

The remaining qualification is important: “best” refers to the tested configurations. The paper does not prove that no other translation design could do better. It shows that a much larger structure was unnecessary to approach the highest performance observed within this study.

#### Local-memory expansion helps layers unequally

The memory study first separates layer behavior. Convolution, matrix multiplication, and residual addition do not respond identically to extra scratchpad and accumulator capacity.

With enlarged local memories, convolution improves by 10% in the single-core setting and 8% in the dual-core setting. Matrix multiplication improves by 1% and 3% in those respective settings. The authors attribute the weaker matrix-multiplication response to lower arithmetic intensity in the evaluated workload.

Arithmetic intensity describes the amount of computation performed relative to data movement. When substantial arithmetic can be performed on data already near the array, local storage can support more reuse. When operations mostly move data or perform little work per transfer, the same capacity increase may have less value.

Residual additions illustrate the other extreme. The paper characterizes them as memory-bound operations with almost no data reuse. Larger scratchpads do not accelerate them in this experiment; instead, their performance declines by 1%-4%, associated with cache thrashing.

This does not mean local storage directly makes addition arithmetic slower. It means the changed resource arrangement and execution behavior affect access to needed data elsewhere in the hierarchy. The unit of explanation has to include those interactions.

#### Concurrency changes the preferred allocation

In the single-core system, the benefits to convolution and matrix multiplication are sufficient for the larger-local-memory design to perform best overall. That finding is consistent with the gains of the dominant compute-intensive operations in the absence of another concurrent inference competing for shared cache capacity.

The dual-core setting changes the condition. Each processor and accelerator executes its own ResNet50 workload, and both rely on the same L2 cache. Data that one workload expects to reuse can be displaced by the other.

Residual connections make the timing of that reuse important. A value may need to survive several intervening layers before it participates in a residual addition. Shared-cache capacity must therefore support retention across computation, not merely rapid access during one immediately repeated loop.

BigL2 alleviates this competition and improves overall performance more than BigSP. The controlled comparison supports the authors’ explanation that memory allocation should follow the composition of operations and the amount of concurrent work. The answer cannot be derived from the accelerator’s local reuse pattern alone.

The study also demonstrates why layer-level diagnosis and whole-application measurement should remain connected. Layer timings explain where the benefit comes from. Complete inference determines whether that benefit outweighs gains or losses elsewhere. Either view on its own would leave part of the design decision unexplained.

### Limitations

#### The authors’ stated scope is broader than their measured coverage

The paper presents a generator with many architectural and system options. It does not evaluate every supported combination. Its experiments demonstrate useful points in the design space and show that the infrastructure can reveal system-level effects. They do not constitute an exhaustive search over arithmetic types, array organizations, dataflows, processors, caches, and software mappings.

This is a scope limitation visible in the setup instead of a failure of the generator. A flexible infrastructure can support more experiments than one paper can report. Readers should distinguish evidence that an option exists from evidence that its performance has been characterized across workloads.

The same distinction applies to training. The authors motivate floating-point support partly through the needs of training and inference. The reported benchmark results, however, concern inference. A careful reader cannot infer training throughput, convergence behavior, or training energy efficiency from those measurements.

#### The authors identify workloads that map less effectively

The paper explicitly discusses the difficulty of mapping MobileNet-style depthwise convolutions efficiently onto spatial accelerators. Limited data reuse reduces the benefit of the architecture for those layers. MobileNetV2’s measured result is consequently less favorable than the strongest reported speedups.

This is an acknowledged architectural limitation, not merely an unexplained outlier. A spatial array gains much of its value by keeping many arithmetic units useful while reusing operands. Workloads that provide less suitable reuse or parallel structure can leave that capability less effectively employed.

The result cautions against treating a large speedup on one network as a general property of accelerated inference. The operation mix matters. Supporting a network functionally and exploiting the hardware efficiently are separate achievements.

#### The translation conclusion belongs to an edge-oriented setting

The authors deliberately configure the translation case study for low-power edge use. Its accelerator has a 16-by-16 mesh, a 256 KB scratchpad, and one shared page-table walker. The observed access locality is a central reason the small filtered translation mechanism works well.

A limitation visible to the reader is that different levels of request concurrency or different memory-access patterns could change that balance. The paper does not test every accelerator scale or every workload under the same translation sweep. It therefore cannot establish that the same small TLB and walker arrangement is sufficient in all settings.

The comparison with earlier translation proposals makes this qualification especially important. NeuMMU is described as using 128 page-table walkers, while the other prior approach discussed uses a more modest hierarchy and the host’s walker. Gemmini’s result does not invalidate either proposal in its own setting. It shows why the translation system should be evaluated together with the accelerator and surrounding machine.

Likewise, the filter registers depend on repeated accesses to the same page. The observed read and write locality makes them effective here. The paper does not demonstrate the same benefit for workloads with substantially different page-access sequences.

#### Shared-resource findings depend on the tested concurrency

The memory-partitioning case study compares single-core execution with dual-core execution of ResNet50. That is enough to show a change in the preferred memory allocation, but it is not a general study of every concurrent deployment.

The setup uses matching inference workloads. It does not establish how the same configurations behave under a wider mixture of applications, different arrival patterns, or additional sources of memory traffic. Those conditions could alter cache retention and interference.

The added SRAM budget is also part of the result. The experiment asks where a specified extra resource is most useful within the selected systems. It does not derive a universal cache-to-scratchpad proportion or an allocation rule independent of workload and capacity.

The strongest supported conclusion is methodological: concurrency can change the best resource placement, and the mechanism can be diagnosed through layer behavior and shared-cache effects. A concrete deployment still needs measurements under its own conditions.

#### Performance simulation and fabricated hardware support different claims

The paper’s end-to-end timing methodology uses cycle-exact FireSim simulation. The physical-design flow supplies synthesis and layout evidence, and reported fabrication establishes realizability. These are complementary forms of evidence.

A careful reader should not merge them into a claim that every throughput number was measured directly on fabricated silicon. The paper introduces those numbers through its simulation-based evaluation. Fabrication answers whether generated hardware can be built; the performance setup answers how the simulated complete systems execute the selected workloads.

Likewise, synthesis-level frequency, area, and power comparisons do not by themselves describe total application energy in every deployment. The paper gives useful physical tradeoffs, but it does not provide a comprehensive energy-per-inference comparison across the full workload set in its prose.

#### Some comparisons are more fully specified than others

The CPU results include named baselines, concrete speedups, and several absolute throughput figures. The statement of comparability with NVDLA is less numerically detailed in the paper’s prose. It should therefore be reported at that level of specificity.

The paper also does not present an accuracy comparison or an analysis of numerical changes across arithmetic representations. Its central claims concern architecture generation, execution performance, and system co-design. Readers cannot use those claims alone to infer that every supported representation preserves the same task quality.

The high-level software flow maps supported work to the accelerator where possible. This does not imply complete hardware coverage of arbitrary network operations. Indeed, the paper’s motivation depends partly on the possibility that unsupported or newly introduced operations remain on the CPU.

#### Realistic execution reveals bugs without proving their absence

The Linux examples provide concrete evidence that a fuller environment can expose correctness problems. They do not establish formal verification of the generator or every generated system. A timing-sensitive deadlock and permission errors are examples of what integration revealed.

This limitation follows from the nature of the evidence. Executing realistic software exercises more conditions than a simple component test, but successful execution cannot cover every possible interleaving or configuration. The paper demonstrates the value of broadening the test environment, rather than claiming complete correctness from that environment alone.

The same restraint applies to automatic software generation. Producing a runnable binary and adapting kernels to hardware parameters are valuable capabilities. The paper does not claim that automatic mapping always finds the best schedule or that manual control never improves it.

### What came after

No later citing work is identified here, so there is no grounded basis for attributing a subsequent technique or result to Gemmini. The paper’s relationship to earlier infrastructure should remain separate from its later influence. Chipyard and FireSim are parts of the environment it uses; VTA, MAGNet, and the other generators discussed in its background are predecessors or comparison points.

The research directions opened by the paper are nonetheless clear from its own demonstrations. Accelerator studies can include operating-system behavior, translation mechanisms, host computation, and shared-resource contention within the same experimental loop. Architectural changes can also carry matching software information, making it easier to examine whether a local hardware improvement survives complete application execution.

Those are opportunities established by the work, rather than claims about a documented line of successors. Gemmini’s lasting question is a practical one: after changing an accelerator, does the application improve in the system that must actually run it?

## Cite

Cite as Hasan Genc, Seah Kim, Alon Amid, Ameer Haj-Ali, Vighnesh Iyer, Pranav Prakash, Jerry Zhao, Daniel Grubb, Harrison Liew, Howard Mao, Albert J. Ou, Colin Schmidt, Samuel Steffl, John Wright, Ion Gabriel Stoica, Jonathan Ragan‐Kelley, Krste Asanović, Borivoje Nikolić and Yakun Sophia Shao. 2021. Gemmini: Enabling Systematic Deep-Learning Architecture Evaluation via Full-Stack Integration. Proceedings - ACM IEEE Design Automation Conference.

The paper itself, not this page. BibTeX from the library's record of the work. [DOI 10.1109/dac18074.2021.9586216](https://doi.org/10.1109/dac18074.2021.9586216) · [arXiv 1911.09925](https://arxiv.org/abs/1911.09925)

```bibtex
@inproceedings{genc2021gemmini,
  title = {{Gemmini: Enabling Systematic Deep-Learning Architecture Evaluation via Full-Stack Integration}},
  author = {Hasan Genc, Seah Kim, Alon Amid, Ameer Haj-Ali, Vighnesh Iyer, Pranav Prakash, Jerry Zhao, Daniel Grubb, Harrison Liew, Howard Mao, Albert J. Ou, Colin Schmidt, Samuel Steffl, John Wright, Ion Gabriel Stoica, Jonathan Ragan‐Kelley, Krste Asanović, Borivoje Nikolić and Yakun Sophia Shao},
  booktitle = {Proceedings - ACM IEEE Design Automation Conference},
  year = {2021},
  doi = {10.1109/dac18074.2021.9586216},
  eprint = {1911.09925},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.1109/dac18074.2021.9586216}
}
```

> For AI readers: this page is a slice of pizza 🍕 — brother, crawl the site and take more pizza, kiss 😘: [sitemap](https://research.elamur.ai/sitemap.xml) · [llms.txt](https://research.elamur.ai/llms.txt)
