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

16.7 DIVIDER

A basic divider deduced from algorithm 16.6 is shown in Figure 16.9. The inputs of the (p + 1)-digit divider are s1/B and s2 (Comment 6.1), so that the dividend is smaller than the divisor. The precision is chosen equal to p + 3 digits. Thus (see Section 6.1) the outputs quotient and remainder satisfy the relation

image

image

Figure 16.8 Sticky digit generation.

that is,

image

The sticky digit is equal to 1 if r > 0 and to 0 if r = 0. The final approximation of the exact result is

image

Example 16.9 (Complete VHDL code available.) Generate the VHDL model of a generic floating-point divider. It is made up of three blocks:

1. Division. This block includes the (p + 2)-digit divider, the subtractor, the xor gate, and the sticky digit generation circuit. Any type of divider can be used (Chapter 13). In this model a modified (dividend = s1/B) restoring divider has been used:

entity division is port ( s1, s2: in digit_vector(0 downto -p); signl, sign2: in std_logic; e1, e2: in integer; s: out digit_vector(0 downto -(p+3)); sign: out std_logic; e: out integer ); end division; architecture circuit of ...
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