Search arXiv⌕ Search

arXiv · 2612.05664

Design and Evaluation of Mamba Inference on a Programmable CGLA

Abstract

As artificial intelligence (AI) applications have expanded in recent years, the computational cost and power consumption of inference have become concerns. The high memory requirements of Transformer architectures have drawn attention to state-space models such as Mamba, which require little memory during generation. Mamba carries a fixed-size recurrent state from one token to the next. A graphics processing unit (GPU) exploits parallelism in conventional AI models. However, the recurrent dependence in Mamba prevents GPUs from parallelizing state updates across tokens. This dependence limits energy efficiency during generation. The CPU-Grounded Linear Array (CGLA) is a general-purpose programmable coarse-grained reconfigurable array (CGRA). Its pipeline suits these ordered updates because each processing element passes intermediate results to the next. We implement Mamba-130M inference on a field-programmable gate array (FPGA) prototype of the CGLA and evaluate token generation. We group independent projection rows into a single call and reuse the packed weights in direct memory access (DMA) buffers within each request. Together, these changes reduced the median model-compute time for generating 128 tokens from 732 to 167 s on the prototype. The projected efficiency of the CGLA application-specific integrated circuit (ASIC) subsystem is 0.64 tokens per joule, compared with 0.19 for the RTX 4090 system at nominal power. The CGLA value is 3.4x that of the RTX 4090 and close to the 0.63 tokens per joule of the Jetson AGX Orin.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Takuto Ando, Yasuhiko Nakashima. 2026-12-03. Design and Evaluation of Mamba Inference on a Programmable CGLA. https://searcharxiv.org/abs/2612.05664

Citations retain the original authors and DOI and include this site’s record URL. If this discovery service contributed to your research, you can also cite Search arXiv by Indiciae: BibTeX · RIS.

KEEP EXPLORING

Related papers

ChipArc: Auditable Multi-Agent RTL Generation, Repair and Optimization with Verifier-Gated Memory

Register-transfer level (RTL) code must be both functionally correct and physically efficient in timing, area, and energy, yet LLM-based RTL agents draft plausible designs without being able to certify correctness or reliably guide repair. We present ChipArc, an auditable multi-agent framework in which models propose RTL and diagnose failures while a deterministic controller verifies each candidate and promotes only strictly verified improvements, recording every decision for offline audit. A key design choice is a single verifier-gated global memory shared across concurrent agents: each stores a bounded record of an evaluated repair (hypothesis, change, and verifier-measured outcome), so agents reuse one another's verified experiences across tasks, while excluding current-task and hidden assets (e.g., golden references). Using Kimi K3, ChipArc solves 89 of 92 tasks in CVDP's non-commercial agentic code-generation subset at the lowest mean model cost per pass among the evaluated systems. On the 43 verifier-valid ChipBench Verilog-generation tasks, it solves a mean of 38 tasks, compared with 34 for ACE-RTL and 27 for MAGE. A controlled ablation shows the shared memory raises repair coverage by about 12%. Finally, we carry the same verifier-controlled discipline all the way to physical optimization of a GCD/RSA accelerator, reporting reductions in area, delay, and energy; a bounded formal gate also exposes a protocol bug that both the functional harness and a separate 24-test regression miss.

cs.AR↗

svlang-sdk: A Zero-Dependency Multi-Domain Compiler SDK for Modular VLSI Frontend Verification and EDA

VLSI frontend flows parse the same chip five times across SystemVerilog, UPF, SDC, SystemRDL/IP-XACT, and SystemC. Disconnected tools maintain separate elaboration graphs, cache stale state, and expose unstable C++ ABIs or text dumps, forcing brittle glue scripts while IDEs and AI agents stall on full-chip re-elaboration and megabyte JSON payloads. We present svlang-sdk, a 73,892-line zero-dependency C++23 (-fno-exceptions -fno-rtti) hardware compiler spine and frozen C11 SDK (libsvlang_sdk_c). Five acyclic layers separate: (0) a Salsa-style incremental query host (AnalysisHost/AnalysisSnapshot) with durability tiers, early cutoff, cooperative cancellation, and epoch-scoped arenas; (1) five pluggable frontends (SV, UPF 3.1, SystemC 3.0, SDC, RDL/IP-XACT) bound onto one dense EntityId graph with OpenUSD-style overlays and ExplainValueSource provenance; (2) a word-level SSA RTL netlist, immutable .svdb snapshots, Hydra-style merging views, and macro-aware AtomicChange refactoring; (3) a dual-plane ABI pairing 39 C11 symbols (zero leaked C++ _Z* symbols) with the header-only Apache Arrow C Data Interface and C++23, Python, Rust, and TypeScript bindings; and (4) LSP 3.17, MCP 2026-07-28, DAP v1.71, and Surfer WCP servers. Linking svlang-sdk deleted 16,351 duplicated frontend lines from our 88,254-line sv++ simulator, drives 436 lint rules in svlang-lint, and isolates a 42,472-line consolidation seam in our 159,225-line Rust formal verifier InFormal. On arm64 macOS, all 14 C++23 test suites pass under Debug, ASan+UBSan, TSan, and Release; comment edits hit early cutoff in 10 us with flat RSS across 1,000 epochs; Arrow exports 53,005 entities in 0.9 ms (37.3x faster than JSON); and four polyglot small-tool proofs each fit under 150 lines.

cs.AR↗

HARP: Rethinking ATPG-Augmented On-Chip Random Patterns to Enhance Test Efficiency

Increasing design complexity, coupled with the emerging trend of chiplet-based heterogeneous 3D integration, necessitates substantial improvements in test efficiency in terms of the number of ATPG patterns and/or test cycles. While test cost has been a major driver behind this, 3D integration with high I/O density may also benefit from reduced external pattern application. In this paper, we present \STAR, a hybrid test generation framework that addresses the above issue by using ATPG-augmented on-chip random patterns to achieve a significant reduction in ATPG pattern count as well as overall test cycles at equivalent fault coverage compared to the same hybrid flow with fully pseudo-random patterns. Each pattern takes its primary-input bits from ATPG and its state bits from an on-chip pseudo-random number generator (PRNG), and is applied without a per-pattern scan load or unload. We show that the insertion of appropriate Design-for-Test (DFT) logic, e.g., test points, can further enhance test efficiency. We specifically note that DFT-enabled ATPG-augmented random patterns alone can provide considerably high structural coverage (avg. $\sim$89\%), leaving a small subset of random-resistant faults to be covered by structural ATPG. We have implemented \STAR~as a standalone tool integrated into a commercial test automation tool flow. Experimental analysis on open-source benchmarks, including four AI accelerators, shows promising results with 33\% improvement on average in ATPG test patterns and an average of 27\% reduction in test cycles.

cs.AR↗