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

Megafunction

Altera_Forum
Honored Contributor II
1,498 Views

Hi 

Can Altera quartus II generate verilog code from megafunction? thx
0 Kudos
6 Replies
Altera_Forum
Honored Contributor II
789 Views

Megafunctions can generate a Verilog module as primary entity. It's ususally importing additional libraries that may be written in VHDL, Verilog, AHDL or possibly encrypted HDL.  

Verilog libaries for functional simulation are additionally provided,
0 Kudos
Altera_Forum
Honored Contributor II
789 Views

Sorry, I still not very clean about that, I only can find a verilog file which can change the parameter, but cannot see overall verilog code. How to see the whole verilog code?

0 Kudos
Altera_Forum
Honored Contributor II
789 Views

you are not meant to see the internal verilog code.

0 Kudos
Altera_Forum
Honored Contributor II
789 Views

Which particular MegaFunction are you talking about?

0 Kudos
Altera_Forum
Honored Contributor II
789 Views

For example, I open block diagram and insert a multiplier from megafunction, I only can found a top level verilog file, can I see the whole verilog code for the multiplier??

0 Kudos
Altera_Forum
Honored Contributor II
789 Views

The Verilog MegaFuction is instantiating lpm_mult, also multipliers inferred form HDL code do. As most low level libraries, it's coded in AHDL. See lpm_mult.tdf and additional code in multcore.tdf which can be found in quartus\libraries\megafunctions. 

 

There's no Verilog multiplier code. As already mentioned in post# 2, the internal library code (as far written in readable HDL) uses different languages, in this case AHDL.
0 Kudos
Reply