## Instantiating LPM Functions in ViewDraw Schematics

You can instantiate library of parameterized modules (LPM) functions from the vdpath library in ViewDraw schematics.

| Altera does not directly support the `lpm_ram_dq`, `lpm_ram_io`, and `lpm_rom` functions. Go to Instantiating RAM & ROM Functions in Viewlogic Powerview Designs for information on instantiating these functions.

To instantiate an LPM function, follow these steps:

1. Be sure to set up your working environment correctly, as described in Setting Up the MAX+PLUS II/Viewlogic Powerview Working Environment. Make sure that you have created a vdraw.vs file, as described in step 8 of that topic.

2. Choose Cell (Add menu).

3. Choose an <LPM function name> to open the <LPM function name> dialog box. Specify a symbol name for Symbol Prefix and specify appropriate parameters. Choose OK.

   The ViewDraw software generates the specified symbol name symbol according to your specifications. It also generates a corresponding VHDL simulation model, but it is compiled only after you save the schematic. If you want to change the settings for the symbol, select the instance and choose Cell (Change menu) to re-open the appropriate dialog box.

4. Continue with the steps necessary to complete your schematic, as described in Creating ViewDraw Schematics for Use with MAX+PLUS II Software.

| Choose Megafunctions/LPM from the MAX+PLUS II Help menu for detailed information on LPM functions.

Last Updated: August 28, 2000 for MAX+PLUS II version 10.0 |
| Home | List by Vendor | List by Tool | List by Function | Viewlogic Topics | ViewDraw Topics | Documentation Conventions Copyright © 2000 Altera Corporation, 101 Innovation Drive, San Jose, California 95134, USA. All rights reserved. By accessing any information on this CD-ROM, you agree to be bound by the terms of Altera's Legal Notice.