TranSC: Hardware-Aware Design of Transcendental Functions Using Stochastic Logic
Mehran Moghadam, Sercan Aygun, M. Hassan Najafi
TL;DR
TranSC introduces a hardware-efficient stochastic-computing framework for transcendental functions by replacing conventional RNGs with Van der Corput low-discrepancy sequences in a single, unified BSG. This eliminates mid-stage decorrelators, significantly reducing area, power, and energy while achieving higher accuracy across trig, exponential, and activation functions. The paper demonstrates strong decorrelation (low SCC, near-zero ZCE) and verifies practical gains in use cases like 2D image transformation and robotic arm positioning, with a FoM that combines accuracy and hardware costs. Compared to CORDIC and PPI, TranSC offers a favorable trade-off for resource-constrained systems, paving the way for end-to-end SC architectures in low-power AI and robotics. The work also highlights the hardware efficiency of the VDC-$2^n$ BSG and its ability to generate multiple independent streams from a single counter.
Abstract
The hardware-friendly implementation of transcendental functions remains a longstanding challenge in design automation. These functions, which cannot be expressed as finite combinations of algebraic operations, pose significant complexity in digital circuit design. This study introduces a novel approach, TranSC, that utilizes stochastic computing (SC) for lightweight yet accurate implementation of transcendental functions. Building on established SC techniques, our method explores alternative random sources-specifically, quasi-random Van der Corput low-discrepancy (LD) sequences-instead of conventional pseudo-randomness. This shift enhances both the accuracy and efficiency of SC-based computations. We validate our approach through extensive experiments on various function types, including trigonometric, hyperbolic, and activation functions. The proposed design approach significantly reduces MSE by up to 98% compared to the state-of-the-art solutions while reducing hardware area, power consumption, and energy usage by 33%, 72%, and 64%, respectively.
