# 华莱士树

华莱士树（Wallace tree）是一种并行数字电路，它通过以三比特为一组、用保留进位加法器进行组合，将众多二进制数相加——其中最典型的是乘法器的部分积——直到只剩两行。该结构由澳大利亚计算机科学家克里斯·S·华莱士（Chris S. Wallace）在《一种快速乘法器的建议》一文中描述，该文发表于1964年2月的《IEEE电子计算机汇刊》第EC-13卷第14–17页<sup>[1](https://patents.google.com/patent/US7313585B2/en)</sup><sup> • </sup><sup>[2](https://ieeemilestones.ethw.org/w/images/2/2a/A_suggestion_for_a_fast_multiplier.pdf)</sup>。该结构使乘法的延迟随操作数位宽呈对数增长而非线性增长，这正是它以及路易吉·达达（Luigi Dadda）1965年对其改进后的方案，至今仍是快速硬件乘法器中标准归约方案的原因<sup>[3](https://courses.csail.mit.edu/6.896/spring04/handouts/arithmetic-ckts.pdf)</sup><sup> • </sup><sup>[4](https://ieeemilestones.ethw.org/w/images/d/db/A_comparison_of_Dadda_and_Wallace_multiplier_delays.pdf)</sup>。

| 关键事实 | 详情 |
|---|---|
| 起源 | C. S. 华莱士，《一种快速乘法器的建议》，《IEEE电子计算机汇刊》EC-13，第14–17页，1964年2月<sup>[1](https://patents.google.com/patent/US7313585B2/en)</sup> |
| 基本单元 | 保留进位加法器（3:2计数器）：一个全加器从某一列取三个比特，在该列产生一个和位，并在下一列产生一个进位位<sup>[5](https://www.cs.cmu.edu/afs/cs/academic/class/15828-s98/lectures/0126/scribe.html)</sup> |
| 归约规则 | 尽可能早、尽可能多地归约各列，使用尽可能多的全加器；半加器处理只有两个比特的列<sup>[6](https://patents.google.com/patent/EP0318223A2/en)</sup><sup> • </sup><sup>[5](https://www.cs.cmu.edu/afs/cs/academic/class/15828-s98/lectures/0126/scribe.html)</sup> |
| 深度 | 每一级将3个比特归约为2个，因此关键路径随行数呈log<sub>3/2</sub>增长而非线性增长<sup>[5](https://www.cs.cmu.edu/afs/cs/academic/class/15828-s98/lectures/0126/scribe.html)</sup> |
| 渐近性 | 用于两个n位数的华莱士树乘法器以Θ(lg n)时间运行，电路规模为Θ(n²)<sup>[3](https://courses.csail.mit.edu/6.896/spring04/handouts/arithmetic-ckts.pdf)</sup> |
| 达达变体 | 路易吉·达达1965年的方法在每一层只做必要的最小归约，以更少的加法器达到相同的层数<sup>[4](https://ieeemilestones.ethw.org/w/images/d/db/A_comparison_of_Dadda_and_Wallace_multiplier_delays.pdf)</sup> |
| 8位计数 | 华莱士：38个全加器和15个半加器，最终行波进位加法器宽10位；达达：35个全加器和7个半加器，最终加法器宽14位<sup>[7](https://ijetch.org/papers/482-C094.pdf)</sup> |

## 归约的工作原理

两个n位数相乘产生n个部分积，每个部分积由其中一个操作数的一位与整个另一操作数进行与运算形成。用普通加法器直接将这些行相加很慢，因为进位必须逐级传播。华莱士树在归约过程中避免了进位传播：用作保留进位加法器的全加器取同一权重的三个比特，输出该权重的一个和位以及下一权重的一个进位位，无需等待任何其他进位<sup>[5](https://www.cs.cmu.edu/afs/cs/academic/class/15828-s98/lectures/0126/scribe.html)</sup>。

归约分级进行。在每一级中，每一列的比特按每组三个分组，送入全加器，若某列只剩两个比特则使用半加器。因此，一个有n个输入行的级并行使用⌊n/3⌋个保留进位加法器，留下⌈2n/3⌉行，同样的构造递归地应用于这些行，直到只剩两行<sup>[3](https://courses.csail.mit.edu/6.896/spring04/handouts/arithmetic-ckts.pdf)</sup>。这两行随后由一个常规的行波进位加法器——通常是超前进位加法器——合并，产生最终结果<sup>[7](https://ijetch.org/papers/482-C094.pdf)</sup>。

## 延迟与电路规模

由于每个保留进位级将三行压缩为两行，行数每级缩减为原来的2/3，关键路径随行数呈log<sub>3/2</sub>增长，而非随比特数线性增长<sup>[5](https://www.cs.cmu.edu/afs/cs/academic/class/15828-s98/lectures/0126/scribe.html)</sup>。从渐近意义上说，华莱士树乘法器以Θ(lg n)时间完成两个n位数的乘法，电路规模为Θ(n²)，而阵列乘法器需要Θ(n)时间<sup>[3](https://courses.csail.mit.edu/6.896/spring04/handouts/arithmetic-ckts.pdf)</sup>。由于最终的行波进位加法器本身可以用对数延迟构建，例如超前进位设计，乘法器的总延迟保持与字长的对数成正比<sup>[7](https://ijetch.org/papers/482-C094.pdf)</sup>。

代价在于结构。华莱士树及相关树形结构比简单的线性深度加法树布局更不规则，这使超大规模集成电路的布局布线和连线变得复杂<sup>[8](https://www.sciencedirect.com/science/article/pii/S0167926002000408)</sup>。在大型设计中，还使用更高扇入的模块，如4:2压缩器和5:3计数器，以进一步减少级数<sup>[9](https://web.mit.edu/6.111/volume2/OldFiles/www/f2018/handouts/L08_4.pdf)</sup>。

## 华莱士与达达之比较

路易吉·达达于1965年改变了华莱士的方法，从乘法器最大关键路径中(3,2)和(2,2)计数器的精确放置出发<sup>[10](https://onlinelibrary.wiley.com/doi/10.1155/2013/495354)</sup>。达达方法不是尽可能早、尽可能激进地压缩，而是定义一系列最大列高，如2、3、4、6、9，只压缩超过当前阈值的列，使用达到该阈值所需的最少加法器<sup>[11](https://pmc.ncbi.nlm.nih.gov/articles/PMC12638308/)</sup>。两种方法以相同的层数完成归约，因此它们的延迟通常被认为相近<sup>[4](https://ieeemilestones.ethw.org/w/images/d/db/A_comparison_of_Dadda_and_Wallace_multiplier_delays.pdf)</sup>。

硬件计数有所不同。对于8×8乘法器，一项比较研究报告称，华莱士树使用38个全加器和15个半加器，最终行波进位加法器为10位，而达达乘法器使用35个全加器和7个半加器，但需要14位的最终加法器，且规整性较差，更难布局<sup>[7](https://ijetch.org/papers/482-C094.pdf)</sup>。自2000年代以来的后续重新评估得出结论，达达乘法器比华莱士乘法器略快，且所需硬件更少<sup>[10](https://onlinelibrary.wiley.com/doi/10.1155/2013/495354)</sup>，若干实现研究报告称达达设计在面积、延迟和晶体管数量方面表现更好<sup>[12](https://www.ijeat.org/wp-content/uploads/papers/v8i6S3/F12800986S319.pdf)</sup>。一项2026年的压缩树研究发现，对于11至64位的基4布斯乘法器，采用灵活3:2保留进位算子的达达式最大带宽拓扑，其建模延迟和估计逻辑量均低于华莱士式最大压缩树<sup>[13](https://arxiv.org/abs/2610.02228)</sup>。

## 与布斯编码及现代设计的结合使用

树形归约通常与一开始就产生更少行的部分积生成方法配合使用。布斯编码对乘数操作数重新编码以减少部分积的数量；基4布斯编码将N×M乘法的部分积数量减至N/2，然后由华莱士树或达达树对所得各行求和，再接一个快速最终加法器<sup>[14](https://www.nature.com/articles/s41598-026-49807-2)</sup><sup> • </sup><sup>[15](https://onlinelibrary.wiley.com/doi/full/10.1155/2011/342532)</sup>。

在FPGA上情况有所不同。现代FPGA和自适应SoC架构中的专用DSP模块，例如带有27×24位乘法器和58位累加器的AMD DSP58原语，提供了硬化的乘累加路径，在许多信号处理设计中取代了离散树形乘法器<sup>[16](https://docs.amd.com/r/en-US/am011-versal-acap-trm/Digital-Signal-Processor)</sup>。尽管如此，压缩树仍然是乘法之外的一种通用原语：点积和乘积之和都属于同一类比特堆归约，而近期的方法学研究将树生成本身视为一个延迟感知问题<sup>[13](https://arxiv.org/abs/2610.02228)</sup>。

## References

1. [US7313585B2, Multiplier circuit, Google Patents (citing C. S. Wallace, IEEE Trans. Electronic Computers EC-13, pp. 14–17, Feb. 1964)](https://patents.google.com/patent/US7313585B2/en)
2. [C. S. Wallace, "A Suggestion for a Fast Multiplier", IEEE Transactions on Electronic Computers, February 1964 (scan)](https://ieeemilestones.ethw.org/w/images/2/2a/A_suggestion_for_a_fast_multiplier.pdf)
3. [Chapter 28, Arithmetic Circuits, MIT 6.896 Theory of Parallel Hardware course notes](https://courses.csail.mit.edu/6.896/spring04/handouts/arithmetic-ckts.pdf)
4. [W. J. Townsend, E. E. Swartzlander Jr., and J. A. Abraham, "A comparison of Dadda and Wallace multiplier delays", Proceedings of the SPIE, 2003](https://ieeemilestones.ethw.org/w/images/d/db/A_comparison_of_Dadda_and_Wallace_multiplier_delays.pdf)
5. [Scribe Notes, FPGA Arithmetic II, Carnegie Mellon University, January 26, 1998](https://www.cs.cmu.edu/afs/cs/academic/class/15828-s98/lectures/0126/scribe.html)
6. [ep0318223a2 - high speed parallel multiplier circuit - google patents](https://patents.google.com/patent/EP0318223A2/en)
7. [IACSIT International Journal of Engineering and Technology, Vol. 4, No. 6, December 2012](https://ijetch.org/papers/482-C094.pdf)
8. ["To Booth or not to Booth", Integration, the VLSI Journal, 2002](https://www.sciencedirect.com/science/article/pii/S0167926002000408)
9. [MIT 6.111 Fall 2018 Lecture 8, Arithmetic Circuits and Multipliers](https://web.mit.edu/6.111/volume2/OldFiles/www/f2018/handouts/L08_4.pdf)
10. [B. Ramkumar and H. M. Kittur, "Faster and Energy-Efficient Signed Multipliers", VLSI Design, 2013](https://onlinelibrary.wiley.com/doi/10.1155/2013/495354)
11. [Design of high-performance, accurate, and approximate Dadda-tree multipliers for image processing applications, PMC](https://pmc.ncbi.nlm.nih.gov/articles/PMC12638308/)
12. [S. N. Shivappriya M., Narmatha, and V. Madhusri, "Design of Dadda and Wallace Tree Multiplier Using Compressor Technique", IJEAT, 2019](https://www.ijeat.org/wp-content/uploads/papers/v8i6S3/F12800986S319.pdf)
13. [C. Giacomotto, "A Compression Tree Generation Method for High Performance VLSI Datapaths", arXiv:2610.02228, 2026](https://arxiv.org/abs/2610.02228)
14. [FPGA-specific accurate and approximate compressor-based multipliers, Scientific Reports, 2026](https://www.nature.com/articles/s41598-026-49807-2)
15. [I. Hatai et al., "A New High-Performance Digital FM Modulator and Demodulator for Software-Defined Radio", International Journal of Reconfigurable Computing, 2011](https://onlinelibrary.wiley.com/doi/full/10.1155/2011/342532)
16. [Digital Signal Processor, AMD Versal Adaptive SoC Technical Reference Manual AM011](https://docs.amd.com/r/en-US/am011-versal-acap-trm/Digital-Signal-Processor)

---
*Initially written Oct 15, 2026*

Topic: 物质世界与数学 › 数学与统计学 › 数与代数 › Arithmetic and number systems › Computational arithmetic › Hardware arithmetic units

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/wallace-tree

English original: https://www.edgepedia.org/wallace-tree
