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

How can I use megafunction in my VHDL unit

Altera_Forum
Honored Contributor II
1,370 Views

Hallo, 

I am a VHDL beginner. I don't know how to use the megafunctions library in VHDL unit. 

Can you help me ... 

Thanks
0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
571 Views

Hello, 

 

when generating your Megafunction version in Quartus Megawizard, a *.cmp component definition and *_inst.vhd instantiation template are also created. You can copy the text from both files to your design, possibly replacing the actual parameters in instantiation template with signals of your choice. 

 

If you or used to certain Megafunctions, you may also instantiate it directly in your code, having direct access to Megafunction parameters without using the Megawizard. 

 

Regards, 

Frank
0 Kudos
Reply