Forum Discussion

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

Megafunction

Hi

Can Altera quartus II generate verilog code from megafunction? thx

6 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored 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's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored 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's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored 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's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored 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.