Abstract

In computer arithmetic, one of the most important things to consider in hardware design is the ability of the system to detect and display numbers with their signs. This when properly managed will reduce errors and ensure hardware reliability. But interestingly, detecting and knowing the sign of a residue number during arithmetic operation is very difficult. Magnitude Comparison, Scaling and Number conversions are some of the other difficult operations in Residue Number System (RNS). Unlike the weighted number system, it is even extremely difficult to determine the sign of a number in an RNS architecture thereby hampering the full implementation RNS in general purpose computing. In this paper, an efficient sign detection algorithm for detecting the sign of a number in an RNS architecture is presented. In formulating the algorithms, X maximum, (X<sub>max</sub>) is computed from the Dynamic Range, M=∏<sup>k</sup><sub>i=1</sub>(m<sub>i</sub>). Modular Computation Technique is employed as a converter to compute X from the residues (r<sub>1</sub>, r<sub>2</sub>, r<sub>3</sub>) with respect to a given moduli set, say S= {m<sub>1</sub>, m<sub>2</sub> ..., m<sub>n</sub>}. X is positive if X-X<sub>max</sub><0 otherwise X is negative and the actual value is this case is computed as X-M. The moduli set {2<sup>n</sup>-1, 2<sup>n</sup>, 2<sup>n</sup>+1, 2<sup>(n+1)</sup>-1, 2<sup>2n</sup>-5} is used for the system design implementation and for numerical illustrations. It is observed that the scheme effectively detects the sign of RNS numbers and theoretical analysis showed that simple hardware resources and low-power modular adders are used in the design. It is also observed that the scheme when implemented practically can help project RNS to be used in general purpose computing.

Full Text
Published version (Free)

Talk to us

Join us for a 30 min session where you can share your feedback and ask us any queries you have

Schedule a call