Forum Discussion
Altera_Forum
Honored Contributor
15 years agoDear Marlboro,
In order to use VHO file in Modelsim, you need to do the follwoing: 1. Open the .vho file in modelsim (after adding it to the relevant project). 2. Look at the first VHDL files, you will probably notice some Libraries Quartus added. For example if you are using Cyclone III, you will see: Library cycloneiii; Use cycloneiii.components.all; You may see more libraries like Altera, Altera_mf, LPM,etc. In order to compile this file, Modelsim must have these libraries or a reference to them. So, to verify you have them, you can click in ModelSim at the library tab and then look for these library names. If you cant find them then see step 3. If you find them you will be able to compile vho file. Please note that if you declared any input/output in your entity as Integer, it appears in the VHO file as STD_LOGIC_VECTOR, and thats ok since after synthesis there is only 0/1 and not integer anymore. Thats mean you will need to change your testbench to match vho file entity ! 3. If you cant find these libraries then you probably dont use modelsim_altera but the full version. In that case you need to open new project for any library you would like to add to Modelsim. For example, if you would like to add cycloneiii library then close your current project and open a new one. Then add to this project existing files from: D:\Altera\90sp2\quartus\eda\sim_lib (this is an example from my computer of course). In this folder you will find all relevant libraries for simulation. Take as example the cycloneiii_atoms.vhd and cycloneiii_components.vhd to your new project, compile them and close the project. Open your original project, go to new-> library --> add new library. Then give the library name (the same name as appears in vho file !) and provide the physical path to work library (the library where you have just compiled cycloneiii vhd files). Compile the design and you done !