Forum Discussion

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

Using Mega function

Hi to all

in need of some help,

im trying to simulate my vhdl core in modelsim...

but im using fifo mega function.

do i need to add the mf library ? if so how do i do it?

IS THIS THE RIGHT FORUM FOR THIS Q ?

3 Replies

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

    In general if the megafunction you are using is in the altera_mf library, then you do need that library for functional simulation of your RTL.

    If using the MegaWizard: The FIFO MegaWizard has a page labeled "EDA" that lists the simulation libraries required. You probably had altera_mf listed there. And you can of course check the LIBRARY statements at the top of the MegaWizard variation file (the VHDL file that instantiates the actual megafunction such as dcfifo or scfifo).

    I searched http://www.altera.com/ for "altera_mf". There were many search hits. Look through these to find documents or web pages with how-to information.

    In Quartus on-line help, look on the "Contents" tab at "Integrating Other EDA Tools --> Using Other EDA Simulation Tools --> About Using the ModelSim [or ModelSim-Altera] Software with the Quartus II Software". I looked at a functional simulation page in this section and found some altera_mf instructions.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    thanks for the fast answer. i did look for it, and ill keep looking for it as you instructed with new hope. :)

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

    If you type Modelsim in the search engine on altera.com, the first link brings you to a nice collection of the documentation. If you have the time, it's good to read through this, but an excellent way to get started is click on the Modelsim Tcl Scripting Examples. This has Tcl scripts where you just fill in the the path to your Quartus install and type of simulation, and it reads in the correct libraries. It's an excellent starting point with exact commands to get you going.

    http://www.altera.com/support/examples/tcl/tcl-modelsim.html