Altera Home Page
Literature Licensing
Buy On-Line Download

  Home   |   Products   |   Support   |   End Markets   |   Technology Center   |   Education & Events   |   Corporate   |   Buy On-Line  
  Knowledge Database   |   Devices   |   Design Software   |   Intellectual Property   |   Reference Designs   |   Design Examples   |   mySupport  

 Products
   Quartus II
      SOPC Builder
      MAX+PLUS II
      ModelSim-Altera
  
 Resource Centers
      Overview
      Installation & Licensing
      Scripting
      Board Design & I/O
      Synthesis & Netlist Viewers
      Incremental Compilation
      Optimization
      Power Management
   TimeQuest Timing Analyzer
      Classic Timing Analyzer
      Simulation & Verification
      On-Chip Debugging
      HardCopy Design
  
 Software Resources
      OS Support
      Driver Installation
  
 Download & Licensing
      Download
   Licensing
  
 Quartus II EDA Support
      Quartus II Interface
   Synthesis Tools
   Simulation Tools
          Aldec Active-HDL
          ModelSim
          NCSim
          VCS MX
          VCS
   Formal Verification Tools
   Timing Analysis Tools
   Physical Synthesis Tools
   Board Level Tools
  
 Legacy Sw. EDA Support
      View by Vendor
      View by Tool
      View by Function
  

Setting Up a Project with the ModelSim Software

btnshowall.gif

You can run the Mentor Graphics ModelSim PE or SE software from the ModelSim interface or with command-line commands.

 

click to expandTo set up a ModelSim project with the ModelSim interface:

  1. If you have not already done so set up the ModelSim working environment.

  2. If you are performing a timing simulation, to generate the Verilog Output File (.vo) or VHDL Output File (.vho):

    1. Specify EDA tool settings in the Quartus II software.

    2. Compile the design with the Quartus II software. 

Note: If you have already compiled the design, and want to specify different EDA tools settings and generate a Verilog Output File (.vo), VHDL Output File (.vho), and Standard Delay Format Output File (.sdo) without recompiling the design, you can use the Start EDA Netlist Writer command.

You can also use the Start EDA Netlist Writer command to generate the following types of files:

  1. Start the ModelSim software.

  2. To specify the project directory:

    1. On the File menu, click Change Directory.

    2. In the Choose a Directory dialog box, type the path to the project directory in the Directory Name box.

      or

      In the Look in list, select the project directory.

    3. Click Open.

     

    Note: If you are performing a functional simulation, the project is the directory that contains your design files. If you are performing a timing simulation, the project directory is the <project directory>\simulation\modelsim directory or the location you specified in the Output directory box of the Simulation in the Settings dialog box.

  1. To create a new work library:

    1. On the File menu, point to New, and then click Library. The Create a New Library dialog box appears.

    2. Under Create, select a new library and a logical mapping to it.

    3. In the Library Name box, type the library name.

    4. In the Library Maps to list select the work library.

     

    Note: When you run the ModelSim software independently from the Quartus II software, you should name your library work. When you run the ModelSim software automatically from the Quartus II software, your library is named ModelSim_work automatically and located in the current Quartus II project directory.

click to expandTo set up a ModelSim project with command-line commands:

  1. If you have not already done so, perform Setting Up the ModelSim Working Environment.

  2. If you are performing a timing simulation, to generate the Verilog Output File (.vo) or VHDL Output File (.vho):

    1. Specify EDA tool settings in the Quartus II software.

    2. Compile the design with the Quartus II software.

Note: If you have already compiled the design, and want to specify different EDA tools settings and generate a Verilog Output File (.vo), VHDL Output File (.vho), and Standard Delay Format Output File (.sdo) without recompiling the design, you can use the Start EDA Netlist Writer command.

You can also use the Start EDA Netlist Writer command to generate the following types of files:

  1. Start the ModelSim software.

  2. Change to the directory where the ModelSim libraries are located after they are compiled.

  3. To create a new work library, type the following command at the ModelSim prompt:

    vlib work Enter

    ModelSim compiles the design files to library work by default.

  4. To change the default library type the following commands at the ModelSim prompt:

    vlib <user defined library> Enter

    vmap work<user defined library>Enter

Note: When you run the ModelSim software automatically from the Quartus II software, your work library is automatically mapped to rtl_work for RTL simulation and gate_work for gate level simulation. The libraries are created in the <project directory>\simulation\modelsim directory or the location you specified in the Output directory box of the Simulation page in the Settings dialog box.

 

To continue the ModelSim-Altera flow you can perform a functional simulation with the ModelSim software, then you can compile libraries and design files with the ModelSim software. The final step is to perform a timing simulation with the ModelSim software.

 

 

  Please Give Us Feedback