t27.aiРусский

What arithmetic costs

You will learn

Why a multiplier is expensive and an adder is cheap, measured on a real chip.

In logic, every operation has a price paid in chip resources. An adder is a carry chain, cheap and fast. A multiplier built from LUTs is large; the chip has DSP blocks made for multiplying, and a synthesizer uses them when it may. These curves are real yosys counts from 4 to 64 bits. Switch DSPs off and on, and see why hardware people care so much about the width of every number.

Try it

Pick Multiply, switch DSP48E1 to -nodsp, and compare the LUTs at 32 bits with and without DSPs.

Open the interactive lesson →

Cost curves: adders, multipliers and MACs on a Xilinx 7-series
Cost curves: adders, multipliers and MACs on a Xilinx 7-series ↗

Open the lesson's spec in the player: specs/tutorial/05_widths_and_casts.t27

All lessons