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

How can I use megafunction in my VHDL unit

Altera_Forum
名誉分销商 II
1,456 次查看

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 项奖励
1 回复
Altera_Forum
名誉分销商 II
657 次查看

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 项奖励
回复