An Optimized Logarithmic Converter With Equal Distribution of Relative Errors

作者:Zhu, Mengyao*; Ha, Yajun; Gu, Chengcun; Gao, Liuchuang
来源:IEEE TRANSACTIONS ON CIRCUITS AND SYSTEMS II-EXPRESS BRIEFS, 2016, 63(9): 848-852.
DOI:10.1109/TCSII.2016.2535041

摘要

State-of-the-art piecewise logarithmic converters employ nonuniform segments to reduce the variance of relative errors, particularly for small inputs. However, it is difficult to have an optimized algorithm to accurately choose the nonuniform segments for a required approximation error. In this brief, we present a relative error equal distribution (REED) algorithm that performs the nonuniform piecewise linear interpolation of logarithm. It is able to precisely set the nonuniform piecewise points so that the relative error of each segment is within an upper bound, and finally produce a flat relative error distribution. It can be applied to any number of segments, even if the number is not the power of 2. Experimental results show that our REED algorithm achieves over 70% reduction of average relative errors for the benchmark graphics application, compared to both the state-of-the-art uniform and nonuniform methods. Synthesis results show that our hardware resources are comparable to that of the state-of-the-art nonuniform methods.