- #Modelsim altera for verilog how to#
- #Modelsim altera for verilog install#
- #Modelsim altera for verilog download#
It may be wise to make a backup copy of modelsim.ini just in case things get hairy after our modifications. It might be set to read-only, be sure to modify that file attribute beforehand. It will take a while, depending on how many libraries you’ve included inside the script.Īfter ModelSim is done, close it and browse to your rootDrive/modeltech_x.x/ directory, we’re looking for modelSim’s configuration file, modelsim.ini we will modify it. Once ready, we’ll head to ModelSim’s application directory, in my case rootDrive/modeltech_6.5b inside, we will create the following subdirectories /altera/vhdl here we’ll place our nifty little script.įire up ModelSim and change directory to where the script is located, once there, simply type the following: do vhdl-library-setup.tcl in the console, the script should start execution. Remember that # is the comment identifier on ModelSim scripts. Be sure to include stuff that actually exists in the /eda/sim_lib directory, otherwise your compilation will fail, and that will probably make you sad for a while, but worry not, you can always try again! You can manually type or uncomment the line of your interest inside the script.
Now, as an example, in the /eda/sim_lib directory, I’ve identified the cyclone family as a potential must-include FPGA library on ModelSim, so I’ve added the following lines to the script: vlib cyclone vmap cyclone cyclone vcom -work cyclone -2002 -explicit $path_to_quartus/eda/sim_lib/cyclone_atoms.vhd vcom -work cyclone -2002 -explicit $path_to_quartus/eda/sim_lib/cyclone_components.vhd Be sure to modify the following line: path_to_quartus with the actual Quartus path you got. The script must include the exact same paths of the files you identified in the previous step. We will run this script from ModelSim’s console to compile all our libraries.
#Modelsim altera for verilog download#
Next, download this handy script and open it with your favorite text editor (please, do not use notepad). vhd extension, it should be the same for Verilog files. I’m working with VHDL, so I identify all the files with. You can also compile for all the devices available. After successfully installing ModelSim you’ll need to browse the following directory path_to_quartus/eda/sim_lib and take note of its contents, you should identify the FPGA/device of your interest and take note of the exact filename because this is the library we will include in our automated script later (the extension could be either. Link the libraries to ModelSim’s configuration files.Modify a ModelSim script to compile the libraries that we need.Find out which Altera libraries we need.
The only solution left is to use a stand-alone version of ModelSim (whichever version you hate the less) and manually compile Altera’s libraries and link them to ModelSim’s configuration files. The main advantage of this edition is that it has all of Altera’s libraries built-in right out the box, so no need to mess with that, but if you’re out of luck (like myself) installing a Modelsim-Altera version compatible with Quartus II ver 9.1 will surely fail for whatever reason. Now, you may be aware that Altera has its own ModelSim “edition”, called ModelSim-Altera. With bonus ambiguous signal value warning.
#Modelsim altera for verilog install#
This is the scenario I faced while trying to install this thing: I’m working with Altera Quartus II 9.1 Web Edition I tried installing Quartus II version 9 through 11, and version 9.1 was the only one I could get working under windows 7 (64-bit). If you’re having trouble with mentor graphics’ finest, follow this guide and you should be investing countless hours of waveform debugging in no time.
#Modelsim altera for verilog how to#
This first post will be a mini guide in how to (quickly!) set up everyone’s favorite HDL simulator, ModelSim. ModelSim, nice, advanced verification, eh? I’m aware that they get the work done, but c’mon, most of them look ugly, have an awkward graphical interface and love to install the “hard way”, let’s address that right away and leave the opinions for later. If you are into hardware design, you’ll have a good grasp of the kind of tools we, hardware designers, must deal with on a daily basis. Unfortunately, the amount of time I invest in such triviality is, more than often, just ridiculous. I frequently find myself deep in tool’s hell trying to set up a program for my engineering needs, it’s a common and necessary step in the design cycle, that’s reasonable.