Wallace Tree Multiplier

from Wikipedia, the free encyclopedia

A Wallace Tree multiplier is a multiplier that is used in digital technology . The process is named after Christopher Stewart Wallace , who introduced this multiplier in 1964.

functionality

A - bit Wallace tree based like the dadda multiplier in the formula

.

Here, and , are the binary representations of the two numbers to be multiplied.

The Wallace Tree Multiplier works in three steps:

  1. For each pair with and calculate the partial product .
  2. Add the results of this calculation within the tree structure specific to the Wallace tree multiplier in stages using full and half adders until there are only two numbers left that need to be added.
  3. Add these two numbers using a normal adder.

Tree structure of the Wallace tree multiplier

In step 2 of the above steps, the partial products are added in a tree structure.

The partial products are first arranged in columns, respectively so that in one column all the partial products with standing. Then you summarize the columns of the resulting table in groups of three. Each column of these groups of three is used as an input for a full adder if there are three inputs in the column, for a half adder if there are two entries, and not modified at all if there is only one entry. The more highly weighted output of the adders is then assigned to the next column. This process is repeated until there is only one group of three with only two entries in each column. These last two lines are then added using a normal adder .

Example 8-bit

Here you can see the above procedure for an 8-bit Wallace tree multiplier. The dots stand for the partial products or for the outputs of the previously used full and half adders, which are identified by the thin lines.

running time

The functionality of the Wallace tree multiplier was described above under the use of tables. Each of these tables stands for a step that an electronic signal must go through. So, to find out the runtime of the Wallace tree multiplier, let's find out how many tables there are.

Since a full adder transformed three signals into two, and possibly in a group of three (see above) less elements are needed than for a full adders do not exist is if we with the height of the j-th table, and with the number of input bits designate :

The following estimate can be derived from this:

So it follows

.

If you choose now , the following applies

However, a table with seven lines can be reduced in a constant number of steps using the above procedure. The following applies to the runtime for a constant number of steps :

Since the running time of an adder (the last step in the Wallace tree multiplier) is also in , the Wallace tree multiplier has the same asymptotic running time as an adder and is therefore faster than an unsigned parallel multiplier , which has an asymptotic running time of .

The Wallace tree multiplier is also slower in absolute terms than the Dadda tree multiplier , although both multipliers have the same asymptotic running time of .

literature

Individual evidence

  1. ^ CS Wallace: A suggestion for a fast multiplier . In: IEEE Transactions on Electronic Computers . EC-13, No. 1 , February 1964, p. 14-17 , doi : 10.1109 / PGEC.1964.263830 ( PDF ).

Web links