arXiv:2610.01867cs.AROct 2026

Manuscript Offprint

arXiv:2610.01867

ZTA-Q: an Open-source RISC-V Platform for Accurate Quantized CNN Inference

Yike Li, Ajay Kumar M, Vishnu PS, Dimitrios S. Nikolopoulos, Bo Ji, Hans Vandierendonck, Deepu John

Yike Li*, Ajay Kumar M*, Vishnu PS*, Dimitrios S. Nikolopoulos†, Bo Ji‡, Hans Vandierendonck§, Deepu John*

*University College Dublin, Ireland †Virginia Tech, USA §Queen's University Belfast, UK

Abstract—Low-precision inference is widely adopted in edge AI to reduce computational cost and memory footprint. However, existing open-source accelerator platforms provide limited end-to-end support for CNNs following the standard TensorFlow Lite integer inference scheme. This paper presents ZTA-Q, an open-source RISC-V-based platform that enables accurate deployment of TensorFlow Lite INT8 models. In addition to extending operator support, ZTA-Q provides a configurable post-processing datapath for studying how circuit-level approximations, including reduced multiplier precision, shared shift scaling, and simplified rounding, affect model accuracy. The proposed system is implemented on a Digilent Arty A7-100T FPGA and operates at 83.3 MHz. Evaluations on representative CNN models show that with LUT, register, and DSP overheads of 26.3%, 12.6%, and 150%, respectively, ZTA-Q limits the degradation in both top-1 and top-5 accuracy to within 0.25 percentage points.

Index Terms—Deep Learning, Hardware accelerators, RISC-V, Quantization, FPGA

I. INTRODUCTION

AI applications at the edge, such as autonomous vehicles and surveillance cameras, must operate under strict constraints on area, power, and memory. To accelerate computation-intensive operators, recent systems increasingly combine RISC-V processors with dedicated neural processing units (NPUs), providing both general-purpose programmability and efficient tensor computation [1]. For open-source RISC-V SoCs, end-to-end model deployment typically involves three stages: a front-end model parser, a domain-specific middle-end compiler, and a target accelerator backend. Table I summarizes the deep learning frameworks, including PyTorch(torch), ONNX, TensorFlow(TF), Keras and Caffe, targeted by recent platforms. Several works [2]–[4] rely on third-party tools, such as ONNX Runtime [5], MLIR [6], or TVM [7], to import models from mainstream deep learning frameworks. Although this approach reduces development effort compared to an in-house parser, their multi-layer abstractions can make low-level hardware specification less explicit, which may complicate architectural exploration and extension.

Another limitation lies in the quantization flow, which converts wide accumulator values back to low-bitwidth activations after each layer. In [4], TVM-generated C code is executed entirely on the RISC-V cores, without a dedicated hardware implementation for quantization. Other platforms [2], [3], [8], [9] provide only partial support, implementing either per-tensor or per-channel quantization. These two schemes differ in the

This work was supported by Taighde Éireann – Research Ireland (22/US/3848), the National Science Foundation (2315851, 2106634), and the Department for the Economy, Northern Ireland (USI-226).

TABLE I DEEP-LEARNING FRAMEWORK AND QUANTIZATION SUPPORT ON OPEN-SOURCE RISC-V PLATFORMS

PlatformDL FrameIn-house ParserQuantization
Gemmini [2]ONNXXtensor
DIANA [8]/✓tensor
OpenGeMM [3]torch,ONNXXtensor
MARVEL [4]Keras,torch,TFX/
[10]Caffe✓tensor/channel
Marsellus [9]torch✓channel

granularity at which weight scales are assigned to the whole weight tensor or independently to each channel. The work in [10] integrates NVDLA [11], which provides both per-tensor and per-channel quantization schemes. However, only LeNet-5 and ResNet-18 are evaluated, partly due to the limited support for fully quantized model compilation in the NVDLA software stack.

To address these two limitations, we propose ZTA-Q, an open-source RISC-V-based CNN inference platform built upon ztachip [12]. Through software–hardware co-design, ZTA-Q supports standard TensorFlow Lite integer models and introduces a post-MAC quantization datapath with two-stage rounding, extending the original per-tensor implementation to both per-tensor and per-channel quantization. The main contributions of this work are summarized as follows:

  1. We redesign the quantization mapping in the ztachip parser and compiler to provide in-house support for both per-tensor and per-channel quantization. We further introduce a post-MAC datapath with two-stage rounding to implement both schemes directly within the acceleration engine.

  2. We provide a per-layer ablation study on how circuit-level approximations in the quantization flow, including reduced scale precision, shared shift scaling, and simplified rounding, affect inference accuracy and hardware cost.

We evaluate ZTA-Q on representative quantized CNN models, including LeNet-5, SqueezeNet1.1, MobileNetV1/V2, and ResNet-18/50. The proposed system is implemented on a Digilent Arty A7-100T board at 83.3 MHz. With our extended quantization scheme support, ZTA-Q achieves accuracy comparable to TensorFlow Lite, with less than 0.25 percentage points of accuracy degradation.