Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
12 years ago

instantiating megafunctions

Hi,

I am new to Verilog, I would like to find the syntax in Quartus II to instantiate a megafunction

in a module. I have built the function and created the .v file using the megafunction wizard but

I am getting a lot of syntax errors after compilation. If anyone could point me to the syntax or to an example

it would be greatly appreciated. :confused:

Thank you very much!

Larry

1 Reply

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Some (most? all?) MegaFunctions will generate a corresponding _inst.v file that you can copy&paste into your module and change names around etc.

    On the Summary tab in the wizard, check the checkbox next to the _inst.v to get it generated for you.