Altera Home Page
Literature Licensing
Buy On-Line Download

  Home   |   Products   |   Support   |   End Markets   |   Technology Center   |   Education & Events   |   Corporate   |   Buy On-Line  
  Knowledge Database   |   Devices   |   Design Software   |   Intellectual Property   |   Reference Designs   |   Design Examples   |   mySupport  

 Products
   Quartus II
      SOPC Builder
      MAX+PLUS II
      ModelSim-Altera
  
 Resource Centers
      Overview
      Installation & Licensing
      Scripting
      Board Design & I/O
      Design Entry & Planning
      Synthesis & Netlist Viewers
      Incremental Compilation
      Optimization
      Power Management
   TimeQuest Timing Analyzer
      Classic Timing Analyzer
      Simulation & Verification
      On-Chip Debugging
      HardCopy Design
  
 Software Resources
      OS Support
      Driver Installation
  
 Download & Licensing
      Download
   Licensing
  
 Quartus II EDA Support
      Quartus II Interface
   Synthesis Tools
          Design Compiler
          DC FPGA
          FPGA Compiler II
          LeonardoSpectrum
          Precision RTL Synthesis
          Synplify
   Simulation Tools
   Formal Verification Tools
   Timing Analysis Tools
   Physical Synthesis Tools
   Board Level Tools
  
 Legacy Sw. EDA Support
      View by Vendor
      View by Tool
      View by Function
  

Creating and Instantiating a Verilog HDL Function for Use with the FPGA Compiler II 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 Synopsys FPGA Compiler II and Quartus II software. This procedure shows only how to instantiate an LVDS function using Verilog HDL; however, you can use similar procedures to instantiate other Altera-provided functions.

  1. If you have not already done so, set up the FPGA Compiler II working environment.

  2. If you have not already done so, creating a design for use with the FPGA Compiler II software.

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

    Refer to the following example to create a Verilog HDL custom megafunction variation of the altlvds_rx function:

  1. To prepare the Verilog  HDL design for synthesis with the FPGA Compiler II software, you must specify that the tool should treat the design file created in the MegaWizard Plug-In Manager as a "black box." The software then makes the correct connections to the ports in the EDIF netlist file (.edf). The Quartus II software reads in the EDIF netlist file as an EDIF Input File (.edf) and processes the instantiated megafunction. To treat the design file for the megafunction as a "black box," refer to the following example:

Note: The design file generated by the MegaWizard Plug-In Manager must be in the same directory as the EDIF Input File or added to the Quartus II project.

  1. If necessary, perform a functional simulation with the VCS software or another simulation tool. Refer to the following example for a sample script that you can use to perform a functional simulation:
  1. Generate EDIF Netlist Files with the FPGA Compiler II software.

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

  3. Compile the design in the Quartus II software.

  4. If necessary, perform a timing simulation with the ModelSim software or simulate the design with another Verilog HDL simulation tool.

 

 

  Please Give Us Feedback