Forum Discussion

leagend5489's avatar
leagend5489
Icon for New Contributor rankNew Contributor
4 years ago
Solved

when I compile design files with ip , what files should I compile?

Hi. I am recently working on MAX10 evaluation broad. I try to simulation PLL IP and ADC IP on MODELSIM. I get a problem here. when I compile design files, what files should I compile? here i...
  • MathiasB's avatar
    4 years ago

    Hi,

    When you generate IP and/or Qsys files, you have the option to generate simlulation files. Once done, in your IP or Qsys subdirectory, you should have a sim(ulation)/mentor/msim_setup.tcl file.

    At the top of this file is described the process on how to use it.

    Basically, it defines some variables for parameters and procedures to compile and run modelsim. What I do is write a script that:

    1) runs this msim_setup.tcl (makes the calling script aware of definitions and procedures)

    2) compiles my user files

    3) runs the procedures from the script to compile Intel's stuff

    4) Changes some variable definitions to link my libraries (the -L switch)

    5) run the final Intel procedure to launch modelsim

    To put it in a nutshell, follow instructions in sim(ulation)/mentor/msim_setup.tcl