Forum Discussion

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

How can I use megafunction in my VHDL unit

Hallo,

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

Can you help me ...

Thanks

1 Reply

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

    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