EDA Interfaces

Creating & Instantiating a VHDL Function for Use with the Synplify Software



You can create or modify design files that contain custom megafunction variations of Altera-provided functions. You can then instantiate the custom megafunction variations in a design file for use with the Synplicity Synplify and Quartus® II software. This procedure shows only how to instantiate a ClockLock® PLL function using VHDL; however, you can use similar procedures to instantiate other Altera-provided functions.

NOTE If you want to use the lpm_mult, lpm_ram_dp, lpm_ram_dq, lpm_rom, lpm_latch, or lpm_ff library of parameterized modules (LPM) functions, refer to Create a Design for Use with the Synplify Software.

  1. If you have not already done so, proceed to Set Up the Synplify Working Environment.

  2. If you have not already done so, proceed to Create a Design for Use with the Synplify Software.

  3. Open the MegaWizard® Plug-In Manager (Tools menu) and specify appropriate options for your the megafunction you want to instantiate.
  4. The MegaWizard Plug-In Manager generates custom megafunction variations that are based on Altera-provided functions, including library of parameterized modules (LPM) functions, as well as Altera® megafunctions.

    Refer to the following example to create a VHDL custom megafunction variation of the altclklock function:

  5. To prepare the VHDL design for synthesis with the Synplify software, you must specify that the Synplify software should treat the design file created in the MegaWizard Plug-In Manager as a "black box." The Synplify software then makes the correct connections to the ports in the Verilog HDL netlist file (.vqm). The Quartus II software reads in the Verilog HDL netlist file as a Verilog Quartus II Mapping File (.vqm) and processes the instantiated megafunction. If you are using Synplicity Synplify version 5.22 or later software, the Synplify software automatically treats all components that do not have behavioral descriptions as black boxes and you do not need to modify the source file.To specify that the Synplify software should treat the design file for the megafunction as a "black box," refer to the following example:
  6. NOTE The design file generated by the MegaWizard Plug-In Manager must be in the same directory as the VQM File or added to the Quartus II project.

  7. If necessary, perform a functional simulation of the design using an EDA simulation tool. Refer to the following example for a sample script used in performing a functional simulation:
  8. Proceed to Generate Verilog Quartus® Mapping Files with the Synplify Software.

  9. If you have not already done so, create a new project or open an existing project.

  10. Compile the design in the Quartus II software.

  11. If necessary, proceed to Perform a Timing Simulation with the ModelSim Software or simulate the design with another Verilog HDL simulation tool. Refer to to the following example for a sample script that you can use to perform the timing simulation:


Back to Top

- PLDWorld -

 

Created by chm2web html help conversion utility.