Home / Learn Verilog / Shift-and-Add Multiplier

Shift-and-Add Multiplier

Multiply with a loop of adds.

In shortMultiply with a loop of adds.

What's actually going on

Shift-addmultiplier bitadd multiplicand?shiftrepeat N
Shift-add

Definition

For each multiplier bit that is 1, add the shifted multiplicand.

Why you need this

Small multiplier that takes N clocks.

How it works

Like long multiplication in binary.

Where you'll see this

  • Everyday RTL design
  • FPGA and ASIC projects
  • Testbenches and debugging

Try it

4x4 sequential multiplierVerilog: edit and run

4 clocks for 4 bits.

Test what you just read

1. Shift-add multiplies in...