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
  

Performing a Timiing Simulation with the VCS MX (VHDL) Software

To perform a timing simulation of a Quartus II–generated VHDL Output File (.vho) and the corresponding Standard Delay Format Output File (.sdo) with the Synopsys VCS MX software:

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

  2. To generate the VHDL Output File (.vho):

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

    2. Compile the design with the Quartus II software.

     

Note: The EDA Netlist Writer generates the VHDL Output File and the SDF Output File and places them in the specified output directory. The default location is /<project directory>/simulation/vcsmx

 

If you have 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 script files to generate Value Change Dump File (.vcd) in EDA simulation tools.

 

  1. Add the following lines to your .synopsys_vss.setup file to include the mapping information for the work library, and to direct the VCS MX software to use the timing simulation libraries during simulation:

    WORK > <work library>
    lpm >
    <work library>
    altera_mf >
    <work library>
    <device family>
    > <work library>
    <work library>
    >: <physical path to work library>

If your design targets the Stratix GX family add:
stratixgx_gxb >
<work library>
altgxb >
<work library>

If your design targets the Stratix II GX family add:
alt2gxb >
<work library>
stratixiigx_hssi >
<work library>

  1. Create a work library in the project directory by typing the following command at a command prompt:

  2. mkdir <work library> Enter

  3.  

    Note: Altera recommends using the Synopsys VCS MX default library names when you create a library. You should name the VCS MX software libraries as follows:

    • When you run the VCS MX software independently from the Quartus II software, you should name your library work.

    • When you run the VCS MX software automatically from the Quartus II software, your library is automatically named scsim_work under the current project directory, and the work alias is mapped to the scsim_work directory.

  1. To compile the VHDL Output File, test bench file (if you are using one), and Altera post-fitting libraries:

  2. If your design contains the altgxb or alt2gxb megafunctions, compile the altgxb or alt2gxb libraries by typing the following commands at a command prompt:

    vhdlan /usr/quartus/eda/sim_lib/220pack.vhd Enter
    vhdlan /usr/quartus/eda/sim_lib/220model.vhd
     Enter
    vhdlan /usr/quartus/eda/sim_lib/sgate_pack.vhd
     Enter
    vhdlan /usr/quartus/eda/sim_lib/sgate.vhd
     Enter
    v
    hdlan /usr/quartus/eda/sim_lib/altera_mf_components.vhd Enter
    vhdlan /usr/quartus/eda/sim_lib/altera_mf.vhd Enter

  3. If your design targets the Stratix GX family, you must also compile the following files by typing the following commands at a command prompt:

  4. vhdlan /usr/quartus/eda/sim_lib/stratixgx_hssi_atoms.vhd Enter
    vhdlan /usr/quartus/eda/sim_lib/stratixgx_hssi_components.vhd
     Enter

  5. If your design targets the Stratix II GX family, you must also compile the following files by typing the following commands at a command prompt:

  6. vhdlan /usr/quartus/eda/sim_lib/stratixiigx_hssi_components.vhd Enter
    vhdlan /usr/quartus/eda/sim_lib/stratixiigx_hssi_atoms.vhd
    Enter

  7.  

  8. Important: If your design contains the altgxb megafunction or the alt2gxb megafunction, please refer to the appropriate megafunction topic for required settings information.

  9.  

  10. For each of the appropriate timing simulation libraries, type the following commands at a command prompt:

  11. vhdlan /usr/quartus/eda/sim_lib/<device family>_atoms.vhd Enter
    vhdlan /usr/quartus/eda/sim_lib/
    <device family>_components.vhd Enter

    If your design targets Stratix III or Cyclone III family, you must also compile the following files by typing the following commands at a command prompt:

    vhdlan /usr/quartus/eda/sim_lib/altera_primitives_components.vhd Enter
    vhdlan /usr/quartus/eda/sim_lib/altera_primitives.vhd
     Enter

  12. Compile the VHDL Output File and the test bench file by typing the following commands at a command prompt:

    vhdlan <design name>.vho Enter
    vhdlan
    <test bench file> Enter

For VHDL 87-compliant designs for APEX 20KE devices, type the following command to compile the VHDL-87 compliant simulation model library instead:

vhdlan -vhdl87 /usr/quartus/eda/sim_lib/apex20ke_atoms_87.vhd Enter

  1. To start a simulation session by elaborating and compiling, and to create the scsim executable to simulate the design, type the following command at the command prompt:

    scs <top-level entity> Enter

  2. To simulate the design, type the following command at a command prompt (where <region> is the hierarchical instance name of the design in the test bench file, using "/" as hierarchy separator:

  3. scsim -sdf [min: | typ: | max:]<region>:<SDF Output File> Enter

 

 

Next Steps...   

  Please Give Us Feedback