The Wallace tree (also called the Wallace reduction) is a hardware architecture used in digital circuit design to implement binary multiplication. It forms the core of the Wallace multiplier, a parallel digital multiplier circuit that multiplies two integers.
Overview
A Wallace multiplier uses a selection of full adders and half adders—collectively forming the Wallace tree—to sum the partial products of a multiplication in successive stages until only two numbers remain. It was devised by the Australian computer scientist Chris Wallace in 1964, in his paper "A suggestion for a fast multiplier" (IEEE Transactions on Electronic Computers, February 1964).
Operation
The Wallace tree proceeds in three steps:
- Partial product generation: Each bit of one argument is multiplied by each bit of the other (accomplished with AND gates), producing n² partial product bits.
- Reduction: The number of partial products is reduced to two through layers of full and half adders. As long as three or more wires share the same weight, they are combined using full adders; pairs of wires are combined with half adders; and single wires are passed through to the next layer.
- Final addition: The two remaining numbers are added with a conventional adder to obtain the final product.
Performance characteristics
The Wallace tree offers a speed advantage over naive partial-product addition. It has O(log n) reduction layers, each with O(1) propagation delay, whereas naive addition requires O(log² n) time. The total multiplication time is O(log n), making it only slightly slower than addition. From a complexity-theoretic perspective, the Wallace tree algorithm places multiplication in the complexity class NC1.
Its principal drawback is a significantly higher gate count compared to straightforward addition of partial products. These estimates consider gate delays and do not account for wire delays, which can be substantial.
Relationship to other designs
The Wallace tree is a variant of long multiplication. It is sometimes combined with Booth encoding. It is frequently contrasted with the Dadda tree: Wallace multipliers reduce as much as possible on each layer, while Dadda multipliers attempt to minimize the required number of gates by postponing reduction to the upper layers.
Applications
Wallace tree multipliers are widely used in computer arithmetic and digital signal processing, where efficient high-speed multiplication is essential. The architecture is commonly implemented in VLSI and FPGA designs, with Verilog and VHDL implementations being standard educational and industrial practice.