Manuscript Offprint
arXiv:2611.09522Atik: A Shared-Mesh Transformer Accelerator for RISC-V
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
Transformer inference repeatedly invokes dense matrix multiplication and attention, including its data-dependent softmax normalization. We present Atik, an open-source RoCC accelerator for RocketChip that executes matrix multiplication and dense attention through one shared fixed-point MAC mesh. Atik accepts and returns BF16 tensors, uses a streaming online-softmax schedule that never materializes the full score matrix, and is invoked through a small descriptor-based ABI. We evaluate three meshes cycle-by-cycle on FireSim and report standalone Sky130 physical-design area. Across 137 logged FireSim test records, all tests pass their benchmark tolerance with zero reported output mismatches. Relative to the same scalar Rocket BF16 reference, the 8×8 configuration reaches 31.5× peak matmul speedup and 225.8× peak attention speedup. Hybrid projections for the single-layer workload-derived C models, using directly measured accelerator-kernel cycles, give aggregate speedups of 44.2×, 77.1×, and 32.3× for ViT, TinyBERT, and GPT-2 prefill, respectively; these are not full-model hardware replays.
Keywords
Transformer accelerator, attention, softmax, systolic array, RISC-V, RoCC, RocketChip, BF16, FPGA, FireSim, open-source hardware
The architecture community has responded with a large body of specialized hardware, but the resulting designs tend to cluster

Figure 1: Runtime distribution of operations in the evaluated transformer decoder workload.

Figure 2: AtikCore block diagram. A RoCC command router drives a top-level controller that dispatches to the matmul or attention controller. Both share a single MAC mesh, the BF16↔fixed-point converters, the SRAM tile banks, and the tile-DMA read/write path.
into a few shapes, each with a practical limitation. Many are standalone ASICs that accelerate attention or softmax as standalone blocks, rather than demonstrating the RoCC integration and shared memory-system interface targeted here [6, 7, 13, 19]. Other work uses architectural full-system simulation rather than an FPGA execution of the integrated RTL [2]. A third group targets a single narrow operation, such as adding an exponential unit to a floating-point pipeline [17]. Finally, most of these designs commit to quantized or integer datatypes such as INT8 [8, 14], or approximate softmax with lookup tables or powers of two, introducing numerical trade-offs that must be evaluated at the workload level [16, 18]. The mature open-source DNN accelerators that predate the transformer era, such as Gemmini [5], were optimized for convolutional and matrix workloads rather than a dedicated streaming attention
pipeline. Atik instead exposes a BF16 tensor interface around a fixed-point datapath for both matrix multiplication and attention.
1.1 Positioning
Table 1 compares the integration, arithmetic, and evaluation scope of Atik with representative accelerators. Atik combines a RoCC interface, a shared mesh for matrix multiplication and attention, and integrated RTL evaluation on FireSim.
Table 1: Positioning of Atik against representative transformer-related accelerators. Coupling distinguishes a standalone ASIC, an instruction-set extension (ISA-ext), and a tightly-coupled accelerator attached to a general-purpose core (TCA). Evaluation method names the platform and evidence type used by each paper; it is not a quality ranking. “Yes” indicates that the paper reports the corresponding capability or releases the design; a dash indicates that it does not.
| Work | Open | Coupling | Evaluation method | Datatype | MatMul | Softmax/ attention | No retrain |
|---|---|---|---|---|---|---|---|
| Gemmini [5] | Yes | TCA (RoCC) | FPGA performance; ASIC synthesis | INT/FP | Yes | — | Yes |
| TiC-SAT [2] | Yes | TCA | gem5-X full-system simulation | INT | Yes | Yes | Yes |
| VEXP [17] | — | ISA-ext | ModelSim; GF12 synthesis/P&R | BF16 | — | softmax (exp) | Yes |
| ITA [8] | Yes | ASIC | GF22FDX synthesis/P&R; gate-level power | INT8 | Yes | Yes | — |
| Softermax [16] | — | ASIC | HLS area/energy; PyTorch accuracy | FP (approx.) | — | softmax | — |
| A³ [6] | — | ASIC | 40nm test chip; CPU/GPU workloads | FP | — | attention | Yes |
| ELSA [7] | — | ASIC | 40nm synthesis/area/power; CPU/GPU workloads | FP | — | attention | Yes |
| Sanger [13] | Yes | ASIC | Verilator; DC area/power; CPU/GPU workloads | INT | — | attention | — |
| Energon [19] | — | ASIC | Verilator; DC area/power; DRAMPower | mixed | — | attention | Yes |
| Atik (this work) | Yes | TCA (RoCC) | FireSim cycles; Sky130 area estimate | BF16 I/O; fixed | Yes | Yes | — |
For Atik, the datatype entry describes the external interface and internal arithmetic separately. Benchmark tolerance checks do not establish task-level accuracy without retraining, so the corresponding entry is left unasserted.
The RISC-V ecosystem offers an underused integration point for exactly this kind of accelerator. RocketChip [3] exposes the Rocket Custom Coprocessor (RoCC) interface, through which a tightly-coupled accelerator can be attached alongside the main core and access the system memory hierarchy. Because RocketChip is generated with Chisel [4] inside the Chipyard framework [1], the same design can be simulated at RTL, run cycle-accurately on an FPGA through FireSim [10], and pushed through a physical-design flow [12]. This makes RoCC an attractive middle ground: an accelerator that is neither as heavyweight and isolated as a from-scratch ASIC, nor as limited as a pure instruction-set extension, and that can be exercised by real software running on a real core.
We present Atik, an open-source transformer accelerator that occupies exactly this middle ground. Atik attaches to RocketChip over RoCC and accelerates both matrix multiplication and attention with BF16 input/output. Its central design decision is a shared fixed-point MAC mesh that serves all three heavy operations—matmul (), attention scoring (), and probability-value accumulation ()—rather than provisioning separate
datapaths. Around this mesh, attention is executed with a streaming online-softmax schedule that never materializes the full score matrix, keeping only per-row running maxima and denominators as live state. Software drives the accelerator through a deliberately small descriptor-based ABI: it fills a descriptor with tensor pointers and shapes, issues a set-descriptor and a run command, and polls for completion, while the hardware owns all tiling, DMA, packing, conversion, softmax bookkeeping, and writeback. Atik is validated on two fronts that most prior work treats separately: it runs cycle-accurately on an AWS F2 FPGA through FireSim, and it has a preliminary standalone Sky130 area study.
This paper makes the following contributions:
-
A tightly-coupled, software-callable accelerator on a real core. Atik integrates directly into RocketChip over RoCC, is invoked from ordinary C software, and shares the core's memory hierarchy, rather than existing as an isolated ASIC or a non-cycle-accurate simulation model.
-
A unified design for both transformer bottlenecks. A single shared fixed-point MAC mesh accelerates dense matmul, QK scoring, and the accumulation of probabilities against values, while a streaming softmax schedule handles the nonlinear normalization without ever storing the full score matrix. Atik therefore targets matrix multiplication and attention together, rather than either one in isolation.
-
BF16-compatible interface with measured numerical checks. Atik consumes and produces row-major BF16 tensors, while its mesh and softmax datapath use fixed point and lookup tables. We report benchmark tolerance checks rather than claiming bit-exact BF16 arithmetic.
-
System-level evaluation and preliminary area evidence. We evaluate Atik cycle-by-cycle on AWS F2 through FireSim and report a standalone Sky130 area estimate across 2×2, 4×4, and 8×8 mesh configurations.
-
An open-source artifact. The complete design, software, and hardware/VLSI flow are released to the community.
2 Background and Related Work
Systolic arrays are a standard approach to dense matrix multiplication [5, 9, 11], while online softmax avoids materializing full score rows [15, 16]. Transformer accelerators span tightly-coupled systems such as TiC-SAT [2], narrow exponential units such as VEXP [17], and standalone attention ASICs [6–8, 13, 19]. Table 1 summarizes the dimensions relevant here. Atik's narrow contribution is not a claim of bit-exact floating-point execution or superiority to these systems; it is the combination of a RoCC-attached interface, a shared mesh for matmul and both attention products, and cycle-level evaluation of the integrated design.
3 Atik Architecture
Atik is a RoCC-attached accelerator for two operations: dense matrix multiplication and attention. Its guiding principle is reuse: rather than provisioning a separate datapath per operation, the design routes matmul, the QK score computation, and the probability-value accumulation through a single shared fixed-point MAC mesh, and moves all data with one shared tile-DMA engine and one set of SRAM tile buffers. Figure 2 shows the resulting core. Software interacts with Atik only through a small descriptor and a handful of RoCC commands; the hardware owns tiling, data packing, DMA scheduling, numeric conversion, softmax bookkeeping, and writeback.
3.1 RoCC Integration and Control Flow
Atik is instantiated as a Rocket Custom Coprocessor on the custom0 opcode and exposes a TileLink client port, through which it issues Get and Put transactions to the RocketChip memory system. Software drives the accelerator with a minimal command set: it fills an 80-byte descriptor in memory, passes the descriptor address with set_desc, and starts execution with run; additional commands read the status word and the performance counters. The descriptor carries the operation code (matmul, attention, or causal attention), the tensor base addresses and leading dimensions, the problem dimensions, and, for attention, the BF16 scale factor. On run, a descriptor reader fetches the descriptor over the shared read port, the top-level controller decodes the operation, and it hands off to either the matmul or the attention controller. Software then polls the status word until the busy bit clears. Crucially, the software-visible interface never exposes tiling, packing, or internal addresses: the same descriptor describes an arbitrarily large problem, and the hardware streams it in tiles.
3.2 Shared MAC Mesh
The compute core is an mesh of fixed-point multiply-accumulate cells (Fig. 2), configurable as , or . Each cycle the mesh is driven by a row vector of operands and a column vector of operands, and every cell computes the outer-product update against a live accumulator tile held in registers. The accumulator remains resident across the entire reduction dimension of a tile, so a large (or key/value length) is consumed as a sequence of depth- chunks without ever spilling partial sums to memory.
The same mesh serves all three heavy computations. For matmul it evaluates ; for attention it first evaluates the score tile score , and later folds the normalized probabilities into the output as . A single multiplexer at the mesh inputs selects whether the operands come from the matmul or the attention controller, so the largest arithmetic structure in the design is paid for once and amortized across every operation. This is the central difference from designs that instantiate independent matmul and attention engines. The preliminary area study in Section 7 measures this amortization as the mesh grows.
3.3 Numeric Datapath
External tensors are row-major BF16. Internally, Atik computes in fixed point: on the way into the mesh, a BF16 to fixed unit converts each element to a 24-bit signed fixed-point value, products accumulate in a 64-bit signed accumulator, and a FixedToBF16 unit converts results back to BF16 for writeback. The attention softmax path uses a wider 32-bit unsigned fixed-point format for exponentials and running sums. Exponentiation and reciprocal are implemented as small lookup tables—a 256-entry table evaluating over [0, 16] and a 256-entry reciprocal table for final normalization—so the design avoids iterative dividers. These conversions and lookup tables are approximations; Section 5 reports the implemented tolerance-based checks.
3.4 Tile DMA and Local Buffering
A single small tile-DMA engine decouples memory movement from compute. It is parameterized only by a base address, row and column counts, a stride, and a direction, which is sufficient to gather a row-major BF16 tile from memory or scatter one back. The matmul and attention controllers arbitrate for the shared reader and writer, and the descriptor reader shares the same read port, so the entire core presents just one read and one write stream to the memory system. Loaded tiles land in SRAM-backed buffers—per-row banks for the operand and per-column banks for the operand—from which the controllers read back -deep chunks, convert them to fixed point, and drive the mesh. Only the small live state (the accumulator tile and, for attention, the per-row maximum and denominator) is kept in registers. This explicit, tile-granular data movement keeps the memory interface simple and makes the accelerator's traffic predictable, which the on-chip performance counters expose directly for analysis.
4 Attention Dataflow
Attention computes . The naive formulation materializes the full score matrix, which is
Algorithm 1 Atik tiled online-softmax attention. MR/NC are the mesh row/column tile sizes, KC the key/value chunk, and KT the internal reduction depth. The score matrix is never fully materialized; and the probability-value product run on the shared mesh, and the softmax update runs on the scalar lane.
1: for to step MR do 2: for to val_cols step NC do 3: rowMax ← -∞; rowSum ← 0; outAcc ← 0 4: for to step KC do 5: score ← 0 ▷ QK on the shared mesh 6: for to step KT do 7: load Q, K tiles; score += QK^T 8: end for 9: score == scale; apply causal mask ▷ scalar lane 10: newMax ← max(rowMax, ROWMAX(score)) 11: oldScale ← exp(rowMax - newMax) 12: outAcc == oldScale 13: scoreExp ← exp(score - newMax) 14: rowSum ← rowSum · oldScale + SUM(scoreExp) 15: load V tile; outAcc += scoreExp · V ▷ PV on the shared mesh 16: rowMax ← newMax 17: end for 18: outAcc == RECIPROCAL(rowSum) ▷ normalize 19: write bf16(outAcc) to O tile 20: end for 21: end for
both memory-hungry and a poor match for a small tightly-coupled accelerator. Atik instead follows the streaming online-softmax formulation [15]: it walks the key/value axis in chunks, and for each chunk it computes a score tile, updates a running per-row maximum and denominator, and immediately folds the result into a resident output accumulator. The full score matrix is never stored—only one score tile and its exponentiated copy exist at any time. Algorithm 1 gives the resulting schedule.
The two matrix products in attention, and the probability-value product, run on the shared MAC mesh, while softmax bookkeeping runs on one scalar lane with exponential and reciprocal lookup tables.
For each key/value chunk, the mesh computes over depth- slices. The scalar lane applies scaling and the causal mask, updates the running maximum and denominator, and rescales the live output. The resulting probability tile is then multiplied by on the same mesh. After the final chunk, reciprocal-based normalization and BF16 conversion precede writeback. The implementation uses one scalar lane, an explicit area-first choice that serializes this non-linear phase.
The value-column loop encloses the key/value loop in Algorithm 1. Consequently, the score and softmax computations are repeated for each output-column tile when val_cols > NC. This schedule bounds the resident output state at the cost of recomputation and additional input traffic.
5 Experimental Setup
5.1 Configurations and Platform
We evaluate three Atik instances that differ only in mesh size: , , and , corresponding to 4, 16, and 64 MAC lanes. All three expose the identical descriptor ABI and run the same unmodified benchmark binaries; only the generated hardware changes. Each instance is attached over RoCC to one Rocket core in a Chipyard-generated SoC with a 128-bit system bus. Functional bring-up and debugging use a Verilator RTL simulator, while all reported performance numbers come from cycle-accurate FPGA emulation with FireSim on AWS F2. The logged runs use an effective target frequency of approximately 10 MHz. Because FireSim is cycle-accurate, every measurement is expressed in target clock cycles, read from the RISC-V cycle CSR and from Atik's on-chip performance counters; these cycle counts are independent of the host FPGA clock, so speedups are reported as cycle ratios rather than wall-clock times.
5.2 Baseline
The baseline is the same Rocket core running a BF16 software reference implementation of each kernel, on the same SoC and memory system. This isolates the effect of the accelerator: the comparison is Rocket-with-Atik against Rocket alone, not against a different platform. For every accelerated kernel, the hardware output is compared with the software reference using a workload-specific absolute-error tolerance. The archived FireSim logs contain 137 passing result records with zero reported mismatches; the largest logged absolute difference is 0.0625. These checks establish benchmark-level numerical agreement, not task accuracy or bit-exact equivalence.
5.3 Workloads
The benchmark suite spans two standalone kernels and three workload-derived C transformer models, chosen to exercise both overhead-dominated and compute-dominated regimes.
Standalone kernels. The matmul benchmark multiplies an matrix by a matrix over a range of , and , and the attention benchmark computes both non-causal and causal attention over query count , key/value count , key/query dimension , and value dimension . These isolate the accelerator's behavior without surrounding model bookkeeping.
Workload-derived C models. TinyBERT, a Vision Transformer (ViT), and the GPT-2 prefill stage are represented by small C reference models that preserve the relevant layer structure while varying sequence length, model width, head count, and final projection size. Multi-head attention is decomposed into per-head , softmax, and PV operations; Atik accelerates these repeated attention and projection kernels while the software harness keeps the tensor layout and model-level accounting consistent. Numerical fidelity is tracked by comparing three outputs—the original ground-truth result, the C reference, and the Atik result—so that the C port is validated against the model before the accelerator is judged against the C port.

Figure 3: Aggregate speedup, , over the Rocket baseline for the , , and configurations. Kernel results are directly measured; ViT, TinyBERT, and GPT-2 prefill use hybrid projections. The dashed line marks the Rocket baseline.
5.4 Measurement Methodology
For the standalone kernels, the software reference is timed with the RISC-V cycle counter. Atik is measured two ways: the same counter surrounds the RoCC call for end-to-end cycles, while TOTAL_CYCLES records internal accelerator cycles. We report algorithmic FLOP/cycle from both denominators; these counts describe the equivalent matrix work, although Atik executes fixed-point arithmetic internally. Matmul work is 2MNK FLOPs. For attention we report attention-matmul FLOPs, , for and ; softmax remains in the cycle denominator but has no arbitrary FLOP-equivalent count. Replaying the full workload-derived C models on both paths would be expensive in FPGA simulation, so for those workloads we profile the full CPU execution, separately profile the stages that Atik replaces, and form a hybrid projected cost as
where is the measured CPU cost of exactly the kernels Atik takes over and is their measured cost on Atik. This is a hybrid projection rather than a full-model hardware replay: it uses directly measured hardware-kernel cycles while assuming the unaccelerated remainder is unchanged. We report two summaries per workload and configuration. The aggregate speedup sums all baseline cycles and all accelerated cycles over the matching problem sizes and takes their ratio, , which weights cases by their cycle costs; the peak speedup reports the single best observed case, which reflects how well the design amortizes control, DMA, and setup overhead once the problem is large enough to keep the mesh busy.
6 Performance Results
Figure 3 summarizes aggregate speedups over the Rocket baseline. Table 2 reports representative kernel efficiency, while Tables 3, 4, and 5 report the hybrid projected workload speedups. Across the matched cases, the larger meshes deliver the highest speedups.
6.1 Overall Speedups
Table 2 reports how much useful arithmetic is completed per target cycle, with both end-to-end and internal accelerator cycle counts.
Table 2: Direct 8×8 kernel efficiency from FireSim logs. End-to-end cycles include the RoCC call; internal cycles are TOTAL_CYCLES. Attention counts only its two matrix products in the FLOP numerator.
| Case | CPU FLOP/cyc. | Atik e2e FLOP/cyc. | Atik int. FLOP/cyc. |
|---|---|---|---|
| GEMM 643 | 0.1151 | 3.6195 | 3.6224 |
| Attn. 1284 | 0.002210 | 0.4100 | 0.4100 |
For the GEMM, Rocket performs 0.1151 FLOP/cycle, while Atik performs 3.6195 FLOP/cycle including the complete RoCC call. The ratio is , the same speedup reported above. The mesh can issue at most 128 FLOP/cycle, so this measured case reaches 2.83% of the ideal arithmetic rate after memory movement, conversion, control, and writeback are included. For attention, the corresponding rate is 0.4100 FLOP/cycle for the two matrix products. The softmax is included in the measured cycles but not converted into FLOPs, because LUT lookups and scalar reductions have no standard FLOP equivalent. The internal counters also show where time goes: 16,220,220 DMA-read cycles, 2,502,656 mesh-compute cycles, and 1,945,600 softmax cycles. These counters are overlapping component counters, so they are not added together.
On the standalone kernels, the design reaches aggregate and peak on matmul, and aggregate with a peak on attention. Attention benefits the most because all three of its heavy components—the score computation, the softmax normalization, and the probability-value product—are offloaded together: on the baseline, the scalar, data-dependent softmax is especially expensive, so replacing the whole attention pipeline removes a bottleneck that a matmul-only accelerator would leave in place. This is the concrete payoff of targeting both transformer bottlenecks with one design rather than one bottleneck in isolation.
The workload-derived C models show the same ordering with more moderate magnitudes, because they interleave accelerated kernels with model-level bookkeeping that stays on the core. For the configuration, estimated aggregate speedups are for ViT, for TinyBERT, and for GPT-2 prefill; their peak cases reach , , and , respectively.
Table 3 shows ViT speedups increasing from to on the mesh across the evaluated cases. The largest case also benefits most from widening the mesh, rising from on the configuration to on the configuration.
Table 3: Per-case hybrid projected ViT speedup over the Rocket baseline. S is the post-patch token count, D the model dimension, H the head count, and MLP the feed-forward hidden size (all cases use 10 output classes).
| S | D | H | MLP | |||
|---|---|---|---|---|---|---|
| 64 | 64 | 4 | 128 | 7.3 | 16.9 | 26.6 |
| 64 | 128 | 4 | 128 | 7.1 | 19.6 | 36.8 |
| 121 | 128 | 4 | 256 | 8.4 | 24.9 | 50.5 |
Table 4 reports GPT-2 prefill speedups of 14.4× to 36.3× on the 8 × 8 mesh. The smaller prefill cases amortize setup and data-movement costs less effectively than the largest evaluated case.
Table 4: Per-case hybrid projected GPT-2 prefill speedup over the Rocket baseline. S is the sequence length, D the model dimension, H the head count, and V the vocabulary projection size (FFN hidden size 128/256).
| S | D | H | V | |||
|---|---|---|---|---|---|---|
| 16 | 64 | 4 | 128 | 4.3 | 8.9 | 14.4 |
| 32 | 128 | 4 | 256 | 5.4 | 14.1 | 28.6 |
| 64 | 128 | 4 | 256 | 5.7 | 16.4 | 36.3 |
Table 5 reports the TinyBERT cases, including the highest projected workload speedup of 96.0× for 128 tokens and model dimension 256 on the 8×8 mesh. Missing configurations are marked explicitly; cross-configuration aggregate comparisons use only matched cases.
Table 5: Per-case hybrid projected TinyBERT speedup over the Rocket baseline (S tokens, model dimension D, H heads; 2 output classes). “—” marks a case not run for that configuration; aggregate comparisons use only matched cases.
| S | D | H | |||
|---|---|---|---|---|---|
| 32 | 64 | 4 | 5.1 | 10.5 | — |
| 64 | 64 | 2 | — | — | 27.4 |
| 64 | 128 | 4 | 7.4 | 19.8 | 36.1 |
| 128 | 128 | 4 | 8.7 | — | 53.6 |
| 128 | 256 | 2 | — | — | 96.0 |
| 256 | 256 | 4 | 9.5 | 36.2 | — |
The gap between a workload's aggregate and peak speedup reflects its spread of problem sizes: the peak comes from the largest, best-amortized case, while the aggregate also folds in the smaller, overhead-dominated cases.
6.2 Scaling Behavior
The representative cases make two trends visible across the suite. First, wider meshes help more on larger problems: moving from to multiplies the available MAC lanes by , but that capacity only translates into speedup when a tile is large enough
to keep the mesh busy, so the largest gains appear on the biggest matmul, attention, and prefill cases, where the curve pulls furthest ahead. Second, small problems are overhead-dominated: fixed descriptor handling, DMA setup, and controller scheduling are amortized poorly when there is little compute per launch, which is why the smaller configurations improve over Rocket but saturate earlier and why aggregate speedups (which include every small case) sit below the peaks. Causal attention is slower than its non-causal counterpart: masking removes useful work from part of the score matrix while the control flow must still preserve the causal dependency structure. Overall, the results confirm that a single shared-mesh design scales smoothly across an order of magnitude of lane count while covering both matrix multiplication and full attention.
7 Preliminary Area Study
We use a preliminary Hammer/OpenROAD study on Sky130 to estimate standalone AtikCore area. It excludes RocketTile, ChipTop, post-route timing, power, and silicon validation; it should therefore be interpreted only as an early area indication for the accelerator block. Table 6 reports the cell count, area, and area per MAC lane for all three mesh sizes.
Table 6: Preliminary standalone AtikCore area estimate ( ) across mesh configurations.
| MAC lanes | 4 | 16 | 64 |
| Cells | 114,575 | 190,722 | 477,464 |
| Estimated area | 721,212 | 1,217,184 | 3,130,859 |
| Area / MAC lane | 180,303 | 76,074 | 48,920 |
In Table 6, the estimated area per MAC lane falls as fixed control and DMA infrastructure is amortized over larger meshes. This observation is descriptive only: without timing, power, and complete-chip results, it is not a PPA comparison.
Figure 4 shows implementation views from the preliminary standalone VLSI flow. These views complement the area estimates by illustrating the physical organization of the accelerator.

Figure 4: Preliminary standalone AtikCore VLSI output from the Sky130 flow: layout view (left) and colored placement view (right).
8 Discussion and Limitations
Baseline. The reported speedups are measured against the same in-order Rocket core running BF16 software kernels. This deliberately isolates the effect of the accelerator on a fixed RISC-V system, but Rocket is a scalar core without a SIMD or vector unit, so part of the large absolute speedup reflects how poorly a scalar pipeline handles dense BF16 matrix work and data-dependent softmax. The comparison answers "what does attaching Atik buy this core," not "how does Atik compare to a GPU or a vector machine"; those cross-platform comparisons are future work.
Scalar-scheduled softmax. Atik keeps and on the shared mesh but runs the online-softmax bookkeeping and final normalization on a single scalar lane (Section 4). This is an area-first choice, but it also serializes the non-linear part of attention. On very large score tiles this scalar region becomes the dominant sequential cost. The number of scalar lanes and LUT instances is a hardware parameter, not an ABI feature, so a throughput-oriented instance can widen it without changing accelerator software; quantifying that trade-off is left to future work.
Dense, non-sparse attention. Atik accelerates dense attention and does not exploit sparsity. Sparse-attention accelerators skip low-contribution key/value rows and can achieve higher effective throughput on workloads with exploitable sparsity, at the cost of approximation and, often, retraining. Atik trades that opportunity for generality and a BF16-compatible interface with measured benchmark error; adding an optional sparsity path is complementary rather than contradictory.
Implementation scope. The preliminary area study targets standalone AtikCore on Sky130; it does not include RocketTile, ChipTop, routing closure, or tapeout. Its area estimate is not a silicon or PPA result. Extending the flow to a complete tile and reporting timing and power are natural next steps. Finally, the workload study covers matmul, attention, and single-layer ViT, TinyBERT, and GPT-2 prefill; the autoregressive decode stage with a KV cache is not yet accelerated and is an important target for future work.
9 Conclusion
We presented Atik, an open-source, tightly-coupled transformer accelerator for the RISC-V RocketChip. Atik attaches over RoCC, is driven by a minimal descriptor-based software interface, and accelerates both of the recurring transformer bottlenecks—dense matrix multiplication and attention—with BF16 input/output. Its central idea is a single shared fixed-point MAC mesh that serves matmul, scoring, and probability-value accumulation, wrapped in a streaming online-softmax schedule that never materializes the full score matrix. Evaluated cycle-accurately on an AWS F2 FPGA through FireSim, Atik reaches up to 225.8× speedup on attention and 31.5× on matmul over the Rocket baseline, with hybrid projected model speedups of 44× on ViT and 32× on GPT-2 prefill. The preliminary area estimate shows the expected amortization of shared control as the mesh grows, but it is not a PPA result. Together these results show how a shared-mesh, BF16-interface, tightly-coupled accelerator can reduce transformer-kernel cycles in the open RISC-V ecosystem.
Availability. Atik, including its hardware, software, and physical-design flow, is available at github.com/AhmedZeer/atik.
References
[1] Alon Amid, David Biancolin, Abraham Gonzalez, Daniel Grubb, Sagar Karandikar, Harrison Liew, Albert Magyar, Howard Mao, Albert Ou, Nathan Pemberton, Paul Rigge, Colin Schmidt, John Wright, Jerry Zhao, Yakun Sophia Shao, Krste Asanović, and Borivoje Nikolić. 2020. Chipyard: Integrated Design, Simulation, and Implementation Framework for Custom SoCs. IEEE Micro 40, 4 (2020), 10–21. doi:10.1109/MM.2020.2996616
[2] Alireza Amirshahi, Joshua Alexander Harrison Klein, Giovanni Ansaloni, and David Atienza. 2023. TiC-SAT: Tightly-coupled Systolic Accelerator for Transformers. In 2023 28th Asia and South Pacific Design Automation Conference (ASP-DAC). 657–663.
[3] Krste Asanović, Rimas Avizienis, Jonathan Bachrach, Scott Beamer, David Biancolin, Christopher Celio, Henry Cook, Daniel Dabbelt, John Hauser, Adam Izraele-vitz, Sagar Karandikar, Ben Keller, Donggyu Kim, John Koenig, Yunsup Lee, Eric Love, Martin Maas, Albert Magyar, Howard Mao, Miguel Moreto, Albert Ou, David A. Patterson, Brian Richards, Colin Schmidt, Stephen Twigg, Huy Vo, and Andrew Waterman. 2016. The Rocket Chip Generator. Technical Report UCB/EECS-2016-17. http://www2.eecs.berkeley.edu/Pubs/TechRpts/2016/EECS-2016-17.html
[4] Jonathan Bachrach, Huy Vo, Brian Richards, Yunsup Lee, Andrew Waterman, Rimas Avizienis, John Wawrynek, and Krste Asanović. 2012. Chisel: Constructing hardware in a Scala embedded language. In DAC Design Automation Conference 2012. 1212–1221. doi:10.1145/2228360.2228584
[5] Hasan Genc, Seah Kim, Alon Amid, Ameer Haj-Ali, Vighnesh Iyer, Pranav Prakash, Jerry Zhao, Daniel Grubb, Harrison Liew, Howard Mao, Albert Ou, Colin Schmidt, Samuel Steffl, John Wright, Ion Stoica, Jonathan Ragan-Kelley, Krste Asanovic, Borivoje Nikolic, and Yakun Sophia Shao. 2021. Gemmini: Enabling Systematic Deep-Learning Architecture Evaluation via Full-Stack Integration. In 2021 58th ACM/IEEE Design Automation Conference (DAC). 769–774. doi:10.1109/DAC18074.2021.9586216
[6] Tae Jun Ham, Sung Jun Jung, Seonghak Kim, Young H. Oh, Yeonhong Park, Yoonho Song, Jung-Hun Park, Sanghee Lee, Kyoung Park, Jae W. Lee, and Deog-Kyoon Jeong. 2020. A : Accelerating Attention Mechanisms in Neural Networks with Approximation. In 2020 IEEE International Symposium on High Performance Computer Architecture (HPCA). 328–341. doi:10.1109/HPCA47549.2020.00035
[7] Tae Jun Ham, Yejin Lee, Seong Hoon Seo, Soosung Kim, Hyunji Choi, Sung Jun Jung, and Jae W. Lee. 2021. ELSA: Hardware-Software Co-design for Efficient, Lightweight Self-Attention Mechanism in Neural Networks. In 2021 ACM/IEEE 48th Annual International Symposium on Computer Architecture (ISCA). doi:10.1109/ISCA52012.2021.00060
[8] Gamze Islamoglu, Moritz Scherer, Gianna Paulin, Tim Fischer, Victor J.B. Jung, Angelo Garofalo, and Luca Benini. 2023. ITA: An Energy-Efficient Attention and Softmax Accelerator for Quantized Transformers. In 2023 IEEE/ACM International Symposium on Low Power Electronics and Design (ISLPED). 1–6. doi:10.1109/ISLPED58423.2023.10244348
[9] Norman P. Jouppi, Cliff Young, Nishant Patil, David Patterson, Gaurav Agrawal, Raminder Bajwa, Sarah Bates, Suresh Bhatia, Nan Boden, Al Borchers, Rick Boyle, Pierre-luc Cantin, Clifford Chao, Chris Clark, Jeremy Coriell, Mike Daley, Matt Dau, Jeffrey Dean, Ben Gelb, Tara Vazir Ghaemmaghami, Rajendra Gottipati, William Gulland, Robert Hagmann, C. Richard Ho, Doug Hogberg, John Hu, Robert Hundt, Dan Hurt, Julian Ibarz, Aaron Jaffey, Alek Jaworski, Alexander Kaplan, Harshit Khaitan, Daniel Killebrew, Andy Koch, Naveen Kumar, Steve Lacy, James Laudon, James Law, Diemthu Le, Chris Leary, Zhuyuan Liu, Kyle Lucke, Alan Lundin, Gordon MacKean, Adriana Maggiore, Maire Mahony, Kieran Miller, Rahul Nagarajan, Ravi Narayanaswami, Ray Ni, Kathy Nix, Thomas Norrie, Mark Omernick, Narayana Penukonda, Andy Phelps, Jonathan Ross, Matt Ross, Amir Salek, Emad Samadiani, Chris Severn, Gregory Sizikov, Matthew Snellham, Jed Souter, Dan Steinberg, Andy Swing, Mercedes Tan, Gregory Thorson, Bo Tian, Horia Toma, Erick Tuttle, Vijay Vasudevan, Richard Walter, Walter Wang, Eric Wilcox, and Doe Hyun Yoon. 2017. In-datacenter performance analysis of a tensor processing unit. In 2017 ACM/IEEE 44th Annual International Symposium on Computer Architecture (ISCA). 1–12. doi:10.1145/3079856.3080246
[10] Sagar Karandikar, Howard Mao, Donggyu Kim, David Biancolin, Alon Amid, Dayeol Lee, Nathan Pemberton, Emmanuel Amaro, Colin Schmidt, Aditya Chopra, Qijing Huang, Kyle Kovacs, Borivoje Nikolic, Randy Katz, Jonathan Bachrach, and Krste Asanovic. 2018. FireSim: FPGA-Accelerated Cycle-Exact Scale-Out System Simulation in the Public Cloud. In 2018 ACM/IEEE 45th Annual International Symposium on Computer Architecture (ISCA). 29–42. doi:10.1109/ISCA.2018.00014
[11] Kung. 1982. Why systolic architectures? Computer 15, 1 (1982), 37–46. doi:10.1109/MC.1982.1653825
[12] Harrison Liew, Daniel Grubb, John Wright, Colin Schmidt, Nayiri Krzysztofowicz, Adam Izraelevitz, Edward Wang, Krste Asanović, Jonathan Bachrach, and
Borivoje Nikolić. 2022. Hammer: a modular and reusable physical design flow tool: invited. In Proceedings of the 59th ACM/IEEE Design Automation Conference (San Francisco, California) (DAC '22). Association for Computing Machinery, New York, NY, USA, 1335–1338. doi:10.1145/3489517.3530672
[13] Liqiang Lu, Siyu Xie, Yang Liao, et al. 2021. Sanger: A Co-Design Framework for Enabling Sparse Attention using Reconfigurable Architecture. In 2021 54th Annual IEEE/ACM International Symposium on Microarchitecture (MICRO). 777–788. doi:10.1145/3466752.3480125
[14] Alberto Marchisio, Davide Dura, Maurizio Capra, Maurizio Martina, Guido Masera, and Muhammad Shafique. 2023. SwiftTron: An Efficient Hardware Accelerator for Quantized Transformers. In 2023 International Joint Conference on Neural Networks (IJCNN). doi:10.1109/IJCNN54540.2023.10191521
[15] Maxim Milakov and Natalia Gimelshein. 2018. Online normalizer calculation for softmax. arXiv:1805.02867 [cs.PF] https://arxiv.org/abs/1805.02867
[16] Jacob R. Stevens, Rangharajan Venkatesan, Steve Dai, Brucek Khailany, and Anand Raghunathan. 2021. Softernax: Hardware/Software Co-Design of an Efficient Softmax for Transformers. In 2021 58th ACM/IEEE Design Automation Conference (DAC). 469–474. doi:10.1109/DAC18074.2021.9586134
[17] Run Wang, Gamze Islamoglu, Andrea Belano, Viviane Potocnik, Francesco Conti, Angelo Garofalo, and Luca Bonini. 2025. VEXP: A Low-Cost RISC-V ISA Extension for Accelerated Softmax Computation in Transformers. In 2025 IEEE 32nd Symposium on Computer Arithmetic (ARITH). 37–44. doi:10.1109/ARITH64983.2025.00016
[18] Wexun Wang, Shuchang Zhou, Wenyu Sun, Peiqin Sun, and Yongpan Liu. 2023. SOLE: Hardware-Software Co-design of Softmax and LayerNorm for Efficient Transformer Inference. In 2023 IEEE/ACM International Conference on Computer-Aided Design (ICCAD). doi:10.1109/ICCAD57390.2023.10323725
[19] Zhe Zhou, Junlin Liu, Zhenyu Gu, and Guangyu Sun. 2023. Energon: Toward Efficient Acceleration of Transformers Using Dynamic Sparse Attention. IEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems 42, 1 (2023), 136–149. doi:10.1109/TCAD.2022.3170848