e01.org

Binary multiplier

A binary multiplier is an electronic circuit used in digital electronics, such as a computer, to multiply two binary numbers. A variety of computer arithmetic techniques can be used to implement a digital multiplier. Most techniques involve computing the set of partial products, which are then summed together using binary adders. This process is similar to long multiplication, except that it uses a base-2 (binary) numeral system.

A binary multiplier is an electronic circuit used in digital electronics, such as a computer, to multiply two binary numbers. A variety of computer arithmetic techniques can be used to implement a digital multiplier. Most techniques involve computing the set of partial products, which are then summed together using binary adders. This process is similar to long multiplication, except that it uses a base-2 (binary) numeral system. ==History== Between 1947 and 1949 Arthur Alec Robinson worked for English Electric, as a student apprentice, and then as a development engineer. Crucially during this period he studied for a PhD degree at the University of Manchester, where he worked on the design of the hardware multiplier for the early Mark 1 computer. However, until the late 1970s, most minicomputers did not have a multiply instruction, and so programmers used a "multiply routine" which repeatedly shifts and accumulates partial results, often written using loop unwinding. Mainframe computers had multiply instructions, but they did the same sorts of shifts and adds as a "multiply routine". Early microprocessors also had no multiply instruction. Though the multiply instruction became common with the 16-bit generation, at least two 8-bit processors have a multiply instruction: the Motorola 6809, introduced in 1978, and Intel MCS-51 family, developed in 1980, and later the modern Atmel AVR 8-bit microprocessors present in the ATMega, ATTiny and ATXMega microcontrollers. As more transistors per chip became available due to larger-scale integration, it became possible to put enough adders on a single chip to sum all the partial products at once, rather than reuse a single adder to handle each partial product one at a time. Because some common digital signal processing algorithms spend most of their time multiplying, digital signal processor designers sacrifice considerable chip area in order to make the multiply as fast as possible; a single-cycle multiply–accumulate unit often used up most of the chip area of early DSPs. p0[7:0] = a[0] × b[7:0] = {8{a[0]}} & b[7:0] p1[7:0] = a[1] × b[7:0] = {8{a[1]}} & b[7:0] p2[7:0] = a[2] × b[7:0] = {8{a[2]}} & b[7:0] p3[7:0] = a[3] × b[7:0] = {8{a[3]}} & b[7:0] p4[7:0] = a[4] × b[7:0] = {8{a[4]}} & b[7:0] p5[7:0] = a[5] × b[7:0] = {8{a[5]}} & b[7:0] p6[7:0] = a[6] × b[7:0] = {8{a[6]}} & b[7:0] p7[7:0] = a[7] × b[7:0] = {8{a[7]}} & b[7:0] where the following Verilog notation is used: {8{a[0]}} means repeating a[0] (the 0th bit of a) 8 times. a[7:0] stands for the selecting a from its 7th bit to its 0th bit, inclusive, for a total of 8 bits. & symbol stands for a bitwise AND. In order to obtain our product, we then need to add up all eight of our partial products, as shown here: p0[7] p0[6] p0[5] p0[4] p0[3] p0[2] p0[1] p0[0] + p1[7] p1[6] p1[5] p1[4] p1[3] p1[2] p1[1] p1[0] 0 + p2[7] p2[6] p2[5] p2[4] p2[3] p2[2] p2[1] p2[0] 0 0 + p3[7] p3[6] p3[5] p3[4] p3[3] p3[2] p3[1] p3[0] 0 0 0 + p4[7] p4[6] p4[5] p4[4] p4[3] p4[2] p4[1] p4[0] 0 0 0 0 + p5[7] p5[6] p5[5] p5[4] p5[3] p5[2] p5[1] p5[0] 0 0 0 0 0 + p6[7] p6[6] p6[5] p6[4] p6[3] p6[2] p6[1] p6[0] 0 0 0 0 0 0 + p7[7] p7[6] p7[5] p7[4] p7[3] p7[2] p7[1] p7[0] 0 0 0 0 0 0 0 ----------------------------------------------------------------------------------------------- P[15] P[14] P[13] P[12] P[11] P[10] P[9] P[8] P[7] P[6] P[5] P[4] P[3] P[2] P[1] P[0] In other words, P[15:0] is produced by summing p0, p1 << 1, p2 << 2, and so forth, to produce our final unsigned 16-bit product: P[15:0] = p0[7:0] + (p1[7:0] << 1) + (p2[7:0] << 2) + (p3[7:0] << 3) + (p4[7:0] << 4) + (p5[7:0] << 5) + (p6[7:0] << 6) + (p7[7:0] << 7) p0[15:0] = u[7:0] × v[7:0] p1[15:0] = u[15:8] × v[7:0] p2[15:0] = u[7:0] × v[15:8] p3[15:0] = u[15:8] × v[15:8] The final product would then be: P[31:0] = p0 + p1 << 8 + p2 << 8 + p3 << 16 One notices that if only P[15:0] (the lower 16 bits of the result) is required, no computation of p3 is needed. ==Hardware implementation== As described above, the process of multiplication can be split into 3 steps: generating partial product reducing partial product computing final product ==See also== Booth's multiplication algorithm Fused multiply–add Dadda multiplier Wallace tree BKM algorithm for complex logarithms and exponentials Kochanski multiplication for modular multiplication Logical shift left ==References== ==External links== Multiplier Designs targeted at FPGAs Binary Multiplier circuit using Half -Adders and digital gates.

References

  1. ^ Rather, Elizabeth D.; Colburn, Donald R.; Moore, Charles H. (1996) [1993]. "The evolution of Forth" . In Bergin, Thomas J.; Gibson, Richard G. (eds.). History of programming languages---II . Association for Computing Machinery. pp. 625– 670. doi : 10.1145/234286.1057832 . ISBN 0201895021 . Wikipedia revision 1334945769, retrieved 2026-11-20 · 1795129200.0
  2. ^ Parhami, Behrooz (2000). Computer Arithmetic: Algorithms and Hardware Designs . Oxford University Press . ISBN 0-19-512583-5 . Wikipedia revision 1334945769, retrieved 2026-11-20 · 1795129200.0
  3. ^ Davies, A.C.; Fung, Y.T. (1977). "Interfacing a hardware multiplier to a general-purpose microprocessor" . Microprocessors . 1 (7): 425– 432. doi : 10.1016/0308-5953(77)90004-6 . Wikipedia revision 1334945769, retrieved 2026-11-20 · 1795129200.0
  4. ^ Rafiquzzaman, M. (2005). "§2.5.1 Binary Arithmetic: Multiplication of Unsigned Binary Numbers" . Fundamentals of Digital Logic and Microcomputer Design . Wiley . p. 46. ISBN 978-0-47173349-2 . Wikipedia revision 1334945769, retrieved 2026-11-20 · 1795129200.0
  5. ^ Rafiquzzaman 2005 , §7.3.3 Addition, Subtraction, Multiplication and Division of Signed and Unsigned Numbers p. 251 Wikipedia revision 1334945769, retrieved 2026-11-20 · 1795129200.0
  6. ^ Kant, Krishna (2007). "§2.11.2 16-Bit Microprocessors" . Microprocessors and Microcontrollers: Architecture, Programming and System Design 8085, 8086, 8051, 8096 . PHI Learning. p. 57. ISBN 9788120331914 . Wikipedia revision 1334945769, retrieved 2026-11-20 · 1795129200.0
  7. ^ Baugh, Charles Richmond; Wooley, Bruce A. (December 1973). "A Two's Complement Parallel Array Multiplication Algorithm". IEEE Transactions on Computers . C-22 (12): 1045– 1047. doi : 10.1109/T-C.1973.223648 . S2CID 7473784 . Wikipedia revision 1334945769, retrieved 2026-11-20 · 1795129200.0
  8. ^ Gebali, Fayez (2003). "Baugh–Wooley Multiplier" (PDF) . University of Victoria , CENG 465 Lab 2. Archived (PDF) from the original on 2018-04-14 . Retrieved 2018-04-14 . Wikipedia revision 1334945769, retrieved 2026-11-20 · 1523660400.0
  9. ^ Hatamian, Mehdi; Cash, Glenn (1986). "A 70-MHz 8-bit×8-bit parallel pipelined multiplier in 2.5-μm CMOS" . IEEE Journal of Solid-State Circuits . 21 (4): 505– 513. Bibcode : 1986IJSSC..21..505H . doi : 10.1109/jssc.1986.1052564 . Wikipedia revision 1334945769, retrieved 2026-11-20 · 1795129200.0
  10. ^ Reynders, Nele; Dehaene, Wim (2015). Ultra-Low-Voltage Design of Energy-Efficient Digital Circuits . Analog Circuits and Signal Processing. Springer. doi : 10.1007/978-3-319-16136-5 . ISBN 978-3-319-16135-8 . ISSN 1872-082X . LCCN 2015935431 . Wikipedia revision 1334945769, retrieved 2026-11-20 · 1795129200.0
  11. ^ a b Peng Chang. "A Reconfigurable Digital Multiplier and 4:2 Compressor Cells Design" . 2008. Wikipedia revision 1334945769, retrieved 2026-11-20 · 1795129200.0
  12. ^ a b Leong, Yuhao; Lo, HaiHiung; Drieberg, Michael; Sayuti, Abu Bakar; Sebastian, Patrick. "Performance Comparison Review of 8-3 compressor on FPGA" . Wikipedia revision 1334945769, retrieved 2026-11-20 · 1795129200.0
  13. ^ a b c Rouholamini, Mahnoush; Kavehie, Omid; Mirbaha, Amir-Pasha; Jasbi, Somaye Jafarali; Navi, Keivan. "A New Design for 7:2 Compressors" (PDF) . Wikipedia revision 1334945769, retrieved 2026-11-20 · 1795129200.0
source: e01 Encyclopedia · licence: CC BY-SA 4.0 · page · source revision

Cite this

"Binary multiplier". 1769432831. e01 Encyclopedia. CC BY-SA 4.0. https://en.wikipedia.org/w/index.php?oldid=1334945769

JSON record · API collection · citation policy