Step 1: Create an lpm_fifo+ Megafunction

You can use the MegaWizard Plug-In Manager (Tools menu) to create a variation of the lpm_fifo+ megafunction. To create a 16-bit, dual-clock FIFO with separate read and write clocks, 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 Storage folder, and then select LPM_FIFO+.

  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\fifo

  8. Click Next. MegaWizard Plug-In Manager - FIFO [Page 3 of 8] appears.


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