Module 2: Combinational Circuit Design · 2.3 Multipliers & Shifters

The Wallace Tree

In the previous article, we analyzed the array multiplier. The array multiplier accumulates partial product rows sequentially, resulting in linear $O(N)$ propagation latency. This article examines the Wallace Tree Multiplier, proposed by Christopher Wallace in 1964. The Wallace tree eliminates sequential row-by-row waiting. It uses parallel networks of Carry-Save Adders (CSAs) to reduce partial product rows simultaneously. The reduction tree achieves logarithmic propagation latency ($O(\log N)$).

Principles of Carry-Save Addition (CSA)

The fundamental building block of a reduction tree is the Carry-Save Adder (CSA), also designated as a 3:2 compressor. A CSA receives three $N$-bit binary vectors ($A, B, C$) and produces two $N$-bit output vectors:

  1. Sum Vector ($S$): Bitwise sum bits.
  2. Carry Vector ($C$): Bitwise carry-out bits.

$$S_i = A_i \oplus B_i \oplus C_i$$

$$C_{i+1} = A_i B_i + B_i C_i + A_i C_i$$

Figure 1 illustrates the architecture of a carry-save adder:

Carry-save adder
Figure 1: Carry-Save Adder schematic: parallel full adders without horizontal carry propagation

A CSA does not propagate carries horizontally between adjacent bit positions. Each full adder operates independently. The carry bit generated at position $i$ passes directly to position $i+1$ of the carry output vector. Because carries do not ripple, propagation delay through a CSA is constant (two gate delays) regardless of word width $N$.

4-Row Wallace Tree Reduction Example

A 4×4 multiplier produces four partial product rows ($\text{PP}_0$ through $\text{PP}_3$). A Wallace tree reduces these four vectors through two CSA levels (Figure 2):

Wallace tree for four rows
Figure 2: Wallace tree reduction structure: two CSA levels reduce four rows to two vectors for final addition

  1. Level 1 (Reduction from 4 to 3 Rows):
    • A CSA compresses rows $\text{PP}_0$, $\text{PP}_1$, and $\text{PP}_2$ into a sum vector ($S_1$) and a carry vector ($C_1$).
    • Row $\text{PP}_3$ passes through directly without modification.
  2. Level 2 (Reduction from 3 to 2 Rows):
    • A second CSA compresses vector $S_1$, shifted carry vector $C_1$, and row $\text{PP}_3$ into final sum vector $S_2$ and carry vector $C_2$.
  3. Final Carry-Propagate Adder (CPA):
    • A high-speed adder (such as a carry-lookahead or parallel-prefix adder) adds $S_2$ and $C_2$ to produce the final 8-bit product.

Each CSA stage reduces the number of candidate vectors by a factor of 1.5 ($\frac{3}{2}$). Table 1 lists the required reduction levels across word widths:

Number of Partial Product Rows Required CSA Reduction Levels
3 1
4 2
5–6 3
7–9 4
10–13 5
14–19 6
20–28 7
29–42 8

For a 32-bit multiplier (32 partial products), a Wallace tree requires only 8 CSA levels.

Numerical Trace Walkthrough

Multiply $A = 0110_2$ ($6_{10}$) by $B = 0101_2$ ($5_{10}$) using the 4-row reduction tree:

  • $\text{PP}_0 = 0000_0110_2$
  • $\text{PP}_1 = 0000_0000_2$
  • $\text{PP}_2 = 0001_1000_2$
  • $\text{PP}_3 = 0000_0000_2$
  1. Level 1: Compresses $\text{PP}_0, \text{PP}_1, \text{PP}_2$. Because at most one active 1 exists in any bit column, no carries are generated:
    • $S_1 = 0001_1110_2$, $C_1 = 0000_0000_2$.
  2. Level 2: Compresses $S_1, C_1, \text{PP}_3$:
    • $S_2 = 0001_1110_2$, $C_2 = 0000_0000_2$.
  3. Final Adder: $$P = S_2 + C_2 = 0001_1110_2 + 0 = 30_{10}$$

Remember that carry vector outputs must always shift left by one bit position relative to their source columns.

Timing Comparison: Wallace Tree Versus Array Multipliers

Table 2 estimates propagation latency between array multipliers and Wallace tree multipliers across standard bit widths:

Multiplier Width Partial Products CSA Tree Levels Wallace Tree Latency Array Multiplier Latency
4 bits 4 2 9 gate delays 10 gate delays
8 bits 8 4 15 gate delays 22 gate delays
16 bits 16 6 21 gate delays 42 gate delays
32 bits 32 8 27 gate delays 82 gate delays

At 32 bits, the Wallace tree operates more than three times faster than an array multiplier.

The Dadda Reduction Tree Optimization

In 1965, Luigi Dadda introduced an optimization to the Wallace tree reduction schedule. While a Wallace tree reduces rows as aggressively as possible at every stage, a Dadda Tree reduces rows only to the threshold required by the logarithmic level boundary.

Dadda reduction uses a reverse planning sequence:

  • Target thresholds: 28 $\to$ 19 $\to$ 13 $\to$ 9 $\to$ 6 $\to$ 4 $\to$ 3 $\to$ 2 rows.
  • Full adders and half adders are placed only in columns that exceed the target threshold for that stage.
  • Result: Achieves identical critical path latency while consuming 10% to 20% fewer full adder cells.

Modern EDA synthesis compilers optimize partial product reduction trees automatically based on SDC timing constraints.

Silicon Wiring and Implementation Trade-Offs

The Wallace tree achieves high performance, but introduces three physical design trade-offs:

  1. Irregular Wiring Density: Unlike the regular rectangular grid of an array multiplier, carry vectors in a Wallace tree cross multiple non-adjacent bit columns. This increases routing congestion in ASIC metal layers.
  2. Layout Area Overhead: For small bit widths ($N \le 4$), wiring parasitics and full adder overhead can exceed the cost of an array multiplier.
  3. Verification Complexity: Irregular interconnect trees require formal equivalence checking to verify layout correctness.

For bit widths $N \ge 16$, the latency advantages of the reduction tree outweigh routing complexity.

Practice Exercises

Problem 1: A digital signal processing unit must reduce six partial product vectors ($\text{PP}_0$ through $\text{PP}_5$) to two vectors.

  1. Determine the number of CSA reduction levels required.
  2. Calculate the total number of CSA blocks.
  3. Specify the interconnection sequence.
View Solution
  1. Reduction Levels: According to Table 1, 6 rows require 3 CSA levels.
  2. Interconnection Sequence:
    • Level 1: Deploy two CSAs in parallel.
      • $\text{CSA}_1$ compresses $\text{PP}_0, \text{PP}_1, \text{PP}_2 \implies$ generates sum $S_A$ and carry $C_A$.
      • $\text{CSA}_2$ compresses $\text{PP}_3, \text{PP}_4, \text{PP}_5 \implies$ generates sum $S_B$ and carry $C_B$.
      • Total vectors after Level 1: 4 vectors ($S_A, C_A, S_B, C_B$).
    • Level 2: Deploy one CSA.
      • $\text{CSA}_3$ compresses $S_A, C_A, S_B \implies$ generates sum $S_C$ and carry $C_C$.
      • Vector $C_B$ passes through without modification.
      • Total vectors after Level 2: 3 vectors ($S_C, C_C, C_B$).
    • Level 3: Deploy one CSA.
      • $\text{CSA}4$ compresses $S_C, C_C, C_B \implies$ generates final vectors $S{\text{final}}$ and $C_{\text{final}}$.
  3. Total Hardware: 4 CSA blocks arranged across 3 logic levels.

Problem 2: Explain why the propagation delay of an $N$-bit Carry-Save Adder is independent of bit width $N$.

View Solution

An $N$-bit carry-save adder consists of $N$ independent 1-bit full adders operating in parallel. Unlike a ripple-carry adder, there are no horizontal carry connections between adjacent full adder cells. Each cell computes its sum bit ($A_i \oplus B_i \oplus C_i$) and carry bit ($A_i B_i + B_i C_i + A_i C_i$) strictly from its own inputs. The carry bit routes to position $i+1$ of the next stage vector. Because carries do not propagate horizontally, propagation delay equals two gate delays for any word width.

In the next article, we examine logical, arithmetic, and rotate shift operations in digital hardware.

← The Array Multiplier Shift Operations →