Step 1: Create an altmult_add Megafunction

To create an altmult_add megafunction that implements four pipelined 16-bit multipliers feeding a single 34-bit adder, follow these steps:

  1. Click the Selection and Smart Drawing Tool button on the toolbar.

  2. Double-click an empty space in the Block Editor window. The Symbol dialog box appears automatically.

  3. In the Symbol dialog box, click MegaWizard Plug-In Manager. The first page of the MegaWizard Plug-In Manager appears.

  4. In the first page of the MegaWizard Plug-In Manager, make sure Create a new custom megafunction variation is selected and click Next.

  5. Under Which megafunction would you like to customize?, click the + icon to expand the arithmetic folder, and then select ALTMULT_ADD.

  6. Specify the following responses to the remaining wizard prompts:

  7. Wizard Prompt:
    Response:
    Which device family will you be using? Stratix
    Which type of output file do you want to create? AHDL
    What name do you want for the output file? d:\qdesigns\stratix\mac

  8. Click Next. MegaWizard Plug-In Manager - ALTMULT_ADD [Page 1 of 4] appears.


To continue the tutorial, proceed to Step 2: Specify altmult_add Ports & Parameters.