ModelSim SE Installation

From MCEWiki
Revision as of 16:41, 17 June 2008 by 142.103.235.44 (talk) (Set up ModelSim SE X.Yz)

This page describes the proceedure for installing the latest version of ModelSim available from the ModelSim website, and compiling the Altera .vhd files that are necessary to create simulation libraries.

Download ModelSim SE X.Yz


Note: Altera takes some time to issue libraries that are compatible with the latest version of ModelSim. By that time, the version of ModelSim they are compatible with is usually no longer available from the ModelSim website. Therefore, it is in your best interest to store old versions of ModelSim. To check that Altera has created the libraries that you need to support the version of ModelSim that you are installing, check here: http://www.altera.com/support/software/nativelink/simulation/modelsim/eda_pro_msimfull_setup.html

Licensing ModelSim SE X.Yz

Method 1:

  • When asked by the installation window if you need to install a new license, click 'No'. A License Wizard may then start automatically. If one doesn't, try the following.


Method 2:

  • Load 'Start->All Programs->ModelSim X.Yz->Licensing Wizard'
  • Click 'Continue'
  • Type '1700@rwinsecurity.triumf.ca' or 'licensing.triumf.ca' in the dialog box
  • Click 'Ok'


Method 3:

  • Browse to 'Start->Control Panel->System Properties'. Select the 'Advanced' tab. Click on the 'Environment Variables' button. Add the following 'User Variables'.
    • LM_LICENSE_FILE=1700@trwinsecurity.triumf.ca
    • MGLS_LICENSE_FILE=1700@trwinsecurity.triumf.ca

Set up ModelSim SE X.Yz

Method 1:

  • If the location of your repository has changed, you will need to manually edit the following files in a text editor to reflect the correct paths: mce.cr.mti, mce.mpf.
  • Update your repository to the whichever combination of released tags you prefer. Updating the CVS repository to HEAD may cause compilation errors in ModelSim, because it is not necessarily working code.
  • Start ModelSim SE
  • Load the project stored at C:\mce\scripts\modelsim\mce.cr.mti


Method 2:

  • Load ModelSim SE
  • Create a project called 'mce'
  • Add the following files to the project's 'Top Level':
    • C:\Modeltech_X.Yz\vhdl_src\textio.vhd
    • C:\Modeltech_X.Yz\vhdl_src\standard.vhd
    • C:\altera\quartus60\eda\sim_lib\altera_mf_components.vhd
    • C:\altera\quartus60\eda\sim_lib\altera_mf.vhd
    • C:\altera\quartus60\eda\sim_lib\220pack.vhd
    • C:\altera\quartus60\eda\sim_lib\220model.vhd
  • Compile these files
  • Change the 'Properties' of these files. Select them all, and right click on one. Select 'Properties...', and click on the 'Do Not Compile' check box under the 'General' tab.
  • Create the following project folders by selecting 'File->New->Folder', and in each folder load all the .vhd files that are contained directories in parenthesis by selecting 'File->Add To Project->Existing File...':
    • library (C:\mce\cards\library)
    • cards/bias_card (C:\mce\cards\bias_card)
    • cards/clock_card (C:\mce\cards\clk_card)
    • cards/all_cards (C:\mce\cards\all_cards)
    • cards/readout_card (C:\mce\cards\readout_card)
    • cards/addr_card (C:\mce\cards\addr_card)
    • cards/system (C:\mce\cards\system)


Non-specific instructions on how to set up a ModelSim for Altera FPGAs are here: