Skip to Content
Synthesis of Arithmetic Circuits: FPGA, ASIC and Embedded Systems
book

Synthesis of Arithmetic Circuits: FPGA, ASIC and Embedded Systems

by Jean-Pierre Deschamps, Gery J.A. Bioul, Gustavo D. Sutter
March 2006
Intermediate to advanced
576 pages
11h 43m
English
Wiley-Interscience
Content preview from Synthesis of Arithmetic Circuits: FPGA, ASIC and Embedded Systems

3.2 INTEGERS

The most natural way of representing an integer is the sign-magnitude representation system. Nevertheless, it is not the most convenient for executing arithmetic operations. Several representation methods are now described.

3.2.1 Sign-Magnitude Representation

Any integer can be represented in the form +x or − x, where x is a natural number. The natural number x can be represented in base B (Theorem 3.1), and instead of using the ‘+’ and ‘−’ symbols, an additional (sign) digit equal to 0 (nonnegative number) or 1 (negative number) is added:

Definition 3.2 The integer represented in the form xn−1 xn−2x1 x0, where xn−1 is the sign bit, is

image

The range of represented numbers is −Bn−1 < x < Bn−1.

Comment 3.2 The number of vectors (xn−1 xn−2x1 x0), where xn−1 is the sign bit, is equal to 2.Bn−1, while the range −Bn−1 < x < Bn−1 only includes 2.Bn−1 − 1 integers. The difference is due to the fact that the vector (100 … 0) does not represent any number (zero is a natural number so that its sign bit should always be equal to 0). Nevertheless, the integer zero could also be accepted with two representations, namely, 000 … 0 (plus zero) and 100 … 0 (minus zero).

3.2.2 Excess-E Representation

Another way of representing a negative number x consists in associating a natural number R(x) to x, where R is a one-to-one function, and R(x) is represented in base B.

Definition 3.3

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

ASIC and FPGA Verification

ASIC and FPGA Verification

Richard Munden

Publisher Resources

ISBN: 9780471687832Purchase book