Example of Creating a Verilog HDL Custom Variation of the altlvds_rx Function
The following example illustrates how to use the MegaWizard Plug-In Manager to create a custom megafunction variation of the altlvds_rx function. You can follow similar steps to create custom megafunction variations of other megafunctions. To create a custom megafunction variation for the altlvds_rx function:
On the Tools menu, click MegaWizard Plug-In Manager.
In response to Which action do you want to perform?, select Create a new custom megafunction variation and click Next.
In response to Which type of output file do you want to create?, select Verilog.
In the Available Megafunctions list, expand the I/O folder and select ALTLVDS.
In response to What name do you want for the file?, type or browse to locate the appropriate file name or location. For this example, the path and file name should be C:\lvds\top\lvds_rx_wrapper.v.
Click Next.
To select the receiver or transmitter function and to specify the number of channels and de-serialization factor mode of the LVDS function:
Under This module acts as an, select LVDS receiver.
For this example, select APEX 20KE when you are asked Use which device family?.
In response to What is the number of channels?, select 2.
In response to What is the deserialization factor?, select 4.
Under Specify the input clock rate by, select clock period and type 15151 for ns.
Click Next.
Turn on Register outputs.
Turn on Use the "rx_deskew" input port.
Click Next.
The Summary page informs you of the files that the MegaWizard Plug-In Manager creates. In this example, it creates the following files: