Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)
17255 Discussions

instantiating megafunctions

Altera_Forum
Honored Contributor II
1,284 Views

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
0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
572 Views

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.
0 Kudos
Reply