Papers
Topics
Authors
Recent
Search
2000 character limit reached

Digit-Serial Modulo Arithmetic

Updated 6 July 2026
  • Digit-serial modulo arithmetic is a computational method that decomposes operands into fixed-size digits, enabling localized modular reduction without full-word carry propagation.
  • It underpins efficient hardware architectures such as pipelined NTT accelerators, achieving improvements in speed, area savings, and reduced power consumption.
  • The approach also utilizes split-channel arithmetic to balance wide moduli into narrower channels, simplifying local processing while preserving dynamic range.

to=arxiv_search 天天中彩票和json {"query":"digit-serial modulo arithmetic modular arithmetic NTT carryless arithmetic residue channels", "max_results": 10} Digit-serial modulo arithmetic denotes forms of modular computation in which operands are decomposed into small digits or narrow residue components and processed locally rather than as single full-width words. In one hardware realization, a WW-bit operand is split into W/dW/d digits of dd bits and processed one digit per cycle through a pipelined datapath (Alexakis et al., 16 Jul 2025). In a complementary algebraic formulation, each digit position is treated as an independent residue, so addition becomes per-digit modular reduction and multiplication becomes coefficient convolution with local modular reduction and no carry propagation (Applegate et al., 2010). Specialized modulus families further extend the idea by replacing a wide residue channel, such as modulo (22n+1)(2^{2n}+1), with multiple narrower channels whose arithmetic is locally simpler (Jaberipur et al., 2024). A broader, representation-oriented line of work uses banks of residues modulo many small moduli and CRT-based reconstruction, illustrating how distributed modular channels can encode integer structure even when the objective is not arithmetic hardware (Nakasho, 5 Mar 2026).

1. Core meaning and formal scope

A hardware-centric definition appears in pipelined NTT acceleration, where digit-serial operation means that the design “operates on digits with size dd bits effectively splitting the initial words into W/dW/d digits.” If xx is a WW-bit operand, the implied digit decomposition is

x==0W/d1x2d,0x<2d.x=\sum_{\ell=0}^{W/d-1} x_\ell 2^{\ell d}, \qquad 0\le x_\ell < 2^d.

The input coefficients arrive digit by digit; butterfly arithmetic is implemented by digit-serial adders and subtractors; the multiplier consumes and emits values in the same digit-stream format; and the next operator directly accepts that stream without reconstructing a full WW-bit word (Alexakis et al., 16 Jul 2025).

An algebraic definition appears in carryless decimal arithmetic. If

W/dW/d0

with digits W/dW/d1, then carryless addition is

W/dW/d2

and carryless multiplication is

W/dW/d3

The first law is local digitwise modular reduction; the second is digit convolution followed by local coefficient reduction, with no carry chain between neighboring positions (Applegate et al., 2010).

These two formulations are not identical, but they share a common structural principle: arithmetic is organized around local modular processing on digits or channels, and long full-word carry propagation is avoided. This suggests that digit-serial modulo arithmetic is best understood as a family of modular-processing disciplines rather than a single algorithm.

2. Carry-free digitwise arithmetic as an algebraic model

Carryless decimal arithmetic provides a mathematically exact model of digitwise modular processing. The decisive formalization identifies a decimal string

W/dW/d4

with the polynomial

W/dW/d5

in

W/dW/d6

Under this correspondence,

W/dW/d7

where coefficient arithmetic is performed in W/dW/d8. Equivalently,

W/dW/d9

The interpretation explains why the operations are commutative, associative, and distributive, and it supplies a precise subtraction rule through digitwise dd0-complements. For example, the negative of dd1 is dd2, and

dd3

The same framework exposes the Chinese remainder decomposition

dd4

which extends coefficientwise to

dd5

Conceptually, carryless decimal arithmetic therefore splits into two independent digit-serial systems, one mod dd6 and one mod dd7, recombined by CRT (Applegate et al., 2010).

The model also shows how local modular processing changes the algebra. The units are only

dd8

There are many zero divisors, including

dd9

The zero divisors are exactly the “evenish” numbers, whose digits are all even, and the “fiveish” numbers, whose digits are all (22n+1)(2^{2n}+1)0 or (22n+1)(2^{2n}+1)1. Irreducibility rather than ordinary primality becomes the meaningful factorization notion. The CRT decomposition classifies the irreducibles as those for which exactly one component is irreducible and the other is a unit. The first few carryless primes are

(22n+1)(2^{2n}+1)2

and the paper derives the (22n+1)(2^{2n}+1)3-digit counting formula

(22n+1)(2^{2n}+1)4

Within the present topic, the importance of these results is not the decimal numerology itself, but the fact that a purely local digitwise rule admits a complete ring-theoretic treatment.

3. Homogeneous digit-serial modulo arithmetic in pipelined NTTs

A full hardware realization appears in pipelined NTT accelerators for FHE. The target modulus is (22n+1)(2^{2n}+1)5, the coefficient width is

(22n+1)(2^{2n}+1)6

and the architecture processes one (22n+1)(2^{2n}+1)7-bit digit per cycle while preserving a pipelined streaming datapath. The defining feature is homogeneity: addition, subtraction, multiplication, buffering, and inter-stage transfers all use the same digit-serial format, so the design never has to reassemble a full (22n+1)(2^{2n}+1)8-bit word between operators merely to perform modular correction or reduction. In a multipath architecture, the design can be arranged so that

(22n+1)(2^{2n}+1)9

under a 256-bit/cycle interface budget, with an example configuration of 8 paths dd0 32-bit digits (Alexakis et al., 16 Jul 2025).

The arithmetic core is the radix-2 butterfly

dd1

written in the stage form

dd2

The method is built on Montgomery arithmetic. For radix dd3, with dd4, the Montgomery form is

dd5

and Montgomery reduction is

dd6

If the operands and twiddle are already in Montgomery form, then

dd7

followed by Montgomery reduction to remain in Montgomery representation (Alexakis et al., 16 Jul 2025).

The key enabler of homogeneous streaming is redundant range representation: dd8 The analysis shows that if all stage inputs lie in dd9 and

W/dW/d0

then the add-multiply output also lies in W/dW/d1. For subtraction, the branch is aligned with the same range by replacing

W/dW/d2

with

W/dW/d3

which does not change the residue class modulo W/dW/d4 but forces the representative into the range required by the common multiplier pipeline. The result is that no intermediate stage requires a final modular correction, so no inter-stage full-word normalization is needed (Alexakis et al., 16 Jul 2025).

The systolic digit-serial Montgomery multiplier contains W/dW/d5 processing elements. Each PE is pipelined, each has single-cycle throughput and four-cycle latency, and each performs an effective shift by W/dW/d6, so across W/dW/d7 PEs the design realizes the total division by

W/dW/d8

Stage buffers are digitized accordingly: a word-level stage buffer holding W/dW/d9 words becomes

xx0

entries of xx1 bits each. The method therefore integrates arithmetic, timing, and storage around a single digit granularity.

4. Split-channel arithmetic for special moduli

A different but closely related line of work treats digit-seriality as width decomposition across residue channels. The motivating example is the modulus

xx2

which augments the balanced RNS set

xx3

but introduces a residue channel of about double the bit-width of the others. The proposed solution is to replace the single wide channel by two complex-valued xx4-bit channels using

xx5

The replacement therefore preserves both the dynamic range contribution of xx6 and the coprimality structure required by the augmented moduli set (Jaberipur et al., 2024).

The conversion between the wide channel and the split channels is immediate. Writing

xx7

one obtains

xx8

The paper characterizes this mapping as “immediate and cost-free,” because it is achieved by reinterpretation of bit fields rather than by a substantive arithmetic network. Reverse conversion is similarly algebraic. For example, if

xx9

then the corresponding modulo-WW0 residue is

WW1

An analogous formula holds for products (Jaberipur et al., 2024).

The adder and multiplier are designed directly over the split channels. For addition, the output is again expressed in stored-borrow and stored-carry form,

WW2

with intermediate sums

WW3

and correction bits

WW4

For multiplication, the reduced form is

WW5

where

WW6

The importance of these formulas for digit-serial thinking is that one difficult WW7-bit modular datapath is replaced by two regular WW8-bit channels plus 1-bit correction metadata.

5. Performance characteristics and design tradeoffs

The NTT accelerator work makes the hardware tradeoffs explicit. Smaller digits reduce combinational complexity per stage and shorten the critical path, but they increase the number of digits per operand, the number of PEs per multiplier, and buffer expansion by a factor of WW9. Under equal bandwidth constraints, the architecture uses

x==0W/d1x2d,0x<2d.x=\sum_{\ell=0}^{W/d-1} x_\ell 2^{\ell d}, \qquad 0\le x_\ell < 2^d.0

so the total execution time in cycles remains nearly constant as x==0W/d1x2d,0x<2d.x=\sum_{\ell=0}^{W/d-1} x_\ell 2^{\ell d}, \qquad 0\le x_\ell < 2^d.1 changes. For x==0W/d1x2d,0x<2d.x=\sum_{\ell=0}^{W/d-1} x_\ell 2^{\ell d}, \qquad 0\le x_\ell < 2^d.2 bits and NTT sizes from 128 to 1024 points, the reported bandwidth-matched configuration of 8 paths x==0W/d1x2d,0x<2d.x=\sum_{\ell=0}^{W/d-1} x_\ell 2^{\ell d}, \qquad 0\le x_\ell < 2^d.3 32-bit digits reaches 600 MHz versus 400 MHz for the compared Proteus design, a 33% increase, with area savings of about 7.9% to 8.7% and power savings of about 25% to 36%. For a 1024-point NTT, reducing the digit size from 128 bits to 16 bits “nearly doubles the maximum clock frequency” while increasing area by about 33% (Alexakis et al., 16 Jul 2025).

The split-channel x==0W/d1x2d,0x<2d.x=\sum_{\ell=0}^{W/d-1} x_\ell 2^{\ell d}, \qquad 0\le x_\ell < 2^d.4 work emphasizes a different tradeoff: width balance across channels. Augmenting the set x==0W/d1x2d,0x<2d.x=\sum_{\ell=0}^{W/d-1} x_\ell 2^{\ell d}, \qquad 0\le x_\ell < 2^d.5 with x==0W/d1x2d,0x<2d.x=\sum_{\ell=0}^{W/d-1} x_\ell 2^{\ell d}, \qquad 0\le x_\ell < 2^d.6 increases the dynamic range by around 70%, but the single wide residue channel is “counter-productive” for speed balance. Replacing it by x==0W/d1x2d,0x<2d.x=\sum_{\ell=0}^{W/d-1} x_\ell 2^{\ell d}, \qquad 0\le x_\ell < 2^d.7 preserves the dynamic range while restoring narrow-channel regularity. On Spartan-7S100 FPGA, the proposed unified moduli-x==0W/d1x2d,0x<2d.x=\sum_{\ell=0}^{W/d-1} x_\ell 2^{\ell d}, \qquad 0\le x_\ell < 2^d.8 adder and multiplier are synthesized with particular emphasis on x==0W/d1x2d,0x<2d.x=\sum_{\ell=0}^{W/d-1} x_\ell 2^{\ell d}, \qquad 0\le x_\ell < 2^d.9, for which the 6-bit LUT structure is favorable. The experiments show that the moduli-WW0 add and multiply operations are advantageous versus moduli-WW1 in speed, cost, and energy measures and collectively better than those of modulo-WW2. The same study also reports that, to cover all the 32-bit numbers, the power-of-two channel can be widened to 12 bits with no harm to the speed balance across the five moduli (Jaberipur et al., 2024).

Taken together, these results show two recurring design principles. First, digit size is a tunable variable trading off frequency, area, and buffering in a homogeneous pipeline. Second, difficult wide moduli can sometimes be replaced by multiple narrow channels whose local arithmetic is simpler and more balanced.

6. Adjacencies, misconceptions, and limits of the term

Digit-serial modulo arithmetic is not exhausted by hardware pipelines, but not every modular decomposition is a digit-serial arithmetic method in the engineering sense. Carryless arithmetic is highly relevant because it gives a rigorous algebraic model of per-digit modular processing without carry propagation, and its multiplication law is exactly coefficient convolution over a residue ring. At the same time, it does not discuss hardware architecture, pipelining, latency, area, timing, digit-serial circuit design, systolic convolution, or modular reduction algorithms in the engineering sense (Applegate et al., 2010).

A second nearby area is distributed modular representation in machine learning. IntSeqBERT represents each integer using a continuous log-scale magnitude embedding together with sin/cos modulo embeddings for 100 residues, namely moduli WW3 through WW4, fused by FiLM inside a dual-stream Transformer. Its CRT-based solver reconstructs candidate integers from predicted magnitude, sign, and residue distributions, and the analysis reports a strong negative correlation between NIG and Euler’s totient ratio,

WW5

This work is directly relevant to modular decomposition, per-modulus processing, and CRT-based recombination, but it does not discuss digit-serial residue update formulas, carry-save or digit-recurrence circuits, latency/throughput/area models, or exact modular multiplication pipelines (Nakasho, 5 Mar 2026).

A common misconception is therefore to treat all modular channelizations as instances of the same idea. The sources support a sharper distinction. Carryless arithmetic is an algebraic foundation for local digitwise modular computation. Homogeneous digit-serial NTT design is a full hardware discipline in which arithmetic operators, buffers, and inter-stage transfers all share a common small-digit format. Split-channel arithmetic for WW6 is a width-reduction technique that is highly suggestive for digit-sliced or pipelined implementation, even though the reported architecture is combinational rather than serial. This suggests that the subject spans algebra, arithmetic architecture, and residue decomposition, with the unifying feature being local modular processing on digits or channels rather than word-level normalization after every operation.

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Digit-Serial Modulo Arithmetic.