Section 6: Create & Instantiate a Multiply-Add Megafunction

Each Stratix device contains high-speed DSP blocks that allow you to efficiently implement DSP multiply functions in dedicated hardware without using other logic elements (LEs). You can use the DSP blocks to implement arithmetic functions such as multiply and multiply-accumulate with or without using add, subtract, or accumulate functions.

Each DSP block contains several multipliers that you can configure to implement multipliers with widths up to 9 bits (eight multipliers per block), 18 bits (four multipliers per block), or 36 bits (one multiplier per block). These multipliers can optionally feed an adder or accumulator within the block. You can use these dedicated DSP blocks to simplify routing and increase performance by ensuring that all related connections are located within the DSP block.

You can use the MegaWizard Plug-In Manager to create and instantiate DSP functions, such as a multiply-add (altmult_add) megafunction. When you compile a design that contains DSP functions, the Compiler automatically implements the logic of these functions in DSP blocks. The following tutorial module teaches you how to use the MegaWizard Plug-In Manager to create and instantiate a multiply-add megafunction that is implemented in a DSP block.


To continue the tutorial, proceed to Step 1: Create an altmult_add Megafunction.