目录
一、Wallace树
1963年,C.S.Wallace提出的一种高效快速的加法树结构,被后人称为Wallace树。其基本思想如下在其文章中描述如下:
Assuming that all summands are generated simultaneously the best possible first step is to group the summands into threes, and introduce each group into its own pseudoadder, thus reducing the count of numbers by a factor of 1.5 ( or a little less, if the number of summands is not multiple of three). The best possible second step is to group the numbers resulting from the first step into threes and again add each group in its own pseudoadder. By continuing such steps until only two numbers remain, the addition is completed in a time proportional to the logarithm of the number of summands.
简单地讲即许多个加数求和,每3个加数分为一组,压缩至2个加数,循环往复。参考往期文章《进位保存加法器原理与设计》:https://zhuanlan.zhihu.com/p/102387648
以下是加数W1-W39的Wallace结构例子: