arXiv:2610.25528cs.AROct 2026

Manuscript Offprint

arXiv:2610.25528

Heuristic-Driven Resource Optimization for Decoupled Memory Channels on FPGAs

Arnab A. Purkayastha, Shobhit Aggarwal, Jay Tharwani

Arnab A Purkayastha*, Shobhit Aggarwal†, Jay Tharwani‡

*Western New England University, Member IEEE, Springfield, MA, USA

Email: arnab.purkayastha@wne.edu

† Department of ECE, The Citadel, Charleston, NC, USA

shobhit.aggarwal@citadel.edu

‡ Senior Member IEEE, Morrisville, NC, USA

Email: jtharwan@alumni.uncc.edu

Abstract—Determining OpenCL channel depths for Decoupled Access-Execute (DAE) architectures in High-Level Synthesis (HLS) is critical for balancing performance and hardware efficiency. Conventional static analysis tools often over-provision these memory channels to ensure performance safety, leading to significant resource stranding. This paper presents an expansion of an LLVM-based static analysis framework-originally proposed for automated DAE generation, by introducing a hardware-aware refinement layer. We identify a counter-intuitive Performance Inversion Paradox linked to baseline memory stalls, where high-stall, grid-based kernels reach peak performance at minimal channel depths and suffer up to a 61% throughput degradation when depths are increased. We propose a Heuristic Refinement Layer that optimizes OpenCL channel depths based on this correlation between baseline stalls and performance saturation. Experimental results demonstrate that our expanded framework successfully identifies the Minimal Peak Performance point across various benchmarks. By avoiding the performance traps of standard over-provisioning, we achieve a 2.52× improvement in Resource Efficiency (η) for an illustrative HotSpot application. This approach maintains peak execution speedup while ensuring the leanest possible hardware profile, outperforming conservative tool-based static predictions.

Keywords—Hardware Accelerators, Reconfigurable Computing, FPGA, OpenCL, LLVM, Automation tool.

I. INTRODUCTION

The rapid evolution of High-Level Synthesis (HLS) has transformed the landscape of FPGA-based hardware design, enabling developers to abstract complex spatial architectures using high-level languages like C, C++, and OpenCL. By automating the transition from software algorithms to hardware description, HLS has significantly lowered the barrier to entry for accelerating data-intensive workloads in domains such as genomics, finance, and artificial intelligence. However, despite the massive parallel processing capability provided by modern FPGA fabrics, achieving peak theoretical performance remains an elusive goal due to the memory wall. As highlighted in architectural studies, the memory wall represents a fundamental performance gap where the data-consumption rate of the internal logic far outpaces the rate at which the memory subsystem can supply that data [1].

In the context of FPGAs, this gap is uniquely challenging; unlike traditional CPUs that rely on deep, fixed cache hierarchies to mitigate latency, FPGAs require designers to manually or semi-automatically orchestrate data movement. When memory-bound applications are ported to FPGAs, the execution pipelines often spend a majority of their operational cycles in a stalled state, waiting for high-latency DRAM transactions to complete. This under-utilization of the FPGA's computational resources negates the energy-efficiency and throughput benefits that hardware acceleration is intended to provide. Consequently, the primary challenge in modern HLS design is not just the implementation of the computational logic, but the engineering of sophisticated memory-interfacing structures that can effectively bridge this wall.

To quantify the impact of the memory wall, we characterized three representative benchmarks on an Intel Arria 10 FPGA. As shown in Table I, the baseline (non-decoupled) versions of these kernels suffer from significant memory-related inactivity. These stall percentages represent a massive under-utilization of the FPGA's computational resources. For instance, in the HotSpot kernel, the execution engine is idle for over three-quarters of its operational cycles, waiting for memory transactions to complete. This empirical evidence highlights that the primary bottleneck is not the compute logic itself, but the lack of an efficient data-supply mechanism.

Table I: Baseline Memory Stall Characterization

BenchmarkDomainAccess PatternStalls (%)
HotSpotPhysics SimulationRegular (Grid)76.8%
BFSGraph AnalyticsIrregular (Sat.)40.7%
RangeKDatabase SearchVariable (Bursty)3.01%

To navigate the constraints of the memory wall, the OpenCL standard for FPGAs provides a specialized

© 2026 IEEE. Personal use of this material is permitted. Permission from IEEE must be obtained for all other uses, in any current or future media, including reprinting/republishing this material for advertising or promotional purposes, creating new collective works, for resale or redistribution to servers or lists, or reuse of any copyrighted component of this work in other works. Accepted version of the paper published in the 2026 IEEE International Conference on Interdisciplinary Approaches in Technology and Management for Social Innovation (IATMSI). DOI: 10.1109/IATMSI68868.2026.11465435 abstraction known as Pipes or Channels. As described in [1], [2], these channels facilitate high-bandwidth, point-to-point communication between concurrent kernels, allowing data to be streamed directly between logic blocks without the overhead of returning to global memory. This capability is foundational for implementing the DAE framework, a hardware architecture specifically designed to mitigate memory latency.

In a DAE system, the computational kernel is partitioned into two distinct units: the Access unit and the Execute unit. The Access unit is dedicated solely to calculating memory addresses and issuing read/write requests to DRAM, while the Execute unit focuses on the core algorithmic operations. By separating these concerns, the Access unit can run ahead of the computation, prefetching data into FIFO-based channels. This creates a producer-consumer relationship where the Execute unit pulls data from a ready buffer rather than waiting on high-latency memory transactions. When properly implemented, this decoupling allows the FPGA to overlap memory communication with computation, effectively hiding the latency that would otherwise stall the execution pipeline.

While DAE is effective, manual partitioning is complex. Recent work introduced an LLVM-based toolchain to automate this process at the Intermediate Representation (IR) level [1]. By analyzing data-flow graphs, this tool automatically identifies predictable access patterns. However, a significant limitation remains: the tool does not give the optimal channel depth. The onus thus lies on the designer/ programmer who generally default to a one-size-fits-all channel depth (typically 64) for any complex indexing. This over-provisioning leads to Resource Stranding, where physical Block RAM (BRAM) is occupied but provides no additional performance gain, as many kernels reach performance saturation at much lower depths.

This paper extends the foundational LLVM-based DAE work by introducing a Stride Classification logic and a Heuristic-Driven Optimization Layer. We propose that by analyzing the baseline stall characteristics identified in Table I, we can right-size channel depths to achieve a pareto-optimal trade-off.

In summary, the key contributions of this work are as follows:

• Expanded LLVM Toolchain: An enhanced DAE framework expanded with a stride classifier engine, heuristic refinement logic, and full support for modern opaque pointers.

• Performance Inversion Discovery: Identification of a counter-intuitive Stall-Performance Correlation, proving that over-provisioning OpenCL channels in bandwidth-saturated kernels leads to performance drop.

• Efficiency Optimization: A refinement methodology metric achieving improvement in Resource Efficiency right-sizing channels to their minimal peak-performance depth.

All our source codes are reproducible and freely available to download. 1^{1}