Section 5: Create a Design File with the MegaWizard Plug-In Manager

The design file acc.v requires a 12-bit adder function, which you can implement with a variation of the lpm_add_sub function. The acc.v file instantiates this function as accum. You can create this custom variation with the MegaWizard Plug-In Manager.

NOTE If you are already familiar with using the MegaWizard Plug-In Manager, you can copy the Altera-provided files that would be generated by the MegaWizard Plug-In Manager, rather than actually generating the files, by following the instructions in Copying Altera-Provided Design Files.

If you want to learn how to create the custom megafunction variation with the MegaWizard Plug-In Manager, proceed to Step 1: Create a Verilog HDL Variation of a Megafunction.