Forum Discussion
6 Replies
- Altera_Forum
Honored Contributor
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, - Altera_Forum
Honored Contributor
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?
- Altera_Forum
Honored Contributor
you are not meant to see the internal verilog code.
- Altera_Forum
Honored Contributor
Which particular MegaFunction are you talking about?
- Altera_Forum
Honored Contributor
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??
- Altera_Forum
Honored Contributor
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.