arXiv:2610.39268cs.AROct 2026

Manuscript Offprint

arXiv:2610.39268

Energy-Efficient FPGA Implementation of an End-to-End Cosine-Domain CNN Using High-Level Synthesis

Sana Fatima, Ab Al-Hadi Ab Rahman, Ibrahim Yousef Alshareef, Farhad Khodadadi, Nuzhat Khan

Abstract

The computational cost of conventional Convolutional Neural Networks (CNNs) limits their deployment in low-power devices for high-speed edge AI applications. This paper presents an end-to-end cosine-domain CNN (CD-CNN) architecture for energy-efficient FPGA inference using high-level synthesis (HLS). The proposed architecture performs intermediate feature extraction using real-valued DCT-domain representations, avoiding complex-valued arithmetic and intermediate inverse transforms between spectral layers. The design is implemented on a Xilinx Kintex UltraScale+ XCKU5P FPGA and evaluated against a fully spectral Fourier-domain CNN (FD-CNN) under consistent network and implementation constraints. Experiments on the MNIST and 94-class ASCII datasets show that the CD-CNN reduces normalized resource utilization and improves inference throughput on both datasets. Its energy efficiency reaches 112.91 frames/J for MNIST and 101.27 frames/J for ASCII, corresponding to improvements of 1.51× and 2.76×, respectively, over the fully spectral FD-CNN architecture. Furthermore, compared to the previous GPU-based fully spectral CD-CNN implementation, the proposed end-to-end FPGA implementation improves energy efficiency by 12.96×. These results demonstrate the potential of real-valued spectral processing in the DCT domain for energy-efficient edge AI deployment.

Keywords: Discrete Cosine Domain, Convolutional Neural Network, Field Programmable Gate Arrays, High-Level Synthesis, Energy Efficiency

1. Introduction

The rapid advancement of artificial intelligence (AI) has led to the widespread integration of deep learning models across numerous edge applications. Driven by architectural advances, convolutional neural networks (CNNs) have become a common choice for image and signal processing tasks [1, 2]. However, executing these computationally intensive networks on resource-constrained hardware introduces significant design challenges.

General-purpose computing platforms, including graphics processing units (GPUs), can incur substantial power overhead, while central processing units (CPUs) may not meet the throughput requirements of some CNN workloads. Although application-specific integrated circuits (ASICs) can provide high efficiency, their development cost and design time can be prohibitive. Field-programmable gate arrays (FPGAs) offer a flexible platform for CNN acceleration through parallel processing and application-specific hardware optimization.

Efficient edge acceleration therefore requires algorithms that operate within limited resource and energy budgets. Conventional CNNs rely on sliding-window convolution,

which can impose substantial computational and data-movement costs. To reduce convolutional overhead, previous studies have proposed spectral CNNs (SpCNNs) that use element-wise multiplication in a transformed domain [3, 4]. Among spectral transforms, the Fast Fourier Transform (FFT) has been widely used in prior work [5, 6, 7, 8], partly because of its integration with deep-learning frameworks and optimized implementations [9]. Previous Fourier-domain CNN (FD-CNN) FPGA implementations [10, 11, 12, 8, 13, 14, 15, 16] have predominantly used register-transfer-level (RTL) design. RTL can provide fine-grained hardware control, but it requires substantial development effort. Therefore, this work uses high-level synthesis (HLS) to streamline hardware development while evaluating the resulting implementation at the lower level.

However, FFT-based models generally use complex-valued data, increasing arithmetic and storage requirements in constrained hardware [14]. In contrast, the discrete cosine transform (DCT) uses real-valued coefficients and can therefore reduce the overhead associated with complex-valued processing [17]. A key challenge in SpCNNs is the repeated transformation between spatial and spectral domains, which can offset the benefits of spectral convolution. This work adopts a fully spectral DCT-domain CNN algorithm that integrates DCT-ReLU and Layer Adaptive Spectral Pooling (LASP), introduced by Alshareef et

*Corresponding author Email address: hadi@utm.my (Ab Al-Hadi Ab Rahman) al. [18, 19]. This approach maintains intermediate feature representations in the DCT domain while retaining a lightweight network architecture.

Despite advances in DCT-domain CNN algorithms, their end-to-end realization on FPGA hardware remains an important implementation challenge. An effective hardware implementation must integrate input transformation, spectral feature extraction, activation, pooling, intermediate data storage, and classification while accounting for the resource and timing constraints of the target device. Furthermore, the hardware implications of real-valued DCT-domain processing have not been sufficiently established through a controlled comparison with fully spectral Fourier-domain implementations under consistent implementation conditions. This work addresses these gaps by implementing an end-to-end CD-CNN using HLS and evaluating its hardware characteristics against a corresponding FD-CNN on the same FPGA platform. To the best of our knowledge, this work presents the first end-to-end, fully spectral CD-CNN implementation on an FPGA using HLS.

The main contributions of this paper are as follows:

(1) An HLS-based hardware architecture for fully spectral DCT-domain CNN inference, integrating input transformation, real-valued spectral convolution, DCT-ReLU, LASP, on-chip feature-map buffering, and fully connected classification without intermediate inverse transforms.

(2) An evaluation of the proposed CD-CNN against a fully spectral FD-CNN under consistent network configurations and implementation conditions, quantifying the differences in FPGA resource utilization, inference throughput, power consumption, and energy efficiency.

(3) An evaluation on MNIST and a 94-class ASCII dataset, demonstrating the classification performance and hardware efficiency of the proposed architecture across two classification tasks.

The remainder of this paper is organized as follows: Section 2 reviews related work. Section 3 describes the methodology. Section 4 presents the experimental results, Section 5 compares the proposed architecture with previous works, and Section 6 concludes the paper.

References (21)