﻿# HARV-SoC: vectorized CNN speed depends on channels and memory layout

The HARV-SoC traffic-sign study exposes an RGB first-layer slowdown, different vectorization paths and limits on its reported overall speedups.

Author: Retrivium editorial team
Updated: 2026-11-05
Canonical URL: https://retrivium.ai/journal/harv-soc-vectorized-cnn-rgb-grayscale-layout-cycle-table/
Language: en

The [HARV-SoC TinyML study](https://zenodo.org/records/18703303) is a concrete example of vector instructions helping some convolution layers more than others. The record gives a June 2025 publication date, while its repository creation metadata is later. Its headline reports overall speedups of 1.80 for RGB and 2.05 for grayscale inputs. The full paper provides more useful detail than those ratios alone: the first RGB convolution actually becomes slower.

## The implementation behind the result

The [author-deposited paper](https://zenodo.org/records/18703303/files/Efficient%20TinyML%20Inference%20on%20a%20Fault-Tolerant%20RISC-V%20SoC%20with%20Vector%20Extension.pdf?download=1) describes a fault-tolerant RISC-V soft core synthesized for a Zynq FPGA. This is not a benchmark of a commercially fabricated processor or a language model. The port uses TensorFlow Lite Micro and a quantized traffic-sign classifier with images resized to 32 by 32 pixels.

Separate RGB and grayscale models share the remaining network architecture. After INT8 quantization, the reported accuracies are 98.90% and 99.06%, respectively. Those results concern this dataset and training setup; they do not establish that removing color preserves accuracy for arbitrary vision applications. The architecture also includes dense layers and output processing beyond the optimized convolution operations.

## Why a grayscale input can use the unit better

The vector register length is 32 bits, while register grouping allows longer logical operations. The convolution implementation uses 8-bit loads and 16-bit arithmetic, with grouping that can process up to 16 elements per instruction. Bias, requantization and activation remain scalar work.

The key distinction is contiguous storage. A single-channel image permits vectorization across neighboring horizontal positions. A multichannel input permits vectorization across channels at one position. RGB supplies only three channels, leaving much of the available grouping unused; the first convolution takes 206.37 million cycles in the vector version versus 199.96 million originally. Later layers have more channels, so this particular limitation becomes less important.

## Read the cycle table alongside the headline

The table lists total RGB execution as 1303.43 million versus 715.58 million cycles, and grayscale as 1215.49 million versus 572.30 million. Its printed speedup column nevertheless gives 1.80 and 2.05. Direct division of the displayed totals does not reproduce those labels exactly, particularly for grayscale. The ratios should therefore remain attributed headline values rather than silently becoming independently reconciled measurements.

Cycle savings also do not supply absolute application latency without a matching operating clock and execution boundary. The synthesis table contains maximum frequencies and dynamic-power estimates for several hardware configurations. Those are distinct from measured end-to-end energy. The general [inference benchmark method](/journal/inference-benchmark-method/) explains why the workload and timing interval must accompany a speedup.

## Performance and fault tolerance remain separate claims

The processor includes redundancy and error correction. The paper discusses earlier fault-injection studies, but these are not a new radiation qualification of the traffic-sign experiment. Likewise, additional logic and synthesis power estimates do not establish battery life, deployable memory capacity or a safety certification.

The practical contribution is a specific mapping between tensor layout and vector utilization: identify contiguous elements, check the channel count at each layer and retain the scalar remainder. [Software-stack reproducibility](/journal/software-stack-reproducibility/) adds the runtime and kernel version needed to interpret another implementation. This remains one author study; its abstract and deposited full text are two views of the same evidence, rather than independent replications.
