---
title: "Bridging Python to Silicon: The SODA Toolchain (2022)"
description: "How SODA turns high-level programs into custom silicon, why compiler structure matters, and what its hardware experiments establish."
canonical: "https://research.elamur.ai/free/en/papers/agostini-2022-bridging-python-silicon-soda-toolchain/"
---
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/agostini-2022-bridging-python-silicon-soda-toolchain/)

[home](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2022](https://md.research.elamur.ai/free/en/papers/2022/) / Bridging Python to Silicon: The SODA Toolchain

# Bridging Python to Silicon: The SODA Toolchain

Paper · 2022 · Nícolas Bohm Agostini, Serena Curzel, Jeff Jun Zhang et al.

**Authors:** [Nícolas Bohm Agostini](https://md.research.elamur.ai/free/en/authors/nicolas-bohm-agostini/), [Serena Curzel](https://md.research.elamur.ai/free/en/authors/serena-curzel/), [Jeff Jun Zhang](https://md.research.elamur.ai/free/en/authors/jeff-jun-zhang/), [Ankur Limaye](https://md.research.elamur.ai/free/en/authors/ankur-limaye/), [Cheng Tan](https://md.research.elamur.ai/free/en/authors/cheng-tan/), [Vinay Amatya](https://md.research.elamur.ai/free/en/authors/vinay-amatya/), [Marco Minutoli](https://md.research.elamur.ai/free/en/authors/marco-minutoli/), [Vito Giovanni Castellana](https://md.research.elamur.ai/free/en/authors/vito-giovanni-castellana/), [Joseph Manzano](https://md.research.elamur.ai/free/en/authors/joseph-manzano/), [David M. Brooks](https://md.research.elamur.ai/free/en/authors/david-m-brooks/), [Gu-Yeon Wei](https://md.research.elamur.ai/free/en/authors/gu-yeon-wei/) and [Antonino Tumeo](https://md.research.elamur.ai/free/en/authors/antonino-tumeo/) · **Year:** 2022 · **Venue:** IEEE Micro · **Licence:** No open licence stated (free-to-read copy; rights reserved) — text kept private

IEEE Micro

- [PDF](https://www.osti.gov/servlets/purl/1890940)
- [DOI 10.1109/mm.2022.3178580](https://doi.org/10.1109/mm.2022.3178580)

## What it is about

How SODA turns high-level programs into custom silicon, why compiler structure matters, and what its hardware experiments establish. · about 33 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

Designing an efficient algorithm and designing efficient hardware for it are different jobs. A scientist may express a calculation in Python, test its behavior, and revise it as the application changes. Turning that calculation into a dedicated circuit typically requires another sequence of decisions about parallel execution, memory, arithmetic units, timing, and physical layout. “Bridging Python to Silicon: The SODA Toolchain” asks how much of that translation can become a connected compilation process. Its answer is SODA, a system that carries suitable high-level program descriptions through optimization, hardware generation, and physical implementation without requiring the application developer to write register-transfer-level code.

SODA connects a high-level compiler frontend, SODA-OPT, with the PandA-Bambu hardware generator. SODA-OPT uses MLIR, a compiler framework that supports several intermediate representations within a common infrastructure. These representations expose different properties of a program: its linear algebra operations, loop structure, control flow, or memory accesses. Instead of flattening everything immediately into low-level instructions, SODA performs transformations where the relevant structure remains visible. It then gives Bambu an LLVM intermediate representation arranged specifically for hardware synthesis. Bambu schedules operations, selects and connects hardware resources, and produces a circuit description. Downstream synthesis and physical-design software can turn that description into an ASIC layout.

The experiments show why the intermediate transformations matter. On the paper’s PolyBench linear algebra evaluation, the authors report an average acceleration of 18x over designs produced without SODA-OPT’s high-level pipeline, with a reported peak of 86x. Both sides still use Bambu’s ordinary backend optimization. The comparison therefore concerns the additional value of preparing the computation before it reaches hardware synthesis. The gains vary substantially: some kernels benefit strongly, while others expose limitations in how the current transformations handle dependent loop bounds.

The neural-network experiments explore another important choice: what portion of a computation should become an accelerator. Whole-layer designs benefit from selected transformations, but reusable convolution tiles can offer much stronger acceleration. The paper reports efficiency reaching 364 GFLOPS/W at 32-bit precision. That headline requires care: the detailed results show that the configuration with the highest efficiency is not necessarily the one with the shortest runtime. More parallel hardware can execute faster while using enough additional area and power to reduce operations per watt. The paper’s results are consequently about navigating design tradeoffs, instead of finding one universally superior setting.

The contribution is a modular route from algorithmic descriptions to custom circuits, supported by experiments on selected linear algebra kernels and convolutional-network operators. It does not establish complete application performance, fabricated-chip measurements, or automatic optimal hardware design. Execution is evaluated through simulation, and area and power come from physical-design results. Within that scope, SODA demonstrates that compiler representations and transformations can replace a substantial amount of manual restructuring while keeping hardware design choices available for exploration.

### Ideas worth borrowing

Preserve structure until it has done its job. A program’s mathematical operations, loops, and memory relationships are useful at different stages. SODA retains specialized representations long enough to transform each kind of structure directly. The broader lesson is that an intermediate representation should expose the information needed for the next decision. This applies to [code and programming languages](https://md.research.elamur.ai/free/en/topics/code-and-programming/), document processing, symbolic reasoning, and any pipeline in which an early simplification can erase distinctions that later stages need.

Prepare inputs for the actual downstream consumer. A valid low-level program is not automatically a good input to a hardware generator. SODA’s frontend deliberately restructures the representation so Bambu can expose parallel work and avoid unnecessary memory activity. Similar reasoning applies when one component prepares queries for another, supplies facts to a reasoner, or packages observations for a statistical procedure. Correctness of the interface matters, but so does whether the interface makes useful structure accessible.

Turn established invariants into explicit optimization information. If separate inputs cannot refer to overlapping storage, a scheduler can treat their memory accesses more independently. SODA carries such alias information into hardware generation rather than leaving the backend to recover it from a less informative representation. Elsewhere, explicit ownership, provenance, type, or independence information can remove conservative restrictions. The essential condition is that the asserted invariant must be justified; a useful optimization hint becomes dangerous when it silently changes the assumptions of the computation.

Treat component boundaries as design choices. SODA can outline an entire operation or a smaller reusable tile. These choices alter hardware size, parallelism, memory behavior, and opportunities for reuse. The reusable idea is to explore the unit of specialization itself, rather than assuming that an existing software function or application layer is the right boundary. This applies to task decomposition, caching, distributed execution, and reusable logical modules as well as circuits.

Make transformations independently selectable. SODA’s optimization pipeline is composed of passes that can be enabled, disabled, or adjusted. This makes alternative designs easier to generate and gives researchers a way to investigate why a result changes. The same organization helps rule systems and data pipelines: an explicit transformation is easier to inspect and compare than a hidden behavior embedded in a monolithic procedure. Selectability alone does not identify causal contributions, but it makes controlled comparison possible.

Verify generated artifacts against reference behavior. SODA does not stop after producing hardware code. Its verification path executes generated testbenches and compares circuit outputs with outputs from the input computation. The transferable idea is to preserve an executable reference across representation changes. This is useful whenever a transformation promises to preserve meaning while changing implementation, including serialization, query optimization, symbolic simplification, and deterministic language-processing repairs.

Evaluate the objective that deployment actually needs. Faster execution, smaller area, lower power, and better efficiency can point toward different configurations. SODA’s tables make those disagreements visible. A reusable evaluation practice is to report the measurements needed to distinguish these objectives, then state which objective a particular choice serves. This matters especially in [evaluation and benchmarks](https://md.research.elamur.ai/free/en/topics/evaluation-benchmarks/), where a single attractive score can conceal a substantial cost elsewhere.

### How Mova uses it

Mova is a small, transparent language system implemented in Rust. Its native pipeline turns text into dependency trees, frames, and a maintained world; other components describe computational capabilities and carry out bounded tasks. The connections below are engineering proposals drawn from SODA’s methods. The status marks compare each proposal with documented Mova mechanisms. They do not establish that SODA has already been integrated, and no measured effect from applying this paper to Mova is known.

Idea: Preserve several representations of the same computation. Where: Section II-A, SODA-OPT frontend. Area: architecture. Mova: вже є (`en`, `prag`, and `world` in `docs/architecture.md`). Mova already separates syntactic trees, event frames, and contextual state. SODA gives a useful reason to maintain those distinctions: each representation makes particular transformations easier to justify. A proposed extension would explicitly document which decisions require which representation before information is discarded. Why Mova: this could prevent a later reasoning step from relying on distinctions that an earlier conversion has already lost.

Idea: Perform transformations where their evidence is clearest. Where: Section II-A and Table I. Area: syntax and reasoning. Mova: частково є (French repairs in `en/src/french_rules.rs`, frame interpretation in `prag`, and contextual reasoning in `world`). SODA places loop transformations and algebraic partitioning at suitable abstraction levels. Mova could similarly distinguish repairs justified by tree structure from interpretations requiring frames or world state. Why Mova: keeping a rule beside the evidence it needs would make its scope easier to inspect and reduce accidental dependence on raw wording.

Idea: Prepare representations for their downstream consumer. Where: Sections II-A and II-B; Table II. Area: interfaces. Mova: частково є (`layers` interfaces and the native pipeline in `docs/architecture.md`). SODA shows that straightforward lowering and synthesis-oriented restructuring can produce very different hardware. Mova could examine whether a frame is merely well formed or also explicit enough for a particular reader’s questions. Any such preparation should retain its derivation. Why Mova: a clearer consumer contract could distinguish missing representation from missing inference when a correct parse still leads to failure.

Idea: Carry justified invariants across component boundaries. Where: Table I and Section III-B’s MobileNetV2 analysis. Area: logic and optimization. Mova: частково є (typed groupant invariants and source-bound evidence in `docs/hybrid-system.md`). SODA uses non-aliasing information to permit independent memory scheduling. For Mova, analogous invariants might state that observations concern separate documents or that an admitted transformation preserves a declared property. Why Mova: an explicit invariant could permit a cheaper execution path while keeping the assumption available for review, instead of hiding it inside an optimization.

Idea: Explore the unit of specialization. Where: Section III-B, reusable accelerators, and Table IV. Area: task decomposition. Mova: частково є (bounded recursive capabilities and configured task execution in `docs/hybrid-system.md`). SODA compares large convolution regions with reusable tiles. Mova could compare whole-document work with smaller source-bound operations, provided their recombination has a declared contract. The analogy does not establish that smaller tasks are better. Why Mova: measuring alternative boundaries could reveal when repeated native operations benefit from reuse and when decomposition adds excessive coordination or loses context.

Idea: Make transformation passes independently selectable. Where: Section II-A. Area: experimentation. Mova: частково є (regression-gated rules and logged self-play in `README.md` and `docs/architecture.md`). SODA makes its passes adjustable instead of treating the frontend as one indivisible transformation. Mova could apply the same discipline to combinations of parsing repairs, frame rules, and contextual shortcuts. Why Mova: reproducible pass configurations would make it easier to identify which change affected an answer and to retain a useful transformation without accepting an unrelated regression.

Idea: Compare generated behavior with a reference. Where: Section II-C, verification. Area: evaluation. Mova: вже є (CPU reference behavior and measured GPU agreement in `README.md`; UD validation in `peta/tools/treeagree/README.md`). SODA’s circuit simulation checks outputs against the input computation. Mova already uses related reference-based checks, though their guarantees differ by component. A proposed extension would make the observation being preserved explicit for every transformation. Why Mova: equality of a serialized result, preservation of a tree constraint, and agreement of an answer should remain separately stated claims.

Idea: Report competing objectives together. Where: Tables III and IV. Area: evaluation. Mova: частково є (measured principles in `README.md`, cost predictions in `tools/twin`, and bounded-job accounting in `docs/architecture.md`). SODA’s faster settings can have lower efficiency. Mova could assess a rule or execution strategy through answer quality, latency, memory, and retained justification rather than one score. Why Mova: a configuration that answers faster may be unsuitable if it consumes substantially more resources or weakens the evidence needed to explain its answer.

Idea: Separate orchestration from specialized computation. Where: Section II-A, application partitioning. Area: operational architecture. Mova: вже є (`layers` as conductor and configured native handlers in `docs/hybrid-system.md`). SODA keeps host control distinct from outlined hardware regions. Mova already distinguishes routing from capabilities, but could make the correspondence between an admitted task and its specialized operation more explicit. Why Mova: a stable orchestration boundary helps a logical module remain reusable across deployments without acquiring a permanent task identity or unrestricted authority.

Idea: Prefer typed intermediate contracts to repeated reconstruction. Where: Section IV, discussion of annotated C generation. Area: data representation. Mova: частково є (typed concepts, frames, and groupants in `docs/architecture.md` and `docs/hybrid-system.md`). The authors argue that returning to a higher-level source form can lose information after hardware-oriented transformations. Mova could inspect places where structured observations are rendered as prose and then parsed again. Why Mova: preserving a typed object through such transitions could reduce ambiguity and retain distinctions such as assertion, report, inference, and unresolved reference.

Idea: Reuse stable infrastructure through narrow interfaces. Where: Section II, framework overview. Area: software architecture. Mova: вже є (separate crates, domain traits, and explicit worker interfaces in `docs/architecture.md`). SODA combines existing compiler, synthesis, simulation, and physical-design components. For Mova, the corresponding lesson is to define the information crossing each boundary instead of rebuilding every capability in one component. Why Mova: narrow interfaces make replacement and independent checking more practical while helping distinguish a component’s successful execution from the correctness of the larger task.

Idea: Detect conflicting optimizations across stages. Where: Section II-A, discussion following Table I. Area: pipeline reliability. Mova: нове. SODA acknowledges that frontend and backend passes may interfere, with current conflicts handled individually. An analogous Mova experiment could record when a tree repair changes the conditions expected by a frame rule or reader. The digest does not establish an equivalent general interference detector. Why Mova: identifying the pair of transformations responsible for a disagreement would be more informative than observing only a final benchmark regression.

Idea: Preserve a simple baseline under the same backend. Where: Section III and Table II. Area: experimental design. Mova: частково є (held-out gates and controlled comparisons in `README.md`). SODA compares frontend settings while keeping Bambu optimization active on both sides. Mova could use similarly matched comparisons when testing a new representation or rule layer. Why Mova: holding the later reader and assessment conditions fixed would help isolate the added value of preprocessing instead of crediting it for unrelated changes in execution or scoring.

Idea: Diagnose weak gains through structural properties. Where: Section III-A, discussion of `syr2k`, `syrk`, and `trmm`. Area: error analysis. Mova: частково є (miss classification in `world/src/knowledge/retention/fastread.rs`). SODA links limited improvement to loop bounds that obstruct scalar replacement. Mova already distinguishes several causes of reading failure; a further proposal is to connect each failed optimization to a specific representation obstacle. Why Mova: this could turn “the new rule did not help” into a concrete question about missing structure, unavailable evidence, or an unsupported transformation.

Idea: Cache repeated observations within a declared scope. Where: Table I, temporary buffers and scalar replacement. Area: data processing. Mova: частково є (shared document graphs in `world/src/knowledge/retention/mice.rs`). SODA avoids repeated memory work by retaining values locally. Mova’s specialist readers already share a parsed document and retained graph. Further reuse should be keyed to the exact source and configuration that produced an observation. Why Mova: reducing repeated native work could lower cost without treating a stale observation as valid after the document, rule set, or task context changes.

Idea: Discover independence before parallel execution. Where: Section II-B, hierarchical and task-parallel regions. Area: parallel computing. Mova: частково є (threaded specialists over a shared graph in `world/src/knowledge/retention/mice.rs`). SODA describes using high-level structure to identify work that could map to parallel architectures. Mova could make the dependency obligations for concurrent observations explicit. Why Mova: parallel execution is useful only when independent work and shared-state effects are understood; declared dependencies could preserve deterministic results while exposing safe concurrency.

Idea: Calibrate cost descriptions against the actual target. Where: Section II-C, functional-unit characterization. Area: resource estimation. Mova: частково є (`tools/twin` prospective predictions and online calibration). SODA characterizes resources for particular technologies instead of relying on a universal cost. Mova could similarly condition execution estimates on the worker, representation, and operation being used. Why Mova: a bounded planner needs estimates that match its deployment, especially when deciding whether another native inspection or recursive subtask fits the available budget.

Idea: Keep resource descriptions separate from task semantics. Where: Section II-C, resource library. Area: modular execution. Mova: частково є (groupants and configured capability interfaces in `docs/hybrid-system.md`). SODA’s functional units have behavior and implementation costs, while the compiler decides how to compose them. Mova could describe a logical capability’s input, observation, and failure behavior separately from its current runtime characteristics. Why Mova: this would allow a deployment to change an implementation or machine without silently changing what a task result is supposed to establish.

Idea: Declare numerical conformance explicitly. Where: Section II-C, floating-point implementation. Area: mathematics. Mova: частково є (exact rational arithmetic in `math` and exact-versus-approximant GPU stages in `README.md`). SODA distinguishes supported floating-point types and the possibility of full IEEE754 compliance when required. Mova could require numerical capabilities to declare precision and conformance alongside their output. Why Mova: exact arithmetic, approximate computation, and measured agreement support different conclusions, so callers should not infer one guarantee merely from a successful numerical result.

Idea: Separate local speed from complete workflow speed. Where: Section III-A and Section III-B’s tile comparison. Area: evaluation. Mova: частково є (bounded-probe and cache-scope reporting in `tools/dictindex/README.md`). SODA isolates kernels and makes memory assumptions for a repeated-tile comparison. Mova could apply the same care when reporting a fast parser stage or indexed lookup. Why Mova: a local improvement may be outweighed by loading, routing, synchronization, or evidence retrieval, and a useful deployment claim must state which of those costs were measured.

Idea: Make reuse conditions explicit. Where: Section III-B, convolution tiles reused across layers. Area: compositional reasoning. Mova: частково є (source-bound groupants and typed compatibility checks in `docs/hybrid-system.md`). A SODA tile is useful across several contexts because a compatible computation can invoke it repeatedly. Mova could record the domain, assumptions, and observation required to reuse a logical subroutine. Why Mova: declared compatibility would let the system reuse an established capability without promoting a successful finite example into a claim of unrestricted equivalence.

Idea: Distinguish a configurable search space from an automatic search policy. Where: Sections II-A and III. Area: planning and experimentation. Mova: частково є (experimental composition limits in `docs/hybrid-system.md`). SODA exposes many pass choices, but its existence does not establish that the best configuration is found automatically. Mova should preserve the same distinction when offering candidate routes or model descriptions. Why Mova: explicit uncertainty about selection quality prevents a bounded, configured planner from being described as a general automatic composer.

Idea: Validate source immutability during exploration. Where: Section III-B, unchanged high-level network descriptions. Area: experimental control. Mova: вже є (fingerprint checks in `tools/enrich/README.md` and immutable source versions in `tools/dictindex/README.md`). SODA’s experiments vary compilation choices without requiring edits to the original network descriptions. Mova can retain the analogous discipline when comparing processing settings. Why Mova: fixing the source helps establish that changed behavior comes from the proposed transformation instead of an unnoticed change in teaching material or input data.

Idea: Produce intermediate artifacts that explain final outcomes. Where: Figures 1 and 2 and Sections II-A–II-C. Area: interpretability. Mova: вже є (rule evidence, worker outcomes, and native observations in `README.md` and `docs/hybrid-system.md`). SODA makes the path from high-level operations to physical designs visible through distinct stages. Mova already retains several such observations; a proposed extension is to connect them consistently across a complete task. Why Mova: an answer becomes easier to diagnose when its representation changes and execution decisions remain traceable.

Idea: Use automated verification without overstating its reach. Where: Section II-C and the experimental setup in Section III. Area: evaluation. Mova: частково є (UD gates in `treeagree` and CPU/GPU agreement reporting). SODA checks generated outputs on supplied values, which is valuable but does not constitute a proof over every input. Mova could label each check by its coverage and observation. Why Mova: a clean validation run should support the property actually tested, instead of becoming a general claim that the entire interpretation or execution is correct.

Idea: Keep optimization policy separate from application descriptions. Where: Section II-A, comparison with manual restructuring and pragmas. Area: maintainability. Mova: частково є (compiled seeds, explicit configuration, and separate worker policies in the architecture and hybrid-system documentation). SODA moves many implementation choices out of manually altered source code. Mova could similarly keep a domain’s facts distinct from the policy for scheduling or caching its reasoning. Why Mova: independent revision would make it easier to improve execution without changing the declared meaning of the knowledge being processed.

Idea: Search for cheaper representations before adding computation. Where: Table I, elimination of redundant work. Area: efficient reasoning. Mova: частково є (compiled integer-based rules and prepared storage in `README.md`). SODA gains efficiency partly by removing unnecessary operations and repeated accesses, rather than only adding arithmetic resources. Mova could inspect whether repeated matching or graph traversal can be represented once with a retained justification. Why Mova: structural simplification fits a rules-and-statistics direction and may reduce work without introducing another learned component.

Idea: Keep implementation evidence distinct from future architecture. Where: Section II-B, proposed use of parallel templates from SODA-OPT. Area: research reporting. Mova: вже є (implementation boundaries in `docs/hybrid-system.md`). The paper distinguishes backend capabilities from future frontend instantiation of broader architectures. Mova already documents automatic composition as experimental or directional. Why Mova: maintaining that distinction lets developers pursue ambitious connections while keeping operational claims tied to the handlers, interfaces, and checks that actually exist.

### The problem and its context

#### Why a high-level algorithm is far from a circuit

The applications motivating SODA combine several kinds of computation. The paper mentions scientific experiments, environmental monitoring, and navigation or control. Their processing needs can include data analysis, machine learning, and scientific calculations, with simultaneous constraints on latency, energy, area, and performance. The authors argue that these demands create a need for specialized accelerators.

An accelerator is hardware arranged for a narrower computational purpose than a general-purpose processor. That specialization can make particular operations efficient, but it also creates a design burden. Someone must decide how arithmetic operations become hardware resources, when those resources operate, and how values move between them. A mathematically concise expression can therefore conceal a complicated implementation problem.

The difficulty becomes sharper when algorithms change rapidly. Domain experts often develop their calculations in high-level frameworks, many based on Python. Hardware specialists work with descriptions closer to circuits. If every algorithm revision requires another manual hardware redesign, the hardware process can lag behind the software that it is meant to accelerate.

The paper describes conventional hardware development as a combination of manual and automated work. A designer identifies important computational patterns, looks for parallel execution and data reuse, and writes functional units in a hardware description language. Register-transfer-level descriptions specify behavior in terms of state, registers, and data movement. Subsequent tools perform logic synthesis and physical design, but substantial architectural work has already occurred.

High-level synthesis offers another route. Instead of writing the hardware description directly, a designer supplies an imperative program, commonly in C or C++, and a synthesis tool produces hardware code. The authors discuss commercial tools in this role. Yet their account emphasizes that the program often still needs restructuring, specialized annotations, or both. Moving the input language upward does not automatically remove hardware expertise from the process.

#### Why connecting tools matters

A hardware flow contains several stages with different representations and assumptions. A change made at one stage may need to be propagated elsewhere. Verification must establish that the resulting artifact still performs the intended computation. The paper treats these interactions as a productivity problem in their own right: even competent individual tools can form a tedious and error-prone workflow.

SODA addresses that coordination problem through compilation. Its proposal is not simply to add another synthesis engine. It connects framework-level descriptions, high-level optimization, low-level hardware generation, and physical implementation through explicit intermediate representations.

This makes its use of MLIR central. MLIR supports dialects: specialized intermediate languages that share a common compiler infrastructure. A dialect can represent operations at a level suitable for a particular analysis. The same program can therefore move through representations without requiring every stage to interpret a manually maintained source-language rewrite.

The paper positions this approach against several earlier strategies. [Gemmini](https://md.research.elamur.ai/free/en/papers/genc-2021-gemmini-enabling-systematic-deep-learning/) generates a configurable systolic-array design and connects it with a software stack that offloads selected operations. VeriGOOD-ML maps suitable neural computations onto architecture templates. These approaches provide structured targets, but their applicability depends on whether the computation matches the supplied architecture.

The authors also discuss approaches that translate high-level programs into annotated C or C++ for a particular synthesis tool. PyLog and HeteroCL belong to this discussion, while ScaleHLS uses MLIR transformations before producing C for synthesis. SODA instead passes hardware-oriented LLVM representation directly to a backend that can consume it.

The distinction is about both flexibility and information. A template gives a computation a prearranged architectural home. A compiler-based generator can create a more specific circuit, but the resulting design may be less flexible. Similarly, returning to a higher-level source form can make integration convenient while risking loss of information developed during earlier transformations. These are the tradeoffs through which the paper explains its design.

### The method, step by step

#### Start with a supported high-level representation

SODA begins after a high-level framework can express its computation in MLIR dialects accepted by the frontend. The paper discusses framework ecosystems for machine learning, scientific computing, and general-purpose languages. The important requirement is the available lowering path, rather than Python syntax by itself.

This qualification matters. “Python to silicon” names the ambition and a common starting environment, but the actual bridge depends on structured compiler input. A program must reach representations that SODA understands. The compiler is not described as interpreting arbitrary Python behavior and automatically turning every possible program into a useful circuit.

For the neural experiments, the authors train networks in TensorFlow using 32-bit floating-point arithmetic. They convert the results to protobuf files, then translate operations into MLIR abstractions including `tosa` and `linalg`. The paper does not provide training-data details, accuracy measurements, or a comparison of training procedures. Training supplies the network computations used for hardware generation.

From framework operations to physical hardware The steps in order.

#### Identify regions and separate their responsibilities

SODA-OPT introduces a `soda` dialect for partitioning an application. It identifies selected code regions and outlines them into separate modules. Outlining turns part of a larger computation into an independently handled unit with an explicit interface.

One path becomes the host program. Its role is to coordinate execution and invoke the generated accelerators through runtime calls. Another path becomes hardware. This separation lets the frontend treat an accelerator region as an implementation problem without requiring the whole application to become a circuit.

The choice of region is important. A neural layer can be one region, but a smaller part of an operation can also become a reusable accelerator. The experiments later show that these boundaries materially affect the results. Partitioning is therefore not merely administrative packaging; it helps determine the architecture that the backend will see.

#### Use each representation for the transformations it exposes

The frontend proceeds through `linalg`, `affine`, `scf`, `cf`, and `llvm`. These names refer to representations with different emphases. At the linear algebra level, the compiler can recognize operations as structured computations. At the affine level, it can work with suitable loop and indexing relationships. Later representations expose more conventional control flow and lower-level operations.

The advantage is that a transformation can act before its evidence disappears. Recognizing a whole algebraic operation is easier when the operation is still represented explicitly. Transforming loop structure is easier before the program has become an undifferentiated collection of branches and instructions.

SODA-OPT uses this progression to restructure computation for hardware synthesis. Its output is not simply a direct translation into LLVM. It is LLVM representation prepared to give the hardware generator a more favorable scheduling and memory problem.

The paper contains no standalone mathematical equations defining this process. Its method is specified through the architecture, transformation descriptions, and experimental settings. The relevant relationships are explained through operations, dependencies, and resource constraints instead of a formal optimization objective.

#### Expose parallel work with loop transformations

Unrolling replaces repeated loop execution with explicitly represented operations. In hardware synthesis, this can expose independent work that may be scheduled concurrently. Whether the resulting circuit becomes faster depends on available resources and data dependencies.

Tiling reorganizes a larger computation into smaller portions. Its role is not identical to unrolling. A tile can provide a manageable unit whose arithmetic and memory requirements fit a chosen implementation strategy. SODA uses this idea to generate reusable convolution accelerators.

The paper also discusses arranging the compute-intensive part into a single basic block. A basic block is a straight-line region without internal control-flow alternatives. Making relevant operations visible together can give the scheduler more freedom, because it can consider their relationships within a simpler control structure.

These transformations do not promise unlimited parallelism. Dependencies still matter. Inputs must be available, outputs must preserve the intended computation, and memory resources must support the required accesses. The point is to expose legitimate scheduling opportunities that an inconvenient representation could hide.

#### Reduce unnecessary memory activity

A circuit can spend time and resources moving values that could have remained local. SODA’s buffer transformations address this problem. Temporary storage and buffer promotion help retain useful values near the computation rather than repeatedly accessing kernel arguments or external memory.

Scalar replacement of aggregates, abbreviated SRoA, converts suitable structured storage into scalar values. In the hardware setting described by the paper, this can allow values and intermediate results to reside in registers. The transformation is useful when it removes repeated memory accesses and makes individual values easier to schedule.

Common subexpression elimination, or CSE, removes repeated calculations when a previously computed value can serve the same purpose. Dead code elimination, or DCE, removes operations whose results are unnecessary. These familiar compiler transformations matter for hardware because an unnecessary operation can otherwise consume physical resources.

The authors also propagate non-aliasing information. Two arguments alias when they can refer to overlapping storage. If the compiler establishes that they do not, the hardware scheduler can treat certain accesses more independently. Without that information, preserving correctness may require a more conservative schedule.

These transformations interact. Unrolling can reveal repeated calculations or local values; scalar replacement can make the exposed arithmetic easier to schedule; alias information can relax memory restrictions. The experimental pipeline applies a bundle of transformations, so the paper’s strongest results should be understood as the effect of their combination.

#### Hand a synthesis-oriented program to Bambu

Bambu accepts the LLVM representation generated by SODA-OPT and constructs its own internal representation for hardware synthesis. Its processing includes analysis of bit widths, resource allocation, scheduling, and binding.

Resource allocation determines what functional units are available. Scheduling determines when operations execute. Binding associates operations with particular resources. Together, these choices transform a computation into a hardware organization rather than merely translating its syntax.

The generated accelerators follow an FSMD organization: a finite-state controller coordinates a datapath. The controller determines the progression of execution, while the datapath contains the resources that perform and move the computation. Bambu can produce Verilog or VHDL descriptions and can generate verification testbenches alongside them.

The paper also describes modular synthesis capabilities. Functions can become modules that are reused or replicated within a larger design. Backend extensions support broader parallel arrangements, including dataflow-oriented designs and multithreaded templates. However, the paper presents automatic instantiation of such arrangements from SODA-OPT as a possibility for further development, instead of an experimental result established here.

#### Characterize the hardware building blocks

The backend requires a resource library containing implementations of operations such as addition and multiplication. Knowing the operation’s meaning is insufficient: synthesis also needs estimates of the resource’s area and timing for a particular target.

These estimates affect decisions such as whether operations can be chained without an intermediate register. Chaining is acceptable only when the combined timing fits the required clock period. A poor resource estimate can therefore distort architectural decisions before physical implementation begins.

The authors add support for OpenROAD and the FreePDK 45 nm library, giving SODA an open-source route through physical design. They also support a Design Compiler route and discuss Global Foundries 12/14 nm targeting. Their characterization process synthesizes functional units and collects the resulting area and performance information.

Floating-point resources receive particular attention. For the ASIC path, the authors generate units from a C software floating-point implementation, supporting FP32 and FP64 and allowing full IEEE754 compliance when required. In their example, the FP32 multiplier’s latency is 4 cycles when operating at 200 MHz and 5 cycles when operating at 500 MHz. This illustrates that the target timing requirement changes the implementation schedule.

#### Check behavior and produce a physical design

Verification compares generated hardware behavior with the input computation. Bambu receives input values through an XML description, creates a Verilog testbench, and runs simulation using Verilator. The resulting circuit outputs are checked against reference outputs from executing the input code.

This is an important part of the connected flow. A circuit that synthesizes successfully can still be functionally wrong. Comparing outputs addresses that risk, although the strength of the conclusion depends on the tested inputs.

For the experiments, execution time comes from simulation with randomly generated test vectors. Area and power come after OpenROAD placement and routing. The final layout is represented in GDSII, the physical-design format used for the illustrated ASIC implementations.

The official implementation components are SODA-OPT and PandA-Bambu, connected to external implementation and verification software. The paper’s method is consequently a composition of interoperating systems. Its novelty lies substantially in how those systems exchange structured information and how high-level transformations prepare the hardware-generation problem.

### Experiments and results

#### What the comparisons measure

The experimental design separates the frontend’s contribution from ordinary backend optimization. Baseline programs are lowered from MLIR without SODA-OPT’s high-level transformations. Optimized programs pass through the selected frontend pipeline. Both are synthesized with Bambu’s `-O2` optimization.

This means the baseline is not a deliberately unoptimized circuit generator. The question is whether the backend benefits from receiving a better structured low-level input. The results support that proposition, although they do not establish how SODA compares numerically with every alternative hardware flow.

Execution measurements concern generated kernels. The linear algebra experiments explicitly omit system-level effects. Neural experiments use selected operators and reusable tiles, rather than measuring complete network execution on an integrated platform. No fabricated-chip measurements are reported.

#### Linear algebra kernels

The authors describe generating accelerators for 14 PolyBench kernels translated from C into MLIR’s affine representation. Table II displays named kernel rows across input sizes 2, 4, 8, and 16. There is a small reporting inconsistency: the prose states 14 kernels, while the displayed table contains fewer named rows. The article’s headline average should therefore be attributed to the authors’ stated evaluation rather than reconstructed from the visible entries.

For the optimized condition, the frontend fully unrolls the three innermost nested loops. It also applies buffer transformations, non-aliasing information, CSE, DCE, and SRoA. The target is FreePDK 45 nm at 500 MHz.

The reported average speedup is 18x, with a prose headline peak of 86x. Table II gives the corresponding strongest displayed case more precisely as 86.1x for `symm` at kernel size 4. The chart shows the underlying cycle counts, which directly express how much scheduled execution changes for that case.

PolyBench symm, kernel size 4, execution cycles Synthesis-oriented frontend transformations sharply shorten the generated schedule.

**The numbers**

| System or setting | clock cycles |
| --- | --- |
| No MLIR Opts. | 2,928 |
| SODA-OPT Pipeline (this paper) | 34 |

The improvements extend beyond that example. For `gemm` at size 16, Table II reports 95,376 baseline cycles and 3,584 optimized cycles, with speedup recorded as 26.6x. For `doitgen` at size 16, it reports 999,698 and 16,512 cycles, respectively, with 60.5x speedup. These are substantial changes in generated execution, not small instruction-level adjustments.

The pattern is not uniform. At size 16, `syr2k` records 2.8x and `syrk` records 2.4x. For `trmm`, several displayed sizes show 1.0x. This variation becomes important in the paper’s explanation of the pipeline’s limits.

#### Whole-layer LeNet results

The selected LeNet accelerators represent operations accounting for 98% of execution time in the paper’s account. They include convolution, bias, and activation kernels. The authors apply selected transformations rather than the complete pipeline in every case.

For `CONV 01`, non-aliasing information changes execution from 10,262,618 cycles to 4,627,982 cycles, with reported speedup of 2.22. The improvement comes with a different physical implementation: the optimized design has greater area and power.

Bias and activation kernels respond more strongly to the combination of non-aliasing information and unrolling. `BIAS 02` has reported speedup of 6.17, while `RELU 03` records 3.94. The second displayed bias and activation operations show a similar pattern.

The other convolution behaves differently. `CONV 04` records speedup of only 1.02. This contrast shows why a successful transformation on one operation cannot be assumed to provide the same benefit elsewhere in the same network.

The efficiency measurements also complicate a simple speed ranking. For `CONV 01`, GFLOPS/W is 4.43 for the baseline and 2.68 after the selected optimization. Faster execution does not, in that case, imply more arithmetic per unit of power. Similar tradeoffs appear in the other displayed LeNet operations.

#### Depth-wise MobileNetV2 convolutions

The selected MobileNetV2 depth-wise convolutions account for 35% of inference time according to the paper. Here, the experiment isolates a simpler frontend change: propagating non-aliasing information.

All the selected operators share a computational structure while differing in tensor dimensions and loop bounds. The authors explain their similar response through the same scheduling opportunity. Once different arguments are known not to overlap, Bambu can schedule memory operations with fewer conservative restrictions.

MobileNetV2 DWC2D 01, FreePDK 45 nm, execution cycles Explicit non-aliasing information permits a shorter hardware execution schedule.

**The numbers**

| System or setting | clock cycles |
| --- | --- |
| noopt | 87,319,010 |
| noalias (this paper) | 43,966,946 |

Each displayed MobileNetV2 case has a reported speedup of 1.99. Efficiency also improves for these cases. For `DWC2D 01`, the reported values are 3.45 GFLOPS/W and 4.80 GFLOPS/W. The other selected cases follow the same qualitative direction, unlike the speed-versus-efficiency tradeoff seen in several LeNet rows.

#### Reusable convolution tiles

The tile experiments change the unit being synthesized. Instead of generating a complete convolution accelerator, the authors outline a tile that can be invoked repeatedly. They also choose tiles reusable across layers in deeper networks.

The paper reports reuse across 35 convolutional layers for MobileNetV2, 14 for ResNet-18, and 46 for ResNet-50. These counts establish the intended reuse scope; they are not whole-network runtime measurements.

For the LeNet tile, Table IV reports 1,809 baseline cycles and 125 cycles with SODA-OPT, with average speedup recorded as 15.25. The corresponding runtimes are 3.62E-06 seconds and 250.00E-09 seconds. The MobileNetV2 tile has reported speedup of 14.20, and the tile shared by the ResNet cases has 9.73.

The efficiency results reveal a separate issue. At the GF 12nm target, the highest displayed LeNet-tile efficiency belongs to the baseline configuration. The optimized configuration is faster but has lower GFLOPS/W.

Reusable convolution tiles, GF 12nm, arithmetic efficiency The faster frontend setting does not consistently maximize operations per watt.

**The numbers**

| System or setting | GFLOPS/W |
| --- | --- |
| LeNet, No Opt., highest efficiency (this paper) | 364.19 |
| LeNet, SODA-OPT | 130.04 |
| MobileNetV2, No Opt. | 103.31 |
| MobileNetV2, SODA-OPT | 166.56 |
| ResNet18,50, No Opt. | 176.75 |
| ResNet18,50, SODA-OPT | 142.08 |

This makes the abstract’s headline easier to interpret. SODA generates an efficient design reaching the reported range, but that number should not be described as a universal benefit of applying the full optimization pipeline. The best efficiency configuration depends on the operation and objective.

The authors also compare repeated tile execution with the fastest full `CONV 04` implementation. They report the full-layer version as 14.89x slower than invoking the optimized LeNet tile 44,800 times. That comparison assumes a private scratchpad with two ports, load latency of 2 cycles, and store latency of 1 cycle. Those assumptions belong with the result.

Finally, all reported designs take less than 3 hours to generate from their high-level descriptions to GDSII on the stated machine: two AMD EPYC 7282 16-Core processors and 256 GB of DDR4 3.2 GHz memory. This is evidence about the explored synthesis tasks, not a bound for arbitrary applications.

### What the ablations show

#### The main comparison tests a pipeline

The linear algebra study compares direct lowering with a bundle of frontend transformations. It is a controlled comparison of whether synthesis-oriented preprocessing helps the backend. Because both conditions use the same Bambu optimization setting, the observed gains cannot simply be attributed to turning backend optimization on.

However, the study does not remove every transformation individually and measure its separate contribution. It therefore does not identify a universal ranking among unrolling, scalar replacement, buffer handling, and elimination passes. Their effects may depend on one another.

This distinction matters when interpreting the average speedup. A combined pipeline can be effective even when a particular pass contributes little on some kernels. Conversely, a transformation that helps alone can interact poorly with another. The paper gives a useful implementation comparison without supplying a complete causal decomposition.

#### Non-aliasing receives a clearer local test

The MobileNetV2 comparison is narrower. The displayed baseline and optimized cases differ through non-aliasing information, and the selected operators respond similarly. This supports the authors’ explanation that memory dependence information was constraining the schedule.

The result is stronger than an unexplained end-to-end gain because it connects a specific semantic fact to a hardware scheduling consequence. It is still local to the selected operators and implementation conditions. It does not show that all memory-intensive computations will benefit similarly.

The LeNet rows also help qualify the interpretation. Some use non-aliasing alone, while others combine it with unrolling. Their varying outcomes show that the same broad optimization vocabulary can lead to different tradeoffs across operations.

#### The weak cases expose a representation obstacle

The authors investigate the limited improvement for `syr2k`, `syrk`, and `trmm`. Their explanation concerns inner-loop bounds that depend on outer-loop induction variables. Under those conditions, SRoA cannot perform the desired scalar replacement.

This is a useful negative result because it identifies a specific obstruction. The pipeline is not failing because the computation lacks all exploitable structure. Rather, the current representation and transformations cannot simplify the relevant indexing enough to unlock a later transformation.

The proposed remedy is another pass that simplifies index calculations when loop bounds are known. The paper presents that as future work. It does not report a measurement showing the obstacle already removed.

#### Tile comparisons test architectural granularity

The reusable-tile experiments investigate a different question from the pass comparison. They ask whether a smaller accelerator boundary can provide a better balance of arithmetic and memory parallelism than outlining a complete convolution.

The results support that possibility under the stated conditions. They also show that selecting a smaller region does not eliminate design tradeoffs: optimized tiles can be much faster while requiring greater area and power.

The whole-layer comparison remains conditional on scratchpad behavior. It is best read as evidence that architectural granularity deserves exploration, rather than as a complete system-level demonstration. The analysis explains why a seemingly modest compiler choice—what region to outline—can change the hardware problem substantially.

### Limitations

#### Limits the authors explicitly identify

The authors acknowledge that optimization at multiple levels can create interference. Some transformations exist in both SODA-OPT and Bambu. If their interaction becomes disruptive, the current response is to control backend passes individually. The architecture is modular, but that does not mean every possible pass combination is automatically well behaved.

They also identify the scalar-replacement limitation in the weak PolyBench cases. Their proposed index-simplification pass indicates a concrete gap in the implemented frontend. It is important to preserve the distinction between explaining that gap and demonstrating that it has been solved.

Several broader capabilities are described as extensions or possibilities. Host-side improvements could enable better cache use, parallel accelerator execution, or additional reuse. High-level descriptions could also drive richer backend templates. These directions expand the architecture’s potential, but they are not established by the reported experiments.

The paper’s generality claim also depends on available MLIR lowering. The framework is intended to handle diverse computational patterns, yet the connection from a particular high-level environment must exist. The phrase “any algorithm” is therefore conditional on representability and a supported compilation path.

#### Limits visible in the evaluation

The performance evidence is kernel-centered. Linear algebra operations are simulated separately, and the neural experiments use selected layers or tiles. This makes it easier to study transformation effects, but it leaves complete application behavior unresolved.

An integrated application includes host execution, data transfer, memory contention, invocation overhead, and coordination among accelerators. The paper does not measure all of those together. Its conclusions about a compiler flow are stronger than any conclusion about complete deployment speed.

The tile comparison makes some memory costs explicit, which is valuable, but its assumptions are not measurements of every possible memory system. Different transfer costs or scratchpad arrangements could change the result. The reported advantage should travel with the stated access-latency assumptions.

Area and power are obtained after physical design, while execution comes from simulation. These are meaningful engineering measurements within the flow, but they are not observations from fabricated chips. The paper demonstrates generated implementations and their assessed properties, rather than silicon operating in an application environment.

The random test vectors provide functional evidence, not exhaustive verification. Matching outputs on those inputs does not prove equivalence for every allowed value or every floating-point corner case. The paper describes support for compliance when required, but does not provide a complete numerical-conformance study for every reported design.

#### Limits on comparison and optimization claims

The quantitative baselines are SODA-related compilation settings. The related-work discussion explains architectural differences from other systems, but the experiments do not provide a matched numerical contest against all of them.

As a result, the paper supports the effectiveness of its frontend preparation more directly than it supports universal superiority over template-based accelerators or other synthesis flows. A specialized template may offer flexibility and reuse advantages that are not captured by an isolated kernel comparison.

There is also no proof that the explored compiler settings are optimal. Configurable passes make broad exploration possible, but they do not themselves supply a search strategy or a guarantee of finding the best design. The reported experiments establish useful design points, not an exhaustive frontier.

The efficiency headline deserves particular restraint. The detailed table contains cases in which applying SODA-OPT improves runtime but reduces GFLOPS/W. Calling the pipeline simply “more efficient” would blur different objectives and overlook the strongest counterexamples within the paper’s own results.

Some numerical reporting also requires careful attribution. The prose describes selected whole-convolution gains differently from particular table entries, and the stated PolyBench kernel count does not fully align with the displayed rows. These issues do not erase the comparisons, but they discourage reconstructing broader claims from incomplete presentation.

Finally, hardware performance is the evaluated outcome. The paper does not study whether generating these accelerators changes neural prediction quality, how users select compiler settings in practice, or how the flow behaves across an unrestricted collection of high-level programs. Those questions remain outside its demonstrated scope.

### What came after

No subsequent citing work is identified in the available record, so a documented account of later systems building on SODA cannot be given. The earlier systems discussed in the related-work section should not be presented as descendants of this paper.

The authors do describe directions for continuation. One concerns simplifying indexing so more kernels can benefit from scalar replacement. Another concerns improving the host path, including coordination and reuse of accelerators. A broader direction would use MLIR’s hierarchical structure to instantiate more parallel backend architectures.

These proposals follow directly from the paper’s findings. The strongest gains come when the compiler exposes structure that the hardware generator can exploit; the weak cases reveal where that exposure remains incomplete. SODA therefore leaves a concrete research agenda: improve the representations and transformations that connect algorithmic structure with implementation choices, while continuing to verify behavior and measure the resulting hardware tradeoffs.

## Cite

Cite as Nícolas Bohm Agostini, Serena Curzel, Jeff Jun Zhang, Ankur Limaye, Cheng Tan, Vinay Amatya, Marco Minutoli, Vito Giovanni Castellana, Joseph Manzano, David M. Brooks, Gu-Yeon Wei and Antonino Tumeo. 2022. Bridging Python to Silicon: The SODA Toolchain. IEEE Micro.

The paper itself, not this page. BibTeX from the library's record of the work. [DOI 10.1109/mm.2022.3178580](https://doi.org/10.1109/mm.2022.3178580)

```bibtex
@inproceedings{agostini2022bridging,
  title = {{Bridging Python to Silicon: The SODA Toolchain}},
  author = {Nícolas Bohm Agostini, Serena Curzel, Jeff Jun Zhang, Ankur Limaye, Cheng Tan, Vinay Amatya, Marco Minutoli, Vito Giovanni Castellana, Joseph Manzano, David M. Brooks, Gu-Yeon Wei and Antonino Tumeo},
  booktitle = {IEEE Micro},
  year = {2022},
  doi = {10.1109/mm.2022.3178580},
  url = {https://doi.org/10.1109/mm.2022.3178580}
}
```

> 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)
