Unit-magnitude verification for ternary computation circuits
A verification method using three counters and a validity predicate in digital circuits efficiently detects faults in unit-magnitude value sets with constant-time operation-agnostic fault detection and composability across parallel and distributed computation units, addressing inefficiencies in existing verification methods.
Patent Information
- Application Number
- US19/554447
- Authority / Receiving Office
- US · United States
- Patent Type
- Patents(United States)
- Current Assignee / Owner
- Filing Date
- 2026-03-02
- Publication Date
- 2026-12-01
- Estimated Expiration
- 2046-03-02
AI Technical Summary
Existing verification methods for digital circuits that perform computations are inefficient, costly, or require operation-specific check circuits, and lack a constant-time verification predicate that applies across arbitrary operations on a given data type with unique decomposition of operation history and composability across parallel and distributed computation.
A verification method using three counters (total, skip, and accumulator) and an optional weighted counter to detect faults in unit-magnitude value sets, with a validity predicate evaluated in constant time, enabling unique decomposition of operation history and composability across parallel and distributed computation units.
The method provides efficient, operation-agnostic fault detection with constant-time verification, unique decomposition of operation history, and composability across parallel and distributed computation units, while offering tamper resistance against software attacks.
Smart Images

Figure US12817742-D00000_ABST
Abstract
Description
BACKGROUND
[0001] Digital circuits that perform computations face challenges in verifying that operations execute correctly. Existing verification approaches include redundant execution, checksums, error-correcting codes, and algorithm-based fault tolerance. Redundant execution techniques such as dual modular redundancy and triple modular redundancy repeat computations, resulting in verification costs that equal or exceed the original computation cost. Checksums and error-correcting codes protect data at rest or in transit but do not verify that computations themselves execute correctly. Algorithm-based fault tolerance applies to specific matrix algorithms and requires knowledge of the algorithm being checked, with verification complexity that scales with problem dimension. Residue arithmetic and arithmetic error codes detect arithmetic errors using residue checks, but these approaches are probabilistic with certain error patterns aliasing to valid residues and remaining undetectable, operation-specific requiring different check circuits for different operations, and scale in complexity with operand width. Watchdog timers and heartbeat monitors verify system liveness but do not verify computation correctness. Verifiable computation techniques using cryptographic proof systems impose proving overhead of several orders of magnitude beyond the original computation cost and require specialized cryptographic machinery. Self-checking arithmetic logic units implement concurrent error detection using self-checking codes, but the check circuit design varies per operation with different parity predictors required for addition versus multiplication versus comparison, and the checker complexity scales with operand width. These existing approaches lack a constant-time verification predicate that applies across arbitrary operations on a given data type with unique decomposition of operation history and composability across parallel and distributed computation.SUMMARY
[0002] This summary is provided to introduce a selection of concepts in a simplified form that are further described below in the detailed description. This summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used as an aid in determining the scope of the claimed subject matter.
[0003] The present disclosure provides a verification method and apparatus for computation circuits that operate on unit-magnitude value sets, where every non-zero operation output has magnitude exactly one. The verification approach maintains three counters during computation: a total counter that increments for each operation presented, a skip counter that increments for each operation whose output is zero, and an accumulator that increments or decrements based on output polarity. A combinational validity checker evaluates three predicates on these counter values in a single clock period, independent of the number of operations accumulated, and indicates a fault condition when any predicate evaluates to false. The counter values admit a unique decomposition into the exact count of positive and negative outputs, enabling detection of corruption of counter values without aliasing. This verification operates at constant time regardless of circuit size or operation count, applies across arbitrary operations within the unit-magnitude domain without operation-specific modification, and supports additive composition of verification tuples across parallel computation units, temporally non-overlapping computation windows, and distributed computation nodes. An optional fourth weighted counter provides an independent verification channel through a sign vector mechanism that enables challenge-response attestation protocols. The counters are implemented in a power-on reset domain with no software write path, providing tamper resistance against software-based attacks on the verification state.
[0004] The foregoing general description of the illustrative embodiments and the following detailed description thereof are merely exemplary aspects of the teachings of this disclosure and are not restrictive.BRIEF DESCRIPTION OF FIGURES
[0005] Non-limiting and non-exhaustive examples are described with reference to the following figures.
[0006] FIG. 1A illustrates a block diagram of a verification subsystem architecture for a ternary computation circuit with four counters, according to aspects of the present disclosure.
[0007] FIG. 1B illustrates a block diagram of a three-counter verification subsystem architecture for a ternary computation circuit, according to an embodiment.
[0008] FIG. 2 illustrates a circuit diagram for a weighted sum counter mechanism in a binary encoding embodiment, according to aspects of the present disclosure.
[0009] FIG. 3A illustrates a block diagram of a verification subsystem configuration where all counters reset at power-on, according to an embodiment.
[0010] FIG. 3B illustrates a block diagram of a verification subsystem configuration with split reset domains, according to aspects of the present disclosure.
[0011] FIG. 3C illustrates a block diagram of a verification subsystem configuration where all counters are software-resettable, according to an embodiment.
[0012] FIG. 4 depicts a table illustrating a two-bit ternary encoding scheme and validity predicates, according to aspects of the present disclosure.
[0013] FIG. 5 depicts a table illustrating encoding independence of validity predicates for unit-magnitude verification, according to an embodiment.
[0014] FIG. 6 depicts a table illustrating a weighted sum mechanism for an expert consensus application, according to aspects of the present disclosure.DETAILED DESCRIPTION
[0015] The following description sets forth exemplary aspects of the present disclosure. It should be recognized, however, that such description is not intended as a limitation on the scope of the present disclosure. Rather, the description also encompasses combinations and modifications to those exemplary aspects described herein.
[0016] Computation circuits that perform operations producing output values from a unit-magnitude value set benefit from verification mechanisms that detect faults during operation. A unit-magnitude value set comprises at least a positive value, a negative value, and a zero value, where each non-zero value has magnitude exactly one. Examples of such value sets include ternary value sets containing negative one, zero, and positive one. Circuits operating on unit-magnitude value sets include ternary arithmetic logic units, ternary pooling circuits, ternary multiply-accumulate arrays, and other circuits where individual operations produce outputs constrained to the unit-magnitude value set.
[0017] Verification of computation correctness in unit-magnitude circuits proceeds by maintaining counters that accumulate information about operation outputs as computation proceeds. A total counter tracks the number of operations presented to the computation circuit. A skip counter tracks the number of operations producing zero-valued outputs. An accumulator tracks a signed aggregate of non-zero outputs, incrementing for positive outputs and decrementing for negative outputs. The counters accumulate as a side effect of computation without requiring re-execution of operations or knowledge of which specific operation type produced each output.
[0018] A validity predicate evaluated on the counter values determines whether the accumulated operation history is consistent with unit-magnitude outputs. The validity predicate comprises conditions on relationships between the counters, including a non-negativity condition, a boundedness condition, and a parity condition. When the validity predicate evaluates to true, the counter values are consistent with a sequence of unit-magnitude outputs. When the validity predicate evaluates to false, a fault has corrupted at least one counter value, and a fault condition is indicated.
[0019] The counter values admit a unique decomposition into an exact count of positive outputs and an exact count of negative outputs. Given the total counter, the skip counter, and the accumulator, the number of positive outputs equals half the sum of the difference between the total counter and skip counter plus the accumulator, and the number of negative outputs equals half the difference of the difference between the total counter and skip counter minus the accumulator. This unique decomposition property enables detection of any single counter-update fault without aliasing, as corruption of counter values produces a tuple that fails the validity predicate or yields a decomposition inconsistent with unit-magnitude outputs. The algebraic properties of the validity predicate, including the necessity and sufficiency of the three conditions and the unique decomposition, have been formally verified using SMT solver proofs over unbounded integers, confirming that these properties hold for counters of any width.
[0020] The verification method applies to any digital computation circuit whose operations produce unit-magnitude outputs, regardless of the specific operation types performed. Arithmetic operations, logic operations, comparison operations, and selection operations all produce unit-magnitude outputs when operating on unit-magnitude inputs, and the validity predicate applies identically across all such operation types without operation-specific modification. This operation-agnostic property distinguishes unit-magnitude verification from prior approaches that require operation-specific check circuits.
[0021] Evaluation of the validity predicate proceeds in constant time independent of the number of operations accumulated. The predicate conditions involve comparisons and arithmetic on counter values, not iteration over individual operation results. A combinational validity checker evaluates the predicate and asserts a validity output within a single clock period of the counter values being read. This constant-time evaluation property enables verification overhead that does not scale with computation size.
[0022] The verification method extends to include a weighted counter that accumulates a signed linear combination of non-zero outputs weighted by elements of a sign vector. The weighted counter increments or decrements based on an equivalence function of the output polarity and a corresponding sign vector element. The circuit-level implementation of the equivalence function is described with reference to FIG. 2. Two additional predicate conditions on the weighted counter, a boundedness condition and a parity condition, extend the validity predicate from three conditions to five conditions. The weighted counter provides a complementary verification channel that enables challenge-response attestation protocols and application-specific interpretations of the accumulated operation history.
[0023] Verification tuples comprising the counters are additively composable across parallel computation units, temporally non-overlapping computation windows, and distributed computation nodes. A composed tuple formed by component-wise addition of constituent tuples satisfies the validity predicate whenever each constituent tuple satisfies the validity predicate. This composition property enables aggregation of verification information across array-level, windowed, and distributed computation scenarios.
[0024] Referring to FIG. 1A, a verification subsystem architecture for a computation circuit whose individual operations produce output values from a unit-magnitude value set is shown. The architecture includes a ternary computation circuit 102, a verification subsystem 104, a predicate checker 106, and an attestation output 108. The ternary computation circuit 102 performs operations that produce output values from the unit-magnitude value set comprising at least a positive value, a negative value, and a zero value. The verification subsystem 104 receives signals from the ternary computation circuit 102 and maintains four counters that accumulate information about operation outputs.
[0025] The verification subsystem 104 maintains a total counter T that increments by one for each operation presented to the ternary computation circuit 102. The verification subsystem 104 maintains a skip counter S that increments by one for each operation whose output is the zero value. The verification subsystem 104 maintains an accumulator A that, for each non-zero output, increments by one when the output is the positive value and decrements by one when the output is the negative value. The verification subsystem 104 maintains a weighted counter B that, for each non-zero output, increments or decrements by one with direction determined by an equivalence function of a polarity of the output and a corresponding element of a sign vector. The verification subsystem 104 computes a derived value E equal to the difference between the total counter T and the skip counter S, representing the count of non-zero outputs.
[0026] With continued reference to FIG. 1A, the predicate checker 106 receives the counter values T, A, B, and S from the verification subsystem 104 and evaluates a validity predicate comprising five conditions. A first condition requires that the skip counter S is less than or equal to the total counter T. A second condition requires that an absolute value of the accumulator A is less than or equal to the difference E between the total counter T and the skip counter S. A third condition requires that a sum of the difference E and the accumulator A is even. A fourth condition requires that an absolute value of the weighted counter B is less than or equal to the difference E between the total counter T and the skip counter S. A fifth condition requires that a sum of the difference E and the weighted counter B is even. The predicate checker 106 evaluates these five conditions in constant time, operating as an O(1) checker independent of the number of operations accumulated.
[0027] Responsive to the validity predicate evaluating to false, the predicate checker 106 asserts a fault signal. The attestation output 108 receives the counter values T, A, B, and S along with a VALID signal from the verification subsystem 104 and the predicate checker 106. A tuple comprising the total counter T, the accumulator A, and the skip counter S admits a unique decomposition into an exact count of positive outputs and an exact count of negative outputs, as described previously.
[0028] The equivalence function that determines the direction of weighted counter B updates produces a first result when the polarity of the output and the corresponding element of the sign vector agree and produces a second result when the polarity of the output and the corresponding element of the sign vector differ. The weighted counter B increments when the equivalence function produces the first result and decrements when the equivalence function produces the second result. The sign vector is an external input to the verification subsystem 104 with no feedback path to the ternary computation circuit 102.
[0029] The accumulator A and the weighted counter B provide complementary fault detection such that neither is derivable from the other without knowledge of individual output values when the sign vector is non-degenerate and at least two of the individual output values are different from each other. A non-degenerate sign vector comprises at least one element having a first value and at least one element having a second value different from the first value. The output non-degeneracy condition requires that at least two of the individual output values are different from each other, as a uniform sequence of identical outputs causes the accumulator and the weighted counter to track in a fixed ratio regardless of the sign vector. This complementary property enables the weighted counter B to serve as an independent verification channel that detects faults not detectable by the accumulator A alone.
[0030] The verification subsystem 104 uses 64-bit counters for the total counter T, the skip counter S, the accumulator A, and the weighted counter B, providing capacity for approximately 1.8×1019 operations before overflow. The verification subsystem 104 operates with the ternary computation circuit 102 running at 125 MHz clock frequency as demonstrated in FPGA embodiments. The verification subsystem 104 maintains 10 independent four-component tuples, one per output stream, when verifying a ternary ALU with 10 output streams. The verification subsystem 104 is implemented as dedicated hardware counters and combinational logic in hardware embodiments, and is also implemented in software running on a CPU with software-maintained counters and software-evaluated predicates in software embodiments.
[0031] Referring to FIG. 1B, a three-counter verification subsystem architecture for a computation circuit whose individual operations produce output values from a unit-magnitude value set is shown. The architecture includes a ternary computation circuit, a verification subsystem, a predicate checker, and an attestation output. The ternary computation circuit performs operations that produce output values from the unit-magnitude value set comprising at least a positive value, a negative value, and a zero value. The verification subsystem receives signals from the ternary computation circuit and maintains three counters that accumulate information about operation outputs.
[0032] The verification subsystem maintains a total counter T that increments by one for each operation presented to the ternary computation circuit. The verification subsystem maintains a skip counter S that increments by one for each operation whose output is the zero value. The verification subsystem maintains an accumulator A that, for each non-zero output, increments by one when the output is the positive value and decrements by one when the output is the negative value. The verification subsystem computes a derived value E equal to the difference between the total counter T and the skip counter S, representing the count of non-zero outputs. The three-counter architecture omits the weighted counter B and the sign vector mechanism present in the four-counter architecture of FIG. 1A.
[0033] With continued reference to FIG. 1B, the predicate checker receives the counter values T, A, and S from the verification subsystem and evaluates a validity predicate comprising three conditions. A first condition requires that the skip counter S is less than or equal to the total counter T. A second condition requires that an absolute value of the accumulator A is less than or equal to the difference E between the total counter T and the skip counter S. A third condition requires that a sum of the difference E and the accumulator A is even. The predicate checker evaluates these three conditions in constant time, operating as an O(1) checker independent of the number of operations accumulated.
[0034] Responsive to the validity predicate evaluating to false, the predicate checker asserts a fault signal. The attestation output receives the counter values T, A, and S along with a VALID signal from the verification subsystem and the predicate checker. The three-counter architecture demonstrates that the core verification method functions with only the total counter T, the accumulator A, and the skip counter S and three associated predicates when weighted sum functionality is not required.
[0035] A tuple comprising the total counter T, the accumulator A, and the skip counter S admits a unique decomposition into an exact count of positive outputs and an exact count of negative outputs. Given the total counter T, the skip counter S, and the accumulator A, the number of positive outputs equals (E+A) / 2 and the number of negative outputs equals (E−A) / 2, where E equals the difference between the total counter T and the skip counter S. This unique decomposition property enables the subsystem to detect any single counter-update fault without aliasing based on the unique decomposition of the total counter, the accumulator, and the skip counter into the exact count of positive outputs and the exact count of negative outputs. Corruption of counter values produces a tuple that fails the validity predicate or yields a decomposition inconsistent with unit-magnitude outputs.
[0036] The three-counter system comprising the total counter T, the accumulator A, and the skip counter S is algebraically minimal for unit-magnitude verification. No subset of fewer than three counters supports all three predicates and the unique decomposition property. Dropping the skip counter S eliminates the skip / execute partition, making the boundedness constraint uncheckable because the difference E between the total counter and the skip counter cannot be determined. Dropping the accumulator A eliminates the unique decomposition, as the system can no longer distinguish a history of all positive outputs from all negative outputs. Dropping the total counter T eliminates the reference count against which both the skip counter S and the accumulator A are validated. The three-counter tuple is therefore the smallest counter set that provides the complete verification capability with unique decomposition of operation history.
[0037] The verification subsystem uses 32-bit counters for the total counter, the skip counter, and the accumulator, as demonstrated in hardware embodiments. The 32-bit counter width provides capacity for approximately 4×109 operations before overflow, suitable for applications with shorter attestation windows or lower operation counts. The verification subsystem also uses 64-bit counters in other hardware embodiments, as described previously, providing greater capacity for applications requiring longer continuous operation between attestation events.
[0038] The following paragraphs describe the circuit-level implementation of the weighted counter mechanism introduced previously with reference to FIG. 1A. The weighted counter B requires additional logic beyond the three-counter architecture to determine the direction of counter updates based on the sign vector.
[0039] Referring to FIG. 2, a circuit diagram for the weighted sum counter mechanism in a binary encoding embodiment is shown. The circuit implements the update logic for the weighted counter B based on output polarity and sign vector elements. The ternary computation circuit uses a two-bit binary encoding where 00 represents zero, 01 represents positive (+1), 10 represents negative (−1), and 11 is reserved and treated as zero.
[0040] The circuit includes a register 202 that stores output[1] representing the sign bit of the two-bit encoding. The circuit includes a register 208 that stores output[0] representing the zero bit of the two-bit encoding. A logic gate 210 performs an XNOR operation on output[1] from the register 202 and output[0] from the register 208 to produce an is_zero signal. The zero-detection circuit in the verification subsystem is implemented using the single XNOR gate 210 per operand when using the two-bit binary encoding. When the XNOR result equals one, the bits are equal, indicating a zero value (encoding 00) or a reserved value (encoding 11) treated as zero. When the XNOR result equals zero, the bits differ, indicating a non-zero computable value (encoding 01 for positive or encoding 10 for negative).
[0041] With continued reference to FIG. 2, the circuit includes a register 206 that stores sign_vector[i] representing one bit of an N-bit sign vector register. The register 206 storing the sign vector is a parallel external register with one bit per output stream and no feedback path to the ternary computation circuit. The sign vector register has a default reset value of an alternating pattern for the sign vector elements.
[0042] A logic gate 204 performs an XNOR operation on output[1] from the register 202 and sign_vector[i] from the register 206 to produce a b_dir signal that determines the direction of counter updates. The verification subsystem implements the weighted counter B update using the XNOR gate 204 that takes the output polarity bit and the sign_vector element as inputs. When the XNOR result from the logic gate 204 equals zero, the weighted counter B increments. When the XNOR result from the logic gate 204 equals one, the weighted counter B decrements. The equivalence function produces a first result when the polarity of the output (output[1]) and the corresponding element of the sign vector (sign_vector[i]) agree, and produces a second result when the polarity and the sign vector element differ. In binary encoding implementations, the equivalence function is implemented as an XNOR gate as shown in FIG. 2. In native three-level implementations, the equivalence function is implemented as a polarity comparator that directly compares the signal level against the sign vector element to determine agreement or disagreement.
[0043] A counter 212 labeled B receives the b_dir signal from the logic gate 204 for direction control and receives a negated is_zero signal from the logic gate 210 for enable control. The counter 212 increments or decrements based on the b_dir signal when the output is non-zero, as indicated by the negated is_zero signal being asserted. When the is_zero signal indicates a zero output, the counter 212 does not update, and the skip counter S increments instead.
[0044] The verification subsystem implements the weighted counter B update using a polarity comparator and conditional inverter or 2-to-1 mux when using native three-level circuits instead of the two-bit binary encoding. In native three-level implementations, the polarity is determined by direct comparison rather than bit extraction from output[1], and the conditional logic applies sign_vector[i] through the conditional inverter or mux to determine increment or decrement direction. The direction-selection function remains identical across both representations: the weighted counter B increments when the sign and polarity agree and decrements when the sign and polarity differ.
[0045] Referring to FIG. 3A, a block diagram of a verification subsystem 302 configuration where all four counters reset only at power-on is shown. The configuration implements an All-POR Domain architecture for the digital verification subsystem for a computation circuit whose individual operations produce output values from a unit-magnitude value set comprising at least a positive value, a negative value, and a zero value. The system includes a verification subsystem 302, a host 304, a POR signal 306, a clock (CLK) 308, and an attestation output 310.
[0046] The POR signal 306 provides a reset signal (RST) to the verification subsystem 302. The clock (CLK) 308 provides timing signals to the verification subsystem 302. The verification subsystem 302 contains a POR Domain that houses four counters arranged vertically: a total counter T, a skip counter S, an accumulator A, and a weighted counter B. The total counter T is configured to increment by one for each operation presented to the computation circuit. The skip counter S is configured to increment by one for each operation whose output is the zero value. The accumulator A is configured to, for each non-zero output, increment by one when the output is the positive value and decrement by one when the output is the negative value. The weighted counter B is configured to, for each non-zero output, increment or decrement by one with direction determined by an equivalence function of a polarity of the output and a corresponding element of a sign vector register.
[0047] With continued reference to FIG. 3A, the total counter T and the skip counter S are implemented in a power-on reset domain with no software write path and no software reset path. The accumulator A and the weighted counter B are also implemented in the power-on reset domain in the All-POR Domain configuration. The host 304 has a read-only connection to the verification subsystem 302 indicated by a dashed arrow labeled read, allowing the host 304 to read counter values but not write to the counter values. The host 304 does not have a software write path to set any counter to an arbitrary value. The host 304 does not have a software reset path to reset any counter.
[0048] The verification subsystem 302 includes a combinational validity checker configured to evaluate the validity predicate comprising the five conditions described previously with reference to FIG. 1A, and to assert a validity output within a single clock period of counter values being read.
[0049] The verification subsystem 302 provides the counter values T, A, B, and S to the attestation output 310. The attestation output 310 receives the counter values and a VALID signal from the verification subsystem 302. The verification subsystem 302 includes a host-writable sign vector register configured to store the sign vector, wherein the sign vector register has no feedback path to the computation circuit.
[0050] The POR signal 306 for the verification subsystem 302 is generated by wiring reset inputs to the FPGA's global configuration-time GSR (Global Set / Reset) signal, which asserts only during bitstream load. The GSR signal cannot be driven by any in-system logic, providing isolation from software-initiated reset commands. The verification subsystem 302 includes a one-shot POR latch register that initializes to 0 at bitstream load, latches to 1 on the first clock edge of the clock (CLK) 308, and has no software path to re-assert. The derived por_n signal from the one-shot POR latch register drives the asynchronous reset input of each counter register in the verification subsystem 302.
[0051] The verification subsystem 302 includes a fault latch implemented in the power-on reset domain. The fault latch is configured to be set by hardware when the combinational validity checker asserts an invalid validity output. The fault latch has no software write path, no software reset path, and no system reset path. Once set, the fault latch inhibits subsequent computation commands until power is removed and restored. No software action at any privilege level, including kernel-level, hypervisor-level, or firmware-level code, resets, modifies, or forges accumulated counter values or clears the fault latch.
[0052] The verification subsystem 302 is implemented on a Xilinx Kintex-7 XC7K325T FPGA on the Digilent Genesys2 platform. The verification subsystem 302 delivers results and attestation via 1G Ethernet using RGMII and UDP protocols. The All-POR Domain configuration provides software tamper resistance by ensuring that no software action resets, modifies, or forges counter values, as the sole mechanism to clear any counter to zero is removal and restoration of power or device reprogramming.
[0053] Referring to FIG. 3B, a block diagram of a verification subsystem configuration where the total counter T and the skip counter S are power-on reset only while the accumulator A and the weighted counter B are software-resettable is shown. The configuration implements a Split Domain architecture for the digital verification subsystem for a computation circuit whose individual operations produce output values from a unit-magnitude value set comprising at least a positive value, a negative value, and a zero value. The system includes a verification subsystem, a host, a POR signal, a clock, and an attestation output.
[0054] The POR signal provides a reset signal to the verification subsystem. The clock provides timing signals to the verification subsystem. The verification subsystem contains two domains: a POR Domain housing the total counter T and the skip counter S, and an rst_n Domain housing the accumulator A and the weighted counter B. The total counter T and the skip counter S are implemented in a power-on reset domain with no software write path and no software reset path, as described previously. The accumulator A and the weighted counter B are implemented in a software-resettable domain separate from the power-on reset domain.
[0055] With continued reference to FIG. 3B, the host has a read-only connection to the verification subsystem for reading counter values. The host issues a tabs_ab_reset signal to reset the accumulator A and the weighted counter B in the rst_n Domain. The tabs_ab_reset signal pulses for one clock cycle, zeroing the accumulator A and the weighted counter B. The total counter T and the skip counter S in the POR Domain are structurally unaffected by the tabs_ab_reset signal because the total counter T and the skip counter S reside in a separate always block with por_n in the sensitivity list. The accumulator A and the weighted counter B are resettable by a host command while the total counter T and the skip counter S remain unaffected by the host command.
[0056] The verification subsystem provides the counter values T, A, B, and S to the attestation output. The attestation output receives the counter values and a VALID signal from the verification subsystem. The combinational validity checker evaluates the validity predicate on the current counter values after a split-domain reset. The accumulator A and the weighted counter B reflect only the post-reset window, while the total counter T and the skip counter S reflect the full lifetime since power-on.
[0057] The Split Domain configuration provides windowed signed aggregation while the total counter T and the skip counter S track lifetime totals. After a split-domain reset, the validity predicate evaluates on the current counter values, verifying the current counter state for the current window's accumulation. The total counter T continues to increment monotonically across all test runs, confirming that the total counter T is never affected by software reset commands. The Split Domain configuration enables overflow management for the accumulator A and the weighted counter B between verification windows while the total counter T and the skip counter S continue accumulating operation counts since power-on.
[0058] Referring to FIG. 3C, a block diagram of a verification subsystem configuration where all four counters are software-resettable is shown. The configuration implements an All-Software Domain architecture for the digital verification subsystem for a computation circuit whose individual operations produce output values from a unit-magnitude value set comprising at least a positive value, a negative value, and a zero value. The system includes a verification subsystem, a host, an rst_n signal, a clock, and an attestation output.
[0059] The rst_n signal provides a reset signal to the verification subsystem. The clock provides timing signals to the verification subsystem. The verification subsystem contains an rst_n Domain that houses all four counters arranged vertically: a total counter T, a skip counter S, an accumulator A, and a weighted counter B. The total counter T is configured to increment by one for each operation presented to the computation circuit. The skip counter S is configured to increment by one for each operation whose output is the zero value. The accumulator A is configured to, for each non-zero output, increment by one when the output is the positive value and decrement by one when the output is the negative value. The weighted counter B is configured to, for each non-zero output, increment or decrement by one with direction determined by an equivalence function of a polarity of the output and a corresponding element of a sign vector register.
[0060] With continued reference to FIG. 3C, the host has a read-only connection to the verification subsystem for reading counter values. The host issues a tabs_reset signal to reset all four counters in the rst_n Domain. The tabs_reset signal pulses for one clock cycle, zeroing the total counter T, the skip counter S, the accumulator A, and the weighted counter B simultaneously. The tabs_reset signal provides a hardware reset-to-zero mechanism, not a data-write port, such that the host zeros the counters but does not set the counters to arbitrary non-zero values.
[0061] The verification subsystem provides the counter values T, A, B, and S to the attestation output. The attestation output receives the counter values and a VALID signal from the verification subsystem. The combinational validity checker evaluates the validity predicate on the current counter values, asserting a validity output within a single clock period of counter values being read.
[0062] The All-Software Domain configuration provides verification without tamper resistance. The algebraic verification properties hold identically regardless of reset domain. The validity predicate comprising the five conditions described previously with reference to FIG. 1A applies identically in the All-Software Domain configuration as in the All-POR Domain configuration and the Split Domain configuration.
[0063] The unique decomposition property holds in the All-Software Domain configuration. A tuple comprising the total counter T, the accumulator A, and the skip counter S admits a unique decomposition into an exact count of positive outputs and an exact count of negative outputs regardless of whether the counters reside in a power-on reset domain or a software-resettable domain. The additive composition property holds such that a composed tuple satisfies the validity predicate whenever each constituent tuple satisfies the validity predicate. The complementary fault detection property holds such that the accumulator A and the weighted counter B provide independent verification channels when the sign vector is non-degenerate and at least two of the individual output values are different from each other.
[0064] The All-Software Domain configuration enables fault recovery without power cycling. After a software reset, the counters restart from zero rather than stale state, enabling multi-window attestation where each window starts from a known-zero state. The All-Software Domain configuration enables verification in cooperative contexts including self-checking applications and trusted software stacks where tamper resistance is not required.
[0065] Referring to FIG. 4, a table 400 illustrating a two-bit ternary encoding scheme and O(1) validity predicate for unit-magnitude verification is shown. The table 400 includes six columns labeled Ternary Value, Encoding [1:0], XNOR (bit[1], bit[0]) zero predicate, Sign bit[1], A update, and B update (weight s[i]). The table 400 contains four rows corresponding to the four possible two-bit encodings that map the encoding [1:0] bits to XNOR results, sign bits, and A / B update operations for each ternary value.
[0066] A first row of the table 400 shows a ternary value of 0 (zero) with encoding 00. The XNOR result equals 1, indicating that the bits are equal and thus the value is zero. The sign bit equals 0. The A update column indicates no update to the accumulator A, with the skip counter S incrementing instead. The B update column indicates no update to the weighted counter B, with the skip counter S incrementing instead.
[0067] A second row of the table 400 shows a ternary value of +1 (positive) with encoding 01. The XNOR result equals 0, indicating that the bits differ and thus the value is a non-zero computable value. The sign bit equals 0. The A update column indicates that the accumulator A is assigned A plus 1. The B update column indicates that the weighted counter B is assigned B plus s[i], where s[i] equals +1 yields B+1 and s[i] equals −1 yields B−1.
[0068] With continued reference to FIG. 4, a third row of the table 400 shows a ternary value of −1 (negative) with encoding 10. The XNOR result equals 0, indicating that the bits differ and thus the value is a non-zero computable value. The sign bit equals 1. The A update column indicates that the accumulator A is assigned A minus 1. The B update column indicates that the weighted counter B is assigned B minus s[i], where s[i] equals +1 yields B−1 and s[i] equals −1 yields B+1.
[0069] A fourth row of the table 400 shows a reserved ternary value with encoding 11. The XNOR result equals 1, indicating that the bits are equal and thus the value is treated as zero. The sign bit equals 1. The A update column indicates no update to the accumulator A, with the skip counter S incrementing instead. The B update column indicates no update to the weighted counter B, with the skip counter S incrementing instead.
[0070] The XNOR zero predicate provides single-gate zero detection per operand in the two-bit binary encoding. When the XNOR operation on bit[1] and bit[0] produces a result of 1, the bits are equal, indicating either a zero value (encoding 00) or a reserved value (encoding 11) that is treated as zero. When the XNOR operation produces a result of 0, the bits differ, indicating a non-zero value that is either positive (encoding 01) or negative (encoding 10). The sign bit extraction from bit[1] determines the polarity of non-zero outputs, where bit[1] equals 0 indicates a positive output and bit[1] equals 1 indicates a negative output.
[0071] The zero-detection circuit in the verification subsystem is implemented using two threshold comparators per output stream operating in parallel when using native three-level signals, where one comparator detects the zero band and one determines polarity. In native three-level implementations, no bit extraction is required because the polarity is determined by direct comparison of the signal level against threshold values rather than by examining individual bits of a binary encoding.
[0072] Below the table 400, a box lists five predicates that constitute O(1) combinational logic on the total counter T, the accumulator A, the weighted counter B, and the skip counter S. The five predicates correspond to the five conditions of the validity predicate described previously with reference to FIG. 1A, evaluated on the total counter T, the accumulator A, the weighted counter B, and the skip counter S.
[0073] As described previously, evaluating the validity predicate is performed by combinational logic that asserts the fault signal within a single clock period of the total counter T, the accumulator A, and the skip counter S being read, independent of a number of operations accumulated. The five predicates involve comparisons and arithmetic operations on the four counter values that are evaluated by combinational logic without iteration over individual operation results. The predicate checker evaluates all five conditions in parallel and produces the validity output within a single clock cycle, providing constant-time verification regardless of how many operations have been accumulated in the counters.
[0074] Referring to FIG. 5, a table 500 illustrating encoding independence of the O(1) validity predicate for unit-magnitude verification is shown. The table 500 includes three columns with headers for Binary Encoding (two-bit) and Native Three-Level Signal implementations. The table 500 contains two rows addressing zero detection and the five predicates, demonstrating that the validity predicate holds identically regardless of the physical encoding used to represent ternary values.
[0075] For zero detection, the binary encoding column of the table 500 indicates an XNOR operation on bit[1] and bit[0] requiring one gate per operand, where bits equal indicates a skip condition. The native three-level signal column for zero detection specifies two threshold comparators per operand, where one comparator detects the zero band and one determines polarity. The zero-detection mechanism differs between the two encoding approaches, with the binary encoding using a single XNOR gate per operand and the native three-level signal using two threshold comparators per operand operating in parallel.
[0076] With continued reference to FIG. 5, for the five predicates row labeled O(1), both columns of the table 500 display the same five predicate conditions described previously with reference to FIG. 1A.
[0077] A note below the table 500 states that the five predicates hold for any physical encoding of negative one, zero, and positive one, and that the zero-detection mechanism differs by encoding while the verification algebra does not. The predicates depend on integer counter values rather than on the physical encoding of the computation outputs. The total counter T, the skip counter S, the accumulator A, and the weighted counter B accumulate integer values that satisfy the same algebraic relationships regardless of whether the underlying ternary values are represented using two-bit binary encoding or native three-level signals.
[0078] The encoding independence property is validated by co-simulation between a native-integer simulation path operating on native trit integers from the set containing negative one, zero, and positive one with sign determined by direct integer comparison rather than bit extraction, and a binary-encoded Verilog path using the two-bit encoding described previously. The co-simulation layer confirms bit-identical results between the native-integer simulation path and the binary-encoded Verilog path across all tested input combinations, demonstrating that the verification subsystem accumulates correctly from native values and produces identical validity predicate results regardless of encoding.
[0079] The false positive rate of the validity predicate, representing the probability that a random counter-update fault produces a tuple that passes all five constraints, is quantifiable from the algebra. For 64-bit counters with 106 operations, the false positive rate is approximately 3×10−27. For 64-bit counters with 109 operations, the false positive rate is approximately 3×10−21. For 32-bit counters with 106 operations, the false positive rate is approximately 5×10−8. The false positive rate scales with the ratio of the operation count squared to the counter range squared, providing detection strength that increases with counter width.
[0080] The verification method provides advantages over prior approaches including algorithm-based fault tolerance (ABFT), residue arithmetic, dual modular redundancy (DMR), triple modular redundancy (TMR), and self-checking ALU methods. The verification method is operation-agnostic, applying the same validity predicate regardless of which ternary operation produced the output, whereas ABFT, residue arithmetic, and self-checking methods require operation-specific check circuits. The verification method provides O(1) verification time independent of operation count, whereas ABFT and DMR / TMR scale with computation size. The verification method is exact for counter-update faults with no aliasing, detecting corruption of counter values without false negatives, whereas residue arithmetic has a fixed false positive rate of 1 / r for modulus r. The verification method provides unique decomposition of the operation history into exact counts of positive and negative outputs, a property not provided by ABFT, residue arithmetic, DMR / TMR, or self-checking methods. The verification method provides additive composition of verification tuples across parallel units, time windows, and distributed nodes, a property not provided by the prior approaches. The verification method incurs zero re-execution overhead because the counters accumulate as a side effect of computation, whereas DMR and TMR require repeating the computation. The verification method provides accumulated history tracking the full operation record since power-on, whereas self-checking methods detect errors in the current operation cycle without accumulated history.
[0081] Referring to FIG. 6, a table 600 illustrating the weighted counter B mechanism for an expert consensus application with sign_vector equal to 0xF0 is shown. The table 600 demonstrates how the sign vector enables application-specific interpretation of accumulated operation history without modification to the verification subsystem hardware. The table 600 includes five columns labeled Channel, s[i] (sign_vector bit), Vote v[i] where −1 equals false, 0 equals abstain, and +1 equals true, A contribution equal to v[i], and B contribution equal to s[i] multiplied by v[i].
[0082] The table 600 shows eight channels labeled Ch 0 through Ch 7, representing eight voter channels in the expert consensus application. The sign vector value of 0xF0 in hexadecimal corresponds to binary 11110000, where channels Ch 4 through Ch 7 have sign_vector bits equal to 1 and channels Ch 0 through Ch 3 have sign_vector bits equal to 0. The sign_vector partitions the channels into two groups: channels Ch 4 through Ch 7 designated as expert channels with s[i] equal to +1, and channels Ch 0 through Ch 3 designated as lay channels with s[i] equal to −1.
[0083] With continued reference to FIG. 6, channels Ch 0 through Ch 3 each have s[i] equal to −1 with bit equal to 0 and a vote of +1 (true). The A contribution for each of channels Ch 0 through Ch 3 equals +1, corresponding to the vote value v[i]. The B contribution for each of channels Ch 0 through Ch 3 equals −1, computed as s[i] multiplied by v[i], which equals −1 multiplied by +1. Channels Ch 4 through Ch 7 each have s[i] equal to +1 with bit equal to 1 and a vote of −1 (false). The A contribution for each of channels Ch 4 through Ch 7 equals −1, corresponding to the vote value v[i]. The B contribution for each of channels Ch 4 through Ch 7 equals −1, computed as s[i] multiplied by v[i], which equals +1 multiplied by −1.
[0084] A total row of the table 600 indicates that the total counter T equals 8, the skip counter S equals 0, and the derived value E equals 8. The accumulator A equals 0, representing the sum of all A contributions: four contributions of +1 from channels Ch 0 through Ch 3 and four contributions of −1 from channels Ch 4 through Ch 7. The weighted counter B equals −8, representing the sum of all B contributions: four contributions of −1 from channels Ch 0 through Ch 3 and four contributions of −1 from channels Ch 4 through Ch 7.
[0085] The accumulator A value of 0 indicates a balanced vote with equal numbers of true and false votes across all channels. The weighted counter B value of −8 reveals that the expert channels (Ch 4 through Ch 7) voted unanimously false while the lay channels (Ch 0 through Ch 3) voted unanimously true. The weighted counter B captures the expert-crowd divergence that is invisible to the accumulator A alone.
[0086] Below the table 600, a formula box shows the Expert Consensus Directional Index (ECDI) calculation. The ECDI equals the quantity A minus B divided by E, which equals the quantity 0 minus negative 8 divided by 8, resulting in positive 1.0. The ECDI value of +1.0 represents maximum expert-crowd divergence under the balanced-vote constraint, indicating complete disagreement between the expert group and the lay group. The ECDI ranges from −1.0 to +1.0, where +1.0 indicates maximum divergence with experts opposing the lay consensus, −1.0 indicates maximum divergence with experts supporting the lay consensus, and 0.0 indicates no divergence between expert and lay groups.
[0087] The sign vector register uses a 16-bit host-loadable format with 2 bits per channel using ternary encoding where 00 represents ZERO, 01 represents POS (+1), and 10 represents NEG (−1) for per-channel weight specification. The default value for the sign vector register is 0x5555, corresponding to all POS weights. The host loads the sign vector via a command over the host interface before each scenario to define the expert / lay partition, and the verification subsystem accumulates counter values across sign vector reloads.
[0088] The sign vector for the verification subsystem is set to the current spin state x[i] in the set containing +1 and −1 when used for Ising energy certification, enabling the weighted counter B to equal −2 times the Ising energy. The verification subsystem enables recovery of MAX-CUT values from the weighted counter B alone using the formula cut=(Bhost+2·Wtotal) / 4 or cut=(2·Wtotal−Bfpga) / 4 depending on encoding convention, where W_total represents the total edge weight in the graph. The sign vector mechanism enables the same verification subsystem hardware to compute Ising energy certification, expert consensus indices, matched filtering correlations, and other application-specific signed aggregations by loading different sign vector values without circuit reconfiguration.
[0089] Verification tuples comprising the total counter, the accumulator, and the skip counter are additively composable across multiple computation contexts. A plurality of verification tuples, each verification tuple comprising a respective total counter, a respective accumulator, and a respective skip counter, are additively composed from at least one of physically separate computation units operating in parallel, temporally non-overlapping computation windows on a single computation unit, or distributed computation nodes connected by a communication network. A composed tuple is formed by component-wise addition of the constituent tuples, where the composed total counter equals the sum of the respective total counters, the composed accumulator equals the sum of the respective accumulators, and the composed skip counter equals the sum of the respective skip counters. A composed tuple satisfies the validity predicate whenever each constituent tuple of the plurality of verification tuples satisfies the validity predicate.
[0090] The additive composition property follows from the algebraic structure of the validity predicate conditions. The first condition that the skip counter is less than or equal to the total counter holds for the composed tuple because the sum of skip counters that are each less than or equal to their respective total counters is less than or equal to the sum of the total counters. The second condition that an absolute value of the accumulator is less than or equal to a difference between the total counter and the skip counter holds for the composed tuple because the absolute value of a sum of accumulators is less than or equal to the sum of the absolute values, and each absolute value is bounded by the respective difference. The third condition that a sum of the difference and the accumulator is even holds for the composed tuple because the sum of even quantities is even.
[0091] For physically separate computation units operating in parallel, each computation unit maintains a respective verification tuple that accumulates independently during parallel operation. In embodiments where a computation unit includes multiple output channels, the verification subsystem maintains respective counter set for each channel, with each channel maintaining a respective total counter, a respective accumulator, and a respective skip counter. The composed tuple aggregates verification information across all parallel channels, enabling array-level verification from a single composed tuple rather than individual examination of each channel tuple.
[0092] The verification subsystem computes aggregate accumulator values as a combinational reduction over per-channel accumulators using a scan function. The scan function computes the composed accumulator as a sum over all channel-level accumulators, where each channel-level accumulator is itself a sum of unit-magnitude results from operations on that channel. The validity predicate holds for the composed tuple by associativity of addition, as the sum of valid channel-level tuples produces a valid composed tuple. The scan function implementation provides an algebraically equivalent alternative to dedicated per-operation increment counters, computing the same composed tuple values through batch reduction rather than incremental accumulation.
[0093] For temporally non-overlapping computation windows on a single computation unit, each computation window maintains a respective verification tuple that accumulates during that window. The composed tuple aggregates verification information across successive windows, enabling verification of extended computation sequences that span multiple attestation intervals. The composition property enables windowed verification where each window is independently validated and the composed tuple provides aggregate verification across the full computation history.
[0094] For distributed computation nodes connected by a communication network, each computation node maintains a respective verification tuple that accumulates locally during distributed computation. The composed tuple aggregates verification information across all nodes, enabling distributed verification from a single composed tuple transmitted over the network rather than individual examination of each node tuple. The composition property holds given authentic hardware at each node, as the algebraic relationships that ensure validity predicate satisfaction are preserved under component-wise addition regardless of the physical location of the constituent computation units.
[0095] The verification subsystem supports hierarchical aggregation across multi-level module hierarchies via the additive composition property. A first level of the hierarchy comprises individual computation units, each maintaining a respective verification tuple. A second level of the hierarchy comprises groups of computation units, each group maintaining a composed tuple formed by additive composition of the constituent tuples from the first level. Additional levels of the hierarchy compose tuples from lower levels, with the validity predicate holding at each level whenever the constituent tuples at the level below satisfy the validity predicate. The hierarchical aggregation enables scalable verification of large computation systems through recursive application of the additive composition property.
[0096] The verification method applies to computation circuits comprising a plurality of distinct operation types spanning at least two of the following: arithmetic operations, logic operations, comparison operations, and selection operations. The validity predicate applies identically across all operation types of the plurality of distinct operation types without operation-specific modification, demonstrating the operation-agnostic nature of the verification.
[0097] Arithmetic operations that produce unit-magnitude outputs include ternary addition, ternary subtraction, and ternary multiplication. Ternary addition of two unit-magnitude operands produces a sum value from the unit-magnitude value set when the operands have opposite signs or when at least one operand is zero. Ternary multiplication of two unit-magnitude operands produces a product value from the unit-magnitude value set because the product of any two values from the set containing negative one, zero, and positive one is itself a value from the set containing negative one, zero, and positive one. The verification subsystem maintains the total counter, the skip counter, and the accumulator for arithmetic operations using the same counter update rules as for any other operation type, incrementing the total counter for each arithmetic operation presented, incrementing the skip counter when the arithmetic operation output is zero, and incrementing or decrementing the accumulator based on the polarity of non-zero arithmetic operation outputs.
[0098] Logic operations that produce unit-magnitude outputs include ternary AND, ternary OR, ternary NOT, and ternary XOR operations defined over the unit-magnitude value set. Ternary logic operations map input operands from the unit-magnitude value set to output values from the unit-magnitude value set according to truth tables that preserve the unit-magnitude property. The verification subsystem maintains the total counter, the skip counter, and the accumulator for logic operations using the same counter update rules as for arithmetic operations, without modification to the validity predicate or the counter update logic based on the specific logic operation being performed.
[0099] Comparison operations that produce unit-magnitude outputs include ternary minimum and ternary maximum operations. A ternary minimum operation on two unit-magnitude operands produces the lesser of the two operands, which is itself a value from the unit-magnitude value set. A ternary maximum operation on two unit-magnitude operands produces the greater of the two operands, which is itself a value from the unit-magnitude value set. Reduction trees composed of pairwise comparison operations, such as 2×2 pooling operations that compute the minimum or maximum of four unit-magnitude inputs through a two-level binary reduction, produce unit-magnitude outputs at each level of the reduction tree. The verification subsystem maintains the total counter, the skip counter, and the accumulator for comparison operations using the same counter update rules as for arithmetic and logic operations.
[0100] Selection operations that produce unit-magnitude outputs include ternary multiplexer operations and conditional selection operations. A ternary multiplexer operation selects one of multiple unit-magnitude input values based on a control signal, producing an output that is one of the input values and therefore a value from the unit-magnitude value set. The verification subsystem maintains the total counter, the skip counter, and the accumulator for selection operations using the same counter update rules as for arithmetic, logic, and comparison operations.
[0101] The validity predicate comprising the three conditions described previously with reference to FIG. 1B applies identically to arithmetic operations, logic operations, comparison operations, and selection operations. The validity predicate conditions depend on the counter values and the unit-magnitude property of the outputs, not on which specific operation type produced each output. The verification subsystem evaluates the same three predicate conditions regardless of whether the accumulated operations include arithmetic operations, logic operations, comparison operations, selection operations, or any combination thereof.
[0102] A computation circuit comprising multiple distinct operation types maintains a single set of counters that accumulate across all operation types. The total counter increments for each operation regardless of operation type. The skip counter increments for each zero-valued output regardless of which operation type produced the zero output. The accumulator increments for each positive output and decrements for each negative output regardless of which operation type produced the non-zero output. The validity predicate evaluates on the accumulated counter values without knowledge of which operation types contributed to the accumulation.
[0103] The operation-agnostic property distinguishes unit-magnitude verification from prior approaches that require operation-specific check circuits. Algorithm-based fault tolerance requires designing a checksum scheme specific to each operation's algebraic properties, such that applying algorithm-based fault tolerance to a different operation requires designing a new checksum scheme. Residue arithmetic requires a residue prediction circuit that differs for addition versus multiplication versus comparison. Self-checking ALU methods require a parity predictor designed per ALU operation, with addition requiring a different parity predictor than multiplication. The verification method described herein applies the same validity predicate regardless of which ternary operation produced the output, enabling verification of heterogeneous computation circuits that perform multiple operation types without operation-specific modification to the verification subsystem.
[0104] The accumulator is computed as a reduction over a plurality of channel-level outputs, each channel-level output being a sum of unit-magnitude results. In a scan function implementation, the verification subsystem computes the accumulator by summing the individual channel-level accumulators rather than by incrementing a single counter for each operation. Each channel-level output represents the accumulated sum of unit-magnitude results from operations performed on that channel, where each individual operation produces an output value from the unit-magnitude value set comprising at least a positive value, a negative value, and a zero value.
[0105] The validity predicate holds by associativity of addition when the accumulator is computed as a reduction over channel-level outputs. The associativity property of integer addition ensures that the sum of channel-level accumulators produces the same value as incrementing a single accumulator for each individual operation. The three conditions of the validity predicate described previously with reference to FIG. 1B all hold for the reduced accumulator because the algebraic relationships between counter values are preserved under associative reordering of the addition operations.
[0106] The scan function implementation provides an algebraically equivalent alternative to dedicated per-operation increment counters. Rather than maintaining a single accumulator that increments or decrements by one for each non-zero output as operations are performed, the scan function implementation maintains per-channel accumulators that each accumulate the signed sum of unit-magnitude results for that channel. The aggregate accumulator is then computed as a combinational reduction, summing all per-channel accumulators to produce the same value that would result from dedicated per-operation incrementing.
[0107] The verification subsystem implements the accumulator as the computation circuit's own multiply-accumulate (MAC) accumulator register, serving dual purposes. In this implementation, the MAC accumulator register that accumulates computation results also serves as the verification accumulator. The MAC accumulator register increments or decrements based on the polarity of each unit-magnitude multiplication result, accumulating both the computation output and the verification information in a single register. The dual-purpose implementation eliminates the need for a separate verification accumulator register, as the computation accumulator inherently tracks the signed aggregate of unit-magnitude results required for validity predicate evaluation.
[0108] The scan function implementation enables verification of computation circuits with large numbers of parallel channels without requiring a dedicated counter update for each individual operation. The per-channel accumulators accumulate locally during computation, and the aggregate accumulator is computed by reduction when verification is performed. The reduction operation sums the per-channel values using combinational logic, producing the aggregate accumulator value in a single clock period. The validity predicate is then evaluated on the aggregate accumulator value along with the total counter and skip counter values, with the predicate conditions holding by the associativity of the addition operations that produced the aggregate value.
[0109] The verification subsystem implements two-layer fault detection where a first layer evaluates the validity predicate and a second layer evaluates a delta comparison check. The two layers detect disjoint fault classes, with the validity predicate detecting counter-update faults and the delta comparison check detecting computation-path faults that produce incorrect but unit-magnitude outputs.
[0110] The first layer evaluates the validity predicate combinationally every clock cycle on absolute counter values. The first layer evaluates the validity predicate comprising the conditions described previously with reference to FIG. 1A and FIG. 1B. The first layer detects counter-update faults, which are faults that corrupt the counter values themselves, such as faults that swap increment conditions between counters or that cause incorrect increment or decrement operations on the counters.
[0111] The second layer evaluates a delta comparison check at the end of each computation run. The delta comparison check compares actual counter deltas against expected reference deltas for a known sequence of input vectors. The verification subsystem computes expected reference deltas for a known sequence of input vectors based on a reference model. The reference model computes the expected counter values that result from processing the known sequence of input vectors, where the expected total counter delta equals the number of operations in the sequence, the expected skip counter delta equals the number of zero-valued outputs in the sequence, and the expected accumulator delta equals the signed sum of non-zero outputs in the sequence.
[0112] After processing the known sequence of input vectors, the verification subsystem computes actual counter deltas as differences between counter values after processing and counter values before processing. The actual total counter delta equals the total counter value after processing minus the total counter value before processing. The actual skip counter delta equals the skip counter value after processing minus the skip counter value before processing. The actual accumulator delta equals the accumulator value after processing minus the accumulator value before processing.
[0113] The verification subsystem evaluates a delta comparison check that compares the actual counter deltas against the expected reference deltas. When the actual counter deltas match the expected reference deltas, the computation proceeded correctly for the known sequence of input vectors. When the actual counter deltas diverge from the expected reference deltas, a computation-path fault has occurred. The delta comparison check is O(1) per channel regardless of the number of vectors processed, because the check compares aggregated counter deltas rather than individual outputs.
[0114] The validity predicate detects counter-update faults and the delta comparison check detects computation-path faults that produce incorrect but unit-magnitude outputs. A computation-path fault that produces a wrong but unit-magnitude output generates a valid tuple that passes the validity predicate, because the validity predicate conditions hold for any sequence of unit-magnitude outputs regardless of whether those outputs are correct. The delta comparison check detects such computation-path faults by comparing the actual counter deltas against the expected deltas computed from the reference model for the known input sequence.
[0115] The two layers have disjoint detection domains. Counter-update faults that corrupt counter values are detected by the validity predicate on absolute counter values, as the corrupted values produce a tuple that fails at least one of the predicate conditions. Computation-path faults that produce wrong but unit-magnitude outputs are detected by the delta comparison check, as the actual counter deltas diverge from the expected reference deltas even though the absolute counter values satisfy the validity predicate. Neither layer alone is sufficient for complete fault detection, and the combination of both layers provides complementary coverage of the fault space.
[0116] The verification subsystem includes a fault latch register in the power-on reset domain. The fault latch register is set by hardware when either detection layer fires, specifically when the validity predicate evaluates to false or when the delta comparison check detects divergence between actual and expected counter deltas. The fault latch register has no software write path, no software reset path, and no system reset path. Once set, the fault_latch register triggers three simultaneous hardware responses: assertion of a board fault indicator, inclusion of a fault flag in every subsequent response packet transmitted over the host interface, and immediate blocking of all subsequent computation commands. The computation engine refuses subsequent computation commands and returns an immediate error response when the fault_latch register is set. The sole mechanism to clear the fault_latch register and resume computation is removal and restoration of power or device reprogramming. No software action at any privilege level, including application-level, kernel-level, hypervisor-level, or firmware-level code, clears, suppresses, or overrides the fault_latch register.
[0117] The verification method extends to computation circuits that process input operands having magnitude greater than one through decomposition into unit-magnitude sub-operands. Each input operand having magnitude greater than one is decomposed into a plurality of sub-operands, each sub-operand taking values from the unit-magnitude value set comprising at least a positive value, a negative value, and a zero value. The decomposition transforms wider-than-ternary operands into multiple ternary representations that preserve the unit-magnitude property required for validity predicate evaluation.
[0118] Bit-plane decomposition represents one approach for decomposing input operands having magnitude greater than one. In bit-plane decomposition, an integer operand with magnitude greater than one is represented as a weighted sum of bit-plane values, where each bit-plane contains values from the unit-magnitude value set. For an INT8 operand, the decomposition produces eight bit-planes, each containing values from the set containing negative one, zero, and positive one. For an INT16 operand, the decomposition produces sixteen bit-planes. Each bit-plane represents a positional contribution to the overall operand value, with the bit-plane values scaled by powers of two according to their position in the binary representation.
[0119] Thermometer encoding decomposition represents another approach for decomposing input operands having magnitude greater than one. In thermometer encoding decomposition, an integer operand with magnitude N is represented as N unit-magnitude sub-operands, each having value positive one or negative one depending on the sign of the original operand. The thermometer encoding preserves the magnitude information through the count of non-zero sub-operands rather than through positional weighting.
[0120] Bit-serial decomposition represents a temporal approach for decomposing input operands having magnitude greater than one. In bit-serial decomposition, the bit-planes of an operand are processed sequentially over multiple clock cycles rather than in parallel. Each clock cycle processes one bit-plane, with the sub-operand for that cycle taking values from the unit-magnitude value set.
[0121] The verification subsystem performs the individual operations on each sub-operand of the plurality of sub-operands. When the original computation involves an operation on operands having magnitude greater than one, the decomposed computation performs the same operation type on each corresponding pair of sub-operands from the decomposed operand representations. For a multiplication of two INT8 operands decomposed into eight bit-planes each, the verification subsystem tracks operations on each of the bit-plane pairs, with each bit-plane multiplication producing a unit-magnitude result from the set containing negative one, zero, and positive one.
[0122] The verification subsystem applies the validity predicate to each sub-operand independently. Each bit-plane or sub-operand stream maintains a respective total counter, a respective skip counter, and a respective accumulator that accumulate information about operations performed on that sub-operand stream. The validity predicate comprising the three conditions described previously with reference to FIG. 1B is evaluated independently for each sub-operand stream.
[0123] The unique decomposition holds for each sub-operand. For each sub-operand stream, the tuple comprising the respective total counter, the respective accumulator, and the respective skip counter admits a unique decomposition into an exact count of positive outputs and an exact count of negative outputs for that sub-operand stream. The number of positive outputs for a sub-operand stream equals half the sum of the difference between the respective total counter and the respective skip counter plus the respective accumulator. The number of negative outputs for a sub-operand stream equals half the difference of the difference between the respective total counter and the respective skip counter minus the respective accumulator. The unique decomposition property enables detection of any single counter-update fault on any sub-operand stream without aliasing.
[0124] The additive composition property enables aggregation of verification information across sub-operand streams. The verification tuples from individual sub-operand streams are additively composed to form an aggregate tuple for the wider-than-ternary computation. The composed tuple satisfies the validity predicate whenever each constituent sub-operand tuple satisfies the validity predicate, as described previously for composition across parallel computation units.
[0125] The decomposition approach is independent of the specific decomposition scheme employed. Bit-plane decomposition, thermometer encoding decomposition, bit-serial decomposition, and other decomposition schemes that produce sub-operands taking values from the unit-magnitude value set all enable application of the validity predicate to each sub-operand independently. The verification method applies to any decomposition scheme that preserves the unit-magnitude property on sub-operand values, without requiring modification to the validity predicate or the counter update logic based on which decomposition scheme is employed.
[0126] The decomposition approach extends to operations beyond multiply-accumulate operations. Arithmetic operations, logic operations, comparison operations, and selection operations performed on decomposed sub-operands each produce unit-magnitude results when the sub-operands take values from the unit-magnitude value set. The validity predicate applies identically to decomposed arithmetic operations, decomposed logic operations, decomposed comparison operations, and decomposed selection operations, enabling verification of wider-than-ternary computations across the full range of operation types supported by the verification method.
[0127] The verification subsystem supports a challenge-response attestation protocol that enables a verifier to extract per-stream contribution information through successive sign vector configurations. The challenge-response attestation protocol comprises receiving a plurality of sign vectors from a verifier across a plurality of rounds. For each round of the plurality of rounds, the verification subsystem reads the weighted counter after computation with a respective sign vector of the plurality of sign vectors. The verifier controls the number of probes and the specific sign vector values used in each round, while the verification subsystem hardware accumulates counter values according to the sign vector configuration active during each computation phase.
[0128] The validity predicate remains valid after each round transition. The validity predicate comprising the five conditions described previously with reference to FIG. 1A evaluates to true after each sign vector change and subsequent computation round. The algebraic relationships that ensure validity predicate satisfaction are preserved across sign vector transitions because the counter update rules depend on the current sign vector configuration and the unit-magnitude property of outputs, not on the history of previous sign vector configurations.
[0129] Accumulated weighted counter values across the plurality of rounds with linearly independent sign vectors uniquely constrain a per-stream contribution vector. Each round with a distinct sign vector delivers one independent linear constraint on the per-stream output distribution. With N output streams, N linearly independent sign vectors across N rounds fully determine the per-stream contribution vector. The verifier solves an N×N linear system where each row corresponds to a round, each column corresponds to an output stream, the matrix entries are the sign vector elements for that round and stream, and the right-hand side values are the weighted counter readings from each round. The solution to the linear system recovers the per-stream accumulator values exactly when the sign vectors are linearly independent.
[0130] The verification subsystem supports extending the sign vector alphabet from the set containing negative one and positive one to the set containing negative one, zero, and positive one for selective channel masking. When a sign vector element equals zero, the corresponding output stream does not contribute to the weighted counter for that round. The zero-weighted channels are masked from the weighted counter accumulation, enabling the verifier to probe subsets of channels selectively. The extended sign vector alphabet enables hierarchical probing strategies where the verifier first identifies suspicious channel groups using coarse-grained sign vectors with many zero elements, then refines the probe to specific channels using fine-grained sign vectors with fewer zero elements.
[0131] The verification subsystem uses orthogonal and structured sign-vector probing optimization for improved condition number and maximum per-probe information extraction. Orthogonal sign vectors, such as rows of a Hadamard matrix scaled to the set containing negative one and positive one, produce a linear system with condition number equal to one, enabling exact recovery of per-stream contributions without numerical amplification of measurement errors. Structured sign vector sequences, such as Walsh-Hadamard sequences or other orthogonal bases, maximize the information extracted per probe by ensuring that each successive sign vector is maximally different from previous sign vectors in the sequence. The verification subsystem supports loading arbitrary sign vector sequences, enabling the verifier to select orthogonal sequences for exact recovery or non-orthogonal sequences when orthogonal sequences are not available for the given number of output streams.
[0132] The verification subsystem supports remote attestation via network delivery of verification tuples to a remote verifier. The verification tuples comprising the total counter, the accumulator, the weighted counter, and the skip counter are transmitted over a communication network to a remote verifier that evaluates the validity predicate and performs the linear system solution for per-stream contribution recovery. The remote verifier sends sign vector configurations to the verification subsystem over the network, the verification subsystem loads each sign vector into the sign vector register, computation proceeds with the loaded sign vector, and the verification subsystem transmits the resulting counter values back to the remote verifier. The network delivery of verification tuples enables attestation of computation correctness by a verifier that is physically separate from the computation hardware, supporting distributed verification scenarios where the verifier does not have direct physical access to the verification subsystem.
[0133] The challenge-response attestation protocol provides a controllable tradeoff between verification granularity and information disclosure. Zero probes yield aggregate validity only, confirming that the accumulated counter values satisfy the validity predicate without revealing per-stream information. A number k of probes yields k constraints on N unknowns, partially constraining the per-stream contribution vector. N probes with linearly independent sign vectors yield full per-stream recovery, completely determining the contribution of each output stream to the accumulated counter values. The verifier selects the number of probes based on the desired level of verification granularity, with more probes providing finer-grained verification at the cost of additional round-trip communications and sign vector configurations.
[0134] A digital computation system comprises one or more computation units, each computation unit configured to perform operations on values from a unit-magnitude value set comprising at least a positive value, a negative value, and a zero value. The computation units perform ternary arithmetic operations, ternary logic operations, ternary comparison operations, ternary selection operations, or combinations thereof, where each individual operation produces an output value from the unit-magnitude value set. The digital computation system includes multiple computation units operating in parallel, with each computation unit processing independent data streams or cooperating on shared computation tasks.
[0135] For each computation unit, the digital computation system includes a verification subsystem comprising a total counter configured to increment by one for each operation presented, a skip counter configured to increment by one for each operation whose output is the zero value, an accumulator configured to increment by one for each positive output and decrement by one for each negative output, and a combinational validity checker configured to evaluate a validity predicate on the total counter, the skip counter, and the accumulator and to assert a validity output. The verification subsystem for each computation unit operates independently, maintaining separate counter values that accumulate information about operations performed by that computation unit. The combinational validity checker evaluates the validity predicate comprising the three conditions described previously with reference to FIG. 1B.
[0136] The digital computation system includes a host interface providing read access to counter values and the validity output of each verification subsystem. The host interface enables a host processor or external controller to query the total counter, the skip counter, the accumulator, and the validity output from each verification subsystem. The host interface does not provide a write path to set any counter to an arbitrary value. The host interface provides read-only access to the counter values, preventing software from forging or modifying accumulated verification information. The host interface communicates with the verification subsystem via 1G Ethernet using RGMII and UDP protocol, enabling network-accessible attestation of computation correctness.
[0137] Each verification subsystem further comprises a weighted counter configured to increment or decrement by one for each non-zero output with direction determined by an equivalence function of a polarity of the output and a corresponding element of a sign vector register. The combinational validity checker is further configured to evaluate additional conditions on the weighted counter, specifically the fourth condition that an absolute value of the weighted counter is less than or equal to the difference between the total counter and the skip counter, and the fifth condition that a sum of the difference and the weighted counter is even, as described previously.
[0138] The host interface provides write access to the sign vector register while maintaining no write path to set the total counter, the skip counter, the accumulator, or the weighted counter to an arbitrary value. The host interface enables challenge-response attestation through successive sign vector configurations without modifying accumulated counter values. The host processor loads different sign vector values into the sign vector register between computation rounds, and the verification subsystem accumulates counter values according to each sign vector configuration. The weighted counter values from successive rounds with linearly independent sign vectors enable recovery of per-stream contribution information, as described previously for the challenge-response attestation protocol.
[0139] The POR signal for the verification subsystem is generated by a dedicated analog power-on-reset cell in an ASIC implementation. The analog power-on-reset cell comprises a voltage supervisor circuit whose output is determined solely by supply voltage trajectory, not by any digital state. The voltage supervisor circuit holds the POR signal asserted until the supply rail stabilizes above a threshold voltage, then deasserts unconditionally. The sole re-assertion path for the POR signal is a subsequent power-down event. The analog power-on-reset cell output connects directly to the asynchronous reset inputs of the total counter and the skip counter registers, with no intervening register, latch, multiplexer, or bus-accessible logic element in the reset path.
[0140] The verification subsystem supports per-tenant isolation in multi-tenant accelerator contexts. Each tenant in a multi-tenant deployment receives a dedicated verification subsystem instance with separate counter registers that accumulate information about operations performed on behalf of that tenant. The per-tenant isolation prevents one tenant from observing or modifying the verification state of another tenant. The host interface provides tenant-specific read access to counter values, with access control mechanisms ensuring that each tenant reads only the counter values from the verification subsystem instance allocated to that tenant.
[0141] The verification subsystem enforces a maximum total counter value before mandatory attestation readout through hardware enforcement. A hardware comparator monitors the total counter value and asserts a threshold signal when the total counter reaches a configured maximum value. The threshold signal triggers mandatory attestation readout, requiring the host to read the counter values and validity output before computation proceeds. The hardware enforcement prevents indefinite accumulation without attestation, ensuring that verification information is periodically extracted and evaluated.
[0142] The verification subsystem serves as a side-channel attack detection mechanism by monitoring counter patterns. Anomalous patterns in the total counter, the skip counter, the accumulator, or the weighted counter indicate potential side-channel attacks that manipulate computation behavior. The verification subsystem detects fault injection attacks that corrupt counter values through the validity predicate, as corrupted counter values produce tuples that fail at least one predicate condition. The verification subsystem detects timing-based attacks through monitoring of counter increment rates, as abnormal increment patterns indicate manipulation of computation timing.
[0143] The verification subsystem supports threshold-based alerts on derivatives of the counter values, including dA / dT, dB / dT, and dS / dT. The derivative dA / dT represents the rate of change of the accumulator with respect to the total counter, indicating the net polarity diluted across all operations including zero-valued outputs, where the denominator T counts all operations rather than only non-zero operations. The derivative dB / dT represents the rate of change of the weighted counter with respect to the total counter, indicating the net weighted polarity diluted across all operations including zero-valued outputs, where the denominator T counts all operations rather than only non-zero operations. The derivative dS / dT represents the rate of change of the skip counter with respect to the total counter, indicating the fraction of operations producing zero outputs, bounded to the range [0,1]. The verification subsystem compares the derivative values against configured thresholds and asserts alert signals when derivative values deviate from the thresholds, enabling detection of computation anomalies that produce statistically unusual output distributions.
[0144] The verification subsystem verifies gradient computation in training loops where the backward pass produces unit-magnitude intermediates. Neural network training involves forward passes that compute activations and backward passes that compute gradients with respect to weights and activations. When the backward pass operates on ternary representations where gradient values take values from the unit-magnitude value set, the verification subsystem accumulates counter values for gradient computation operations. The validity predicate applies to gradient computation operations using the same counter update rules and predicate conditions as for forward pass operations, enabling verification of both forward and backward passes in training loops.
[0145] The verification subsystem components interact through a defined signal flow that transforms ternary computation outputs into validity assessments delivered to a host interface. The ternary computation circuit produces output values from the unit-magnitude value set for each operation performed. Each output value propagates to a zero-detection circuit and a polarity-determination circuit that operate in parallel within the verification subsystem.
[0146] The zero-detection circuit receives the output value and determines whether the output equals the zero value. In binary encoding implementations, the zero-detection circuit comprises an XNOR gate that compares the two bits of the encoded output, producing a zero-detection signal when the bits are equal. In native three-level implementations, the zero-detection circuit comprises a threshold comparator that compares the signal level against a zero-band threshold, producing a zero-detection signal when the signal level falls within the zero band. The zero-detection signal propagates to the skip counter and to enable logic for the accumulator and weighted counter.
[0147] The polarity-determination circuit receives the output value and determines whether a non-zero output is the positive value or the negative value. In binary encoding implementations, the polarity-determination circuit extracts the sign bit from the encoded output, where the sign bit indicates positive polarity when equal to zero and negative polarity when equal to one. In native three-level implementations, the polarity-determination circuit comprises a threshold comparator that compares the signal level against a polarity threshold, producing a polarity signal indicating positive when the signal level exceeds the threshold and negative when the signal level falls below the threshold. The polarity signal propagates to direction-control inputs of the accumulator and to the equivalence function that determines weighted counter direction.
[0148] The total counter receives an increment signal for each operation presented to the ternary computation circuit, independent of the output value. The total counter increments by one on each clock cycle when an operation is presented, accumulating the count of operations since the last reset event. The total counter value propagates to the combinational validity checker for predicate evaluation.
[0149] The skip counter receives an increment signal gated by the zero-detection signal. When the zero-detection signal indicates a zero output, the skip counter increments by one. When the zero-detection signal indicates a non-zero output, the skip counter holds the current value. The skip counter value propagates to the combinational validity checker for predicate evaluation.
[0150] The accumulator receives an increment-or-decrement signal gated by the negated zero-detection signal and directed by the polarity signal. When the zero-detection signal indicates a non-zero output, the accumulator updates based on the polarity signal, incrementing by one when the polarity signal indicates positive and decrementing by one when the polarity signal indicates negative. When the zero-detection signal indicates a zero output, the accumulator holds the current value. The accumulator value propagates to the combinational validity checker for predicate evaluation.
[0151] The weighted counter receives an increment-or-decrement signal gated by the negated zero-detection signal and directed by an equivalence function output. The equivalence function receives the polarity signal and a corresponding element of the sign vector register, producing a direction signal based on agreement or disagreement between the polarity and the sign vector element. When the zero-detection signal indicates a non-zero output, the weighted counter updates based on the direction signal from the equivalence function, incrementing by one when the equivalence function indicates agreement and decrementing by one when the equivalence function indicates disagreement. When the zero-detection signal indicates a zero output, the weighted counter holds the current value. The weighted counter value propagates to the combinational validity checker for predicate evaluation.
[0152] The combinational validity checker receives the total counter value, the skip counter value, the accumulator value, and the weighted counter value. The combinational validity checker computes the difference between the total counter and the skip counter to obtain the count of non-zero outputs. The combinational validity checker evaluates the first condition by comparing the skip counter value against the total counter value. The combinational validity checker evaluates the second condition by computing the absolute value of the accumulator and comparing against the difference. The combinational validity checker evaluates the third condition by computing the sum of the difference and the accumulator and testing the least significant bit for evenness. When the weighted counter is present, the combinational validity checker evaluates the fourth condition by computing the absolute value of the weighted counter and comparing against the difference, and evaluates the fifth condition by computing the sum of the difference and the weighted counter and testing the least significant bit for evenness.
[0153] The combinational validity checker produces a validity output signal within a single clock period of the counter values being read. The validity output signal asserts when all evaluated predicate conditions are satisfied and deasserts when any predicate condition fails. The validity output signal propagates to the attestation output and to downstream computation control logic.
[0154] The verification subsystem implements the validity predicate as a gate condition for downstream computation, causing pipeline stall when the validity output equals zero. When the validity output deasserts indicating a predicate failure, the downstream computation pipeline receives a stall signal that halts progression of computation results. The pipeline stall prevents propagation of potentially corrupted computation results beyond the verification point. The pipeline stall persists until the fault condition is cleared through a reset event or until the verification subsystem is reconfigured. The gate condition implementation ties the verification function to a concrete machine-controlling effect, where the validity predicate evaluation directly controls whether computation proceeds or halts.
[0155] The attestation output receives the total counter value, the skip counter value, the accumulator value, the weighted counter value when present, and the validity output signal from the combinational validity checker. The attestation output formats the counter values and validity signal for delivery to the host interface. The host interface provides read access to the attestation output, enabling a host processor or external controller to query the verification state. The host interface transmits the counter values and validity signal over a communication link, such as the 1G Ethernet connection using UDP protocol implemented in hardware embodiments.
[0156] The host interface receives read requests from the host processor and returns the current counter values and validity output. The host interface does not provide a write path to set any counter to an arbitrary value, maintaining the integrity of accumulated verification information. The host interface provides write access to the sign vector register, enabling the host processor to configure the sign vector for challenge-response attestation without modifying counter values. The host interface delivers attestation information that enables the host processor to evaluate computation correctness, detect faults through validity predicate failures, and perform per-stream contribution recovery through successive sign vector configurations.
[0157] A number of implementations have been described. Nevertheless, it will be understood that various modifications may be made without departing from the spirit and scope of the disclosure. Accordingly, other implementations are within the scope of the following claims.
Claims
1. A method of verifying correctness of a computation circuit whose individual operations produce output values from a unit-magnitude value set comprising at least a positive value, a negative value, and a zero value, the method comprising:maintaining a total counter that increments by one for each operation presented to the computation circuit;maintaining a skip counter that increments by one for each operation whose output is the zero value;maintaining an accumulator that, for each non-zero output, increments by one when the output is the positive value and decrements by one when the output is the negative value;evaluating a validity predicate comprising a first condition that the skip counter is less than or equal to the total counter, a second condition that an absolute value of the accumulator is less than or equal to a difference between the total counter and the skip counter, and a third condition that a sum of the difference and the accumulator is even; andresponsive to the validity predicate evaluating to false, indicating a fault condition;wherein a tuple comprising the total counter, the accumulator, and the skip counter admits a unique decomposition into an exact count of positive outputs and an exact count of negative outputs.
2. The method of claim 1, further comprising:maintaining a weighted counter that, for each non-zero output, increments or decrements by one with direction determined by an equivalence function of a polarity of the output and a corresponding element of a sign vector;evaluating a fourth condition that an absolute value of the weighted counter is less than or equal to the difference between the total counter and the skip counter; andevaluating a fifth condition that a sum of the difference and the weighted counter is even;wherein the validity predicate further comprises the fourth condition and the fifth condition.
3. The method of claim 2, wherein the accumulator and the weighted counter provide complementary fault detection such that neither is derivable from the other without knowledge of individual output values when the sign vector is non-degenerate and at least two of the individual output values are different from each other, wherein a non-degenerate sign vector comprises at least one element having a first value and at least one element having a second value different from the first value.
4. The method of claim 2, wherein the equivalence function produces a first result when the polarity of the output and the corresponding element of the sign vector agree and produces a second result when the polarity of the output and the corresponding element of the sign vector differ, and wherein the weighted counter increments when the equivalence function produces the first result and decrements when the equivalence function produces the second result.
5. The method of claim 2, further comprising:receiving a plurality of sign vectors from a verifier across a plurality of rounds;for each round of the plurality of rounds, reading the weighted counter after computation with a respective sign vector of the plurality of sign vectors;wherein the validity predicate remains valid after each round transition; andwherein accumulated weighted counter values across the plurality of rounds with linearly independent sign vectors uniquely constrain a per-stream contribution vector.
6. The method of claim 1, further comprising additively composing a plurality of verification tuples, each verification tuple comprising a respective total counter, a respective accumulator, and a respective skip counter, from at least one of:physically separate computation units operating in parallel;temporally non-overlapping computation windows on a single computation unit; ordistributed computation nodes connected by a communication network;wherein a composed tuple satisfies the validity predicate whenever each constituent tuple of the plurality of verification tuples satisfies the validity predicate.
7. The method of claim 1, wherein the computation circuit comprises a plurality of distinct operation types spanning at least two of the following: arithmetic operations, logic operations, comparison operations, and selection operations, and wherein the validity predicate applies identically across all operation types of the plurality of distinct operation types without operation-specific modification.
8. The method of claim 1, wherein evaluating the validity predicate is performed by combinational logic that indicates the fault condition within a single clock period of the total counter, the accumulator, and the skip counter being read, independent of a number of operations accumulated.
9. The method of claim 1, wherein the accumulator is computed as a reduction over a plurality of channel-level outputs, each channel-level output being a sum of unit-magnitude results, and wherein the validity predicate holds by associativity of addition.
10. The method of claim 1, further comprising:computing expected reference deltas for a known sequence of input vectors based on a reference model;after processing the known sequence of input vectors, computing actual counter deltas as differences between counter values after processing and counter values before processing;evaluating a delta comparison check that compares the actual counter deltas against the expected reference deltas;wherein the validity predicate detects counter-update faults and the delta comparison check detects computation-path faults that produce incorrect but unit-magnitude outputs.
11. The method of claim 1, further comprising:decomposing each input operand having magnitude greater than one into a plurality of sub-operands, each sub-operand taking values from the unit-magnitude value set;performing the individual operations on each sub-operand of the plurality of sub-operands; andapplying the validity predicate to each sub-operand independently;wherein the unique decomposition holds for each sub-operand.
12. A verification subsystem for a computation circuit whose individual operations produce output values from a unit-magnitude value set comprising at least a positive value, a negative value, and a zero value, the subsystem comprising:a total counter configured to increment by one for each operation presented to the computation circuit;a skip counter configured to increment by one for each operation whose output is the zero value;an accumulator configured to, for each non-zero output, increment by one when the output is the positive value and decrement by one when the output is the negative value; anda combinational validity checker configured to evaluate a validity predicate comprising a first condition that the skip counter is less than or equal to the total counter, a second condition that an absolute value of the accumulator is less than or equal to a difference between the total counter and the skip counter, and a third condition that a sum of the difference and the accumulator is even, and to assert a validity output;wherein a tuple comprising the total counter, the accumulator, and the skip counter admits a unique decomposition into an exact count of positive outputs and an exact count of negative outputs.
13. The verification subsystem of claim 12, further comprising:a weighted counter configured to, for each non-zero output, increment or decrement by one with direction determined by an equivalence function of a polarity of the output and a corresponding element of a sign vector register;wherein the combinational validity checker is further configured to evaluate a fourth condition that an absolute value of the weighted counter is less than or equal to the difference between the total counter and the skip counter, and a fifth condition that a sum of the difference and the weighted counter is even.
14. The verification subsystem of claim 13, further comprising:a host-writable sign vector register configured to store the sign vector, wherein the sign vector register has no feedback path to the computation circuit.
15. The verification subsystem of claim 13, wherein the computation circuit comprises a plurality of distinct operation types spanning at least two of the following: arithmetic operations, logic operations, comparison operations, and selection operations, and wherein the combinational validity checker evaluates the validity predicate identically across all operation types without operation-specific modification.
16. The verification subsystem of claim 12, wherein the total counter and the skip counter are implemented in a power-on reset domain with no software write path and no software reset path.
17. The verification subsystem of claim 16, further comprising a weighted counter configured to, for each non-zero output, increment or decrement by one with direction determined by an equivalence function of a polarity of the output and a corresponding element of a sign vector register, wherein the accumulator and the weighted counter are implemented in a software-resettable domain separate from the power-on reset domain, such that the accumulator and the weighted counter are resettable by a host command while the total counter and the skip counter remain unaffected by the host command.
18. The verification subsystem of claim 12, further comprising a fault latch configured to be set when the combinational validity checker indicates an invalid validity output, wherein once set, the fault latch inhibits subsequent computation commands until a reset event occurs.
19. A computation system comprising:one or more computation units, each computation unit configured to perform operations on values from a unit-magnitude value set comprising at least a positive value, a negative value, and a zero value;for each computation unit, a verification subsystem comprising:a total counter configured to increment by one for each operation presented;a skip counter configured to increment by one for each operation whose output is the zero value;an accumulator configured to increment by one for each positive output and decrement by one for each negative output; anda combinational validity checker configured to evaluate a validity predicate on the total counter, the skip counter, and the accumulator and to assert a validity output; anda host interface providing read-only access to counter values and the validity output of each verification subsystem;wherein the host interface does not provide a write path to set any counter to an arbitrary value;wherein for each verification subsystem, a tuple comprising the total counter, the accumulator, and the skip counter admits a unique decomposition into an exact count of positive outputs and an exact count of negative outputs.
20. The computation system of claim 19, wherein each verification subsystem further comprises a weighted counter configured to increment or decrement by one for each non-zero output with direction determined by an equivalence function of a polarity of the output and a corresponding element of a sign vector register, and wherein the combinational validity checker is further configured to evaluate additional conditions on the weighted counter.
Citation Information
Patent Citations
Ternary logic gate circuit, calculation circuit, chip and electronic equipment
CN119652311A
Ternary complete sequence adder (versions)
RU2616887C1
Tertiary adder
SU1137461A1
SU455339A1
Decoding method, memory storage device and memory control circuit unit
US20150358036A1
