EDA Interfaces

Example of Creating a Verilog HDL Custom Variation of the lpm_ram_dq Function



The following example illustrates how to use the MegaWizard® Plug-In Manager to create a custom megafunction variation of the lpm_ram_dq function. You can follow similar steps to create custom megafunction variations of other megafunctions. To create a custom megafunction variation for the lpm_ram_dq function:

  1. Choose MegaWizard Plug-In Manager (Tools menu).

  2. When you are asked Which action do you want to perform?, select Create a new custom megafunction variation and click Next.

  3. When you are asked Which type of output file do you want to create?, select Verilog HDL.

  4. In the Available Megafunctions list, click on the + icon to expand the storage folder and select LPM_RAM_DQ.

  5. When you are asked What name do you want for the file?, type the appropriate file name or click Browse (...) to select the appropriate location. For this example, the path and file name should be C:\projects\use_lpm_ram_dq.v.

  6. Click Next.

  7. To specify the device and set the bus width and specify which ports to register:

    1. When you are asked Create RAM for which device family?, select APEX20KE.

    2. When you are asked How wide should the 'q' output bus be?, select 8 bits.

    3. When you are asked How wide should the 'address' input bus be?, select 8 bits.

  8. Click Next.

  9. When you are asked Which ports should be registered?, turn on 'data' input port, 'address' input port, and 'q' output port.

  10. Click Next.

  11. To set the initial content of the memory, select No, leave it blank under Do you want to specify the initial content of the memory?

  12. Click Next.

  13. The Summary page informs you of the files that the MegaWizard Plug-In Manager creates. In this example, it creates the following files:

  14. C:\projects\use_lpm_ram_dq.v
    C:\projects\use_lpm_ram_dq.inc
    C:\projects\use_lpm_ram_dq.cmp
    C:\projects\use_lpm_ram_dq.bsf
    C:\projects\use_lpm_ram_dq_bb.v
    C:\projects\use_lpm_ram_dq_inst.v

  15. To create the files and close the MegaWizard Plug-In Manager, click Finish.


Back to Top

- PLDWorld -

 

Created by chm2web html help conversion utility.