FPGA Implementation of Convolutional Neural Network for Real-Time Handwriting Recognition

Authors: Shichen Qiao, Haining Qiu, Lingkai Zhao, Qikun Liu, Eric J. Hoffman

Submitted to arXiv on 23 Jun. 2023
License: CC BY 4.0
Abstract

Machine Learning (ML) has recently been a skyrocketing field in Computer Science. As computer hardware engineers, we are enthusiastic about hardware implementations of popular software ML architectures to optimize their performance, reliability, and resource usage. In this project, we designed a highly-configurable, real-time device for recognizing handwritten letters and digits using an Altera DE1 FPGA Kit. We followed various engineering standards, including IEEE-754 32-bit Floating-Point Standard, Video Graphics Array (VGA) display protocol, Universal Asynchronous Receiver-Transmitter (UART) protocol, and Inter-Integrated Circuit (I2C) protocols to achieve the project goals. These significantly improved our design in compatibility, reusability, and simplicity in verifications. Following these standards, we designed a 32-bit floating-point (FP) instruction set architecture (ISA). We developed a 5-stage RISC processor in System Verilog to manage image processing, matrix multiplications, ML classifications, and user interfaces. Three different ML architectures were implemented and evaluated on our design: Linear Classification (LC), a 784-64-10 fully connected neural network (NN), and a LeNet-like Convolutional Neural Network (CNN) with ReLU activation layers and 36 classes (10 for the digits and 26 for the case-insensitive letters). The training processes were done in Python scripts, and the resulting kernels and weights were stored in hex files and loaded into the FPGA's SRAM units. Convolution, pooling, data management, and various other ML features were guided by firmware in our custom assembly language. This paper documents the high-level design block diagrams, interfaces between each System Verilog module, implementation details of our software and firmware components, and further discussions on potential impacts.

The papers around it, by date and closeness

Higher is closer to this paper; left is older. Lines join papers close to each other: groups of lines are sub-topics. Select a point to see why it is there. Back to the summary of this paper

How to read this map? Illustrated guide

Closest papers Prior work it builds on Papers that cite it

Papers around this one

Ranked by how close their title and abstract are to this paper’s. Select some to read them together.

Closest papers

  1. Very close
    Handwriting recognition system based on FPGA
    Y. Huang, Jianmin Wang, Shu Li · 2019 · Journal of Physics, Conference Series · Not summarized yet
    Abstract

    An FPGA-based handwriting recognition system is proposed in this paper, which uses convolutional neural network algorithm to realize the recognition of MNIST digital sets. Hardware design techniques including image cropping, convolution, activation functions, pooling, pipeline processing, and parallel processing of multiple convolution kernels are described. Using the characteristics of parallel computing of hardware circuits, the processing speed of the MNIST digital set detection system is accelerated. The proposed MNIST detection architecture is designed using the Verilog HDL and implemented in the Altera DE2 FPGA development board.

  2. Very close
    Efficient Implementation of a Lightweight AI Classification Model for Handwriting Detection on FPGA
    Mahdi Chavoshi, M. Z. Lighvan, Leili Mohammadkhanli · 2024 · East-West Design & Test Symposium · cited 1 time · Not summarized yet
    Abstract

    Handwriting recognition is a critical technology for applications like digital document processing and real-time transcription. This paper presents the implementation of a handwriting detection neural network on a Field-Programmable Gate Array (FPGA) to achieve high efficiency and low latency. First the neural network is trained using Keras in Python, and then a quantization algorithm is applied on the parameters of the trained model. The obtained lightweight Neural Network model is used to implement the Verilog model that will be used for the classifier deployment on FPGA. Using quantization and parallel processing strategies, the Network is optimized and then the obtained weights are used …

  3. Very close
    Design of handwritten digit recognition system based on FPGA
    Si-Yu Zhu, Hu Huang, Zhihong Hu et al. · 2021 · Other Conferences · cited 1 time · Not summarized yet
    Abstract

    Convolutional neural network(CNN) has achieved great success in various scenes of computer vision tasks. Nowadays, many computer vision applications need to be deployed on embedded devices. However, due to the huge amount of parameters and computation of CNN, many embedded devices are not competent for this requirement. Field programmable gate array(FPGA) has the characteristics of parallel computing and low power consumption, which makes it suitable for the deployment of the CNN model. In this paper, we use the high level synthesis(HLS) tool to design a convolution IP(Intellectual Property) core and a pooling IP core that can adapt to different kernel sizes and step sizes, and then deploy t…

  4. Very close
    Design and implementation of FPGA-based CNN algorithm for handwritten digit recognition
    Xiao-Ping Xu, Hong-Liang Fan, Fei-Yu Ma et al. · 2026 · International Conference on Cloud Computing, Performance Computing, and Deep Learning · Not summarized yet
    Abstract

    This project implements a CNN-based handwritten digit recognition system on an FPGA development board. A fully-connected neural network is first built and trained on the MNIST dataset using Python, after which the convolutional weights are extracted. A CMOS camera (OV5640, 5 MP) captures 0-to-9 handwritten images that are stored in on-chip ROM. The captured frames are converted to grayscale and binarized to simplify subsequent down-sampling, storage and computation. The core CNN inference is then executed in hardware through configurable convolution engines, and the final classification result is displayed on a VGA monitor (1024 × 720). The design targets a Zynq-7020 FPGA; all hardware modul…

  5. Very close
    Design and optimization of an on-chip Artificial neural network on FPGA for recognizing handwritten digits
    Rohit R. Kumbhar, P. Radhika, D. Mane · 2023 · 2023 International Conference on Recent Advances in Electrical, Electronics, Ubiquitous Communication, and Computational · cited 3 times · Not summarized yet
    Abstract

    Today's requirement for massive computation power and the inefficiency of deep learning applications are the significant drawbacks holding back the seamless integration of machine learning and deep learning in embedded systems. This paper aims to implement and optimize the neural network for handwritten digit recognition on low-power efficient FPGA devices. The comparative analysis of artificial neural architectures by varying the number of neurons in each layer is performed. This analysis comprises the accuracy of recognition with respect to the resource utilization of FPGAs. MNIST (Modified National Institute of Standards and Technology database) is used to test the neural network. For thi…

  6. Very close
    FPGA Implementation of CNN for Handwritten Digit Recognition
    Rui Xiao, Jun-Sheng Shi, Chao Zhang · 2020 · 2020 IEEE 4th Information Technology, Networking, Electronic and Automation Control Conference (ITNEC) · cited 28 times · Not summarized yet
    Abstract

    Convolutional neural networks (CNN) have been used very successfully in the field of handwritten digit recognition. CNN is difficult to deploy on the embedded platform because of its large computation, complex structure and frequent memory access. In this paper, a manual hardware-level design (i.e., RTL) CNN reconfigurable IP core method is proposed to construct the FPGA basic unit of the CNN structure. Reconfigurable convolution, pooling and fully connected modules in the CNN structure are designed. By setting the parameters of the reconfigurable modules and connecting these modules end-to-end, CNNs of different structure sizes can be quickly deployed. In the full connection module, using d…

  7. Very close
    RTL Design of a CNN-Based FPGA Accelerator for Handwritten Digit Recognition
    Vivek Rathi, Vedant Kulkarni, H. Ingle et al. · 2026 · 2026 6th International Conference on Emerging VLSI and Semiconductor Technology for AI and Computing Applications (EVST) · Not summarized yet
    Abstract

    Recognition of handwritten digits is necessary for applications such as document processing, banking operations, and mail classification. Even though software CNNs provide a high accuracy rate, their integration into embedded systems is restricted by their energy and computational demands. In this work, the implementation of a hardware accelerator based on a CNN for recognition of handwritten digits is proposed and its RTL-level simulation is performed. The target device is a Xilinx Kintex-7 xc7k325tffg900-2l FPGA. The architecture of a modified LeNet-5 CNN designed in Verilog and using fixedpoint arithmetic is used. After offline training in Python and conversion of the quantized weights an…

  8. Very close
    Handwritten Digit Recognition Using Low Latency Convolutional Neural Network Architecture
    Kalarani K., S. P, Prakadeesh T. V. · 2025 · 2025 International Conference on Computational Innovations and Engineering Sustainability (ICCIES) · Not summarized yet
    Abstract

    Convolutional Neural Networks (CNNs), a specialized type of feed-forward deep neural network, are widely used for efficient and accurate image recognition, playing a crucial role in various Artificial Intelligence applications. To meet the growing demand for low-power and area-efficient hardware accelerators, Field Programmable Gate Arrays (FPGAs) emerge as an ideal solution due to their high parallel processing capabilities, low power consumption, and remarkable flexibility. This work aims to implement a CNN architecture on an FPGA for handwritten digit recognition, achieving faster computation, low latency, and high accuracy. Techniques such as multi-input processing, zero pruning, maximum…

Prior work it builds on

  1. Related
    EMNIST: an extension of MNIST to handwritten letters
    Gregory Cohen, Saeed Afshar, J. Tapson et al. · 2017 · Computer Vision and Pattern Recognition · cited 840 times · Not summarized yet
    Abstract

    The MNIST dataset has become a standard benchmark for learning, classification and computer vision systems. Contributing to its widespread adoption are the understandable and intuitive nature of the task, its relatively small size and storage requirements and the accessibility and ease-of-use of the database itself. The MNIST database was derived from a larger dataset known as the NIST Special Database 19 which contains digits, uppercase and lowercase handwritten letters. This paper introduces a variant of the full NIST dataset, which we have called Extended MNIST (EMNIST), which follows the same conversion paradigm used to create the MNIST dataset. The result is a set of datasets that const…

  2. Related*
    SystemVerilog. Unified Hardware Design, Specification, and Verification Language
    · cited 404 times · Not summarized yet
  3. Related
    Dropout in Neural Networks Simulates the Paradoxical Effects of Deep Brain Stimulation on Memory
    S. Tan, R. Du, J. U. Perucho et al. · 2020 · bioRxiv · cited 16 times · Not summarized yet
    Abstract

    Neuromodulation techniques such as Deep Brain Stimulation (DBS) are a promising treatment for memory-related disorders including anxiety, addiction, and dementia. However, the outcome of these treatments appears to be paradoxical, as the use of these techniques can both disrupt and enhance memory even when applied to the same brain target. In this paper, we hypothesize that disruption and enhancement of memory through neuromodulation can be explained by the dropout of engram nodes. We used a convolutional neural network to classify handwritten digits and letters, applying dropout at different stages to simulate DBS effects on engrams. We showed that dropout applied during training improves t…

  4. Related
    A Survey: Time Travel in Deep Learning Space: An Introduction to Deep Learning Models and How Deep Learning Models Evolved from the Initial Ideas
    Haohan Wang, Bhiksha Raj · 2015 · arXiv.org · preprint, not peer reviewed · cited 36 times · Not summarized yet
    Abstract

    This report will show the history of deep learning evolves. It will trace back as far as the initial belief of connectionism modelling of brain, and come back to look at its early stage realization: neural networks. With the background of neural network, we will gradually introduce how convolutional neural network, as a representative of deep discriminative models, is developed from neural networks, together with many practical techniques that can help in optimization of neural networks. On the other hand, we will also trace back to see the evolution history of deep generative models, to see how researchers balance the representation power and computation complexity to reach Restricted Boltz…

  5. Related* A method it uses
    Gradient-based learning applied to document recognition
    Yann LeCun, L. Bottou, Yoshua Bengio et al. · 1998 · Proceedings of the IEEE · cited 64,138 times · Not summarized yet

Papers that cite it

  1. Related
    A Low-Latency Three-Phase ROI Cropping Architecture for Real-Time Single-Object Localization on FPGA
    In-Ho Gwon, Sang Yoon Park · 2026 · IEEE Access · Not summarized yet
    Abstract

    For real-time recognition of single objects captured by a camera, numerous studies have explored Field-Programmable Gate Array (FPGA)-based architectures for image cropping and resizing. However, most existing approaches mitigate the high variability of camera inputs by applying static Region of Interest (ROI) cropping or uniform resizing across all frames. Although these methods are fast and resource-efficient, their recognition accuracy varies significantly with the object’s size and position. This paper presents a three-phase cropping and resizing architecture optimized for single objects exhibiting distinct color contrast against a uniform background. The proposed design performs all cro…

How are these papers found?

We compare the title and abstract of this paper with those of every paper summarized on this site, and with the papers Semantic Scholar recommends, those it cites and those citing it (for a much-cited paper, its most recent citations and, from OpenAlex, the most cited ones). Among the prior work and the follow-ups, the papers that use each other in depth, a method it uses and the much-cited follow-ups come a little higher. The levels (very close, close, related) come from the similarity of the texts, not from a judgment of quality; * marks a paper without an abstract, compared by its title. The sentence under a paper is written by an AI from the two abstracts: check it in the papers. A paper marked not relevant by three readers leaves the list.

Updated on 4 November 2026.

The illustrated guide to the papers around a paper