Forum Discussion
Altera_Forum
Honored Contributor
10 years ago --- Quote Start --- I believe some of the Cyclone V simulation models have been shared with Arria V models since both of them are generation V devices. However, it is unusual to get into the missing models error. Mind sharing on how do you compile the libraries? By default, there would be a file with name which sounds like msim_setup.tcl after you generate the PHY. Inside the tcl, you will find the required sequence to compile simulation model libraries. --- Quote End --- Sorry for the late reply. This has been frustrating. The first thing I did was to add all of the simulation models to the ModelSim project, as if they were just some code that I'd written myself. (That seems reasonable, no?) I used the plaintext list to set the compile order. Then I compiled my test bench, and tried to simulate it, and got the errors regarding the missing Arria components. Then per your suggestion, I ran the msim_setup.tcl script from within ModelSim. At first, I thought it did nothing, until I realized that it installs some commands. (Hello, documentation!) I ran the com command, and it failed because the QSYS_SIMDIR was not being set properly. I modified the script and explicitly set the directory. After it compiled, I noticed that the library into which those sources were to be compiled was empty, even though there were zero compile errors and warnings. Weird. Using the same exact compile command as in the script, I started to compile each of the sources from the ModelSim command line, in the order listed in the script. After compiling the first source: vlog -sv "$QSYS_SIMDIR/altera_xcvr_native_cv/altera_xcvr_functions.sv" -work gigabitxcvr I noticed that the library was no longer empty. Then I compiled the second source: vlog -sv "$QSYS_SIMDIR/altera_xcvr_native_cv/mentor/altera_xcvr_functions.sv" -work gigabitxcvr and bang -- the library was empty again. What's in this file? Well, it's the encrypted source, and rather than throwing an error or warning or any indication at all, ModelSim silently does nothing, because I guess the ModelSim AE Starter doesn't handle encrypted models. (Can anyone confirm?) For the hell of it, I just commented-out the lines that compile the encrypted models (in the \mentor\ directory), restarted ModelSim, re-ran the script, and it compiled and the library was populated as one expects. Then I compiled the test bench and ran the simulation, and ... ... got the errors about missing arria v stuff. This is absurd. Is it because I'm using the free tools that the models for the Arria V things (a chip I'm not using!) are not available? (BTW, I am waiting for the FAE to get back to me. But I can't believe that I'm the only person struggling with this!)