Forum Discussion
Altera_Forum
Honored Contributor
15 years agoHow i can create a megafunction
Hello, I was doing my project of FPGA, and i need to put a demux in my project, I was trying to find in the library of quartus II, but i didn't find, then i wanna create a megafunction.
Someone can explain how i can create a megafunction, because i tried, but i don't know how to do. I wann create a megafunction of demux with 3 selectors input. I will always be thankfull. Thanks for all!!:D3 Replies
- Altera_Forum
Honored Contributor
Oow, i am using schematic! I understood, and i did *----*
thanks! thanks thanks!!!!! - Altera_Forum
Honored Contributor
Probably you misused the Megafunction term.
A megafunction is programmable by the user. You probably need a hierarchical design. If this is the case you can design your demux using schematic and logig gates and then convert it to a symbol that you can use in your top level schematic. The same can be done if you degign your demux using Verilog or VHDL. - Altera_Forum
Honored Contributor
Depends on your design entry method. In HDL design entry, definition and instantiation of modules (Verilog) respectively components (VHDL) is a pretty basic language element, so I guess, you're referring to schematic entry.
Here you can also create hierarchical sheets. Draw your intended sub-entitity (the demux logic) save it under a meaningful name and create a symbol for it, either using the default layout or by individually defining the shape. Then you can place instances of this "MegaFunction" in your top schematic or another sub-entity.