Altera_Forum
Honored Contributor
11 years agoQsys ModelSim-Altera automation script .do: libraries in wrong order
Hello everyone,
I am experiencing an issue with the order in which are placed my VHDL libraries in the automation script (.do file) destined to ModelSim simulation. As you may know, in VHDL the order in which the file are compiled is very important. The dependencies must be compiled before the "top_entity". In Project Setting -> Files: the order is respected : - dependency 1- dependency 2
- dependency 3
- top_entity But whenever I launch the simulation (Run Simulation Tool -> RTL Simulation) the libraries in the .do script generated for ModelSim are in the wrong order : vcom -2008 -work work dependency 1
vcom -2008 -work work dependency 2
vcom -2008 -work work top_entity
vcom -2008 -work work dependency 3 This make the simulation fails because the 'dependency 3' comprises an entity that is used in top_entity (thus not recognized). I can put manually the 'dependency 3' above the 'top_entity', but I must do this operation each time I launch the RTL simulation, that is impratical. I've tried to quit and relaunch Quartus II but this do not change anything. I've also tried to put libraries in the Files window in the opposite order but this do not solve the problem either. I hope that someone can help me. Thanks a lot :) my platform: quartus ii full version 64-bit v15.0.0, modelsim-altera 10.3d and linux ubuntu lts 15.04.