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 Functional Simulation with the VCS MX Software

btnshowall.gif

You can use the Synopsys VCS MX software to perform an RTL-level functional simulation of a Verilog HDL or VHDL design that contains Altera-specific components:

click to expandTo perform a functional simulation of a Verilog HDL design:

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

    2. Create a .synopsys_vss.setup file to include the mapping information for the work library, and to direct the VCS MX software to use the functional simulation libraries during simulation:

      WORK ><work library>
      220model >
      <work library>
      altera_mf >
      <work library>
      sgate >
      <work library>
      altgxb >
      <work library>
      <work library>
      : <physical path to work library>

    3. In the VCS MX shell, point the environment variable SYNOPSYS_SIM_SETUP to the .synopsys_vss.setup file.

    4. To create a work library in the project directory, type the following command at a command prompt: 

    5. mkdir<work library> Enter
       

    6. 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, the work library is named rtl_work for a RTL simulation or gate_work for a Gate-Level simulation. The library work is mapped to either rtl_work or gate_work.

       

    1. To compile the Verilog Design Files (.v), test bench file (if you are using one) and Altera simulation libraries, type the following commands at a command prompt:

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

 

vlogan/usr/quartus/eda/sim_lib/220model.v Enter
vlogan /usr/quartus/eda/sim_lib/altera_mf.v Enter
vlogan <design name>.v Enter
vlogan <test bench file>.v Enter

If your design contains the altgxb megafunction, type the following commands to compile the appropriate libraries:

vlogan/usr/quartus/eda/sim_lib/sgate.v Enter
vlogan /usr/quartus/eda/sim_lib/220model.v

vlogan
/usr/quartus/eda/sim_lib/stratixgx_mf.v Enter

    1. If your design contains the alt2gbx megafunction, type the following commands to compile the appropriate libraries:

    2. vlogan /usr/quartus/eda/sim_lib/sgate.v
      vlogan /usr/quartus/eda/sim_lib/220model.v
      vlogan /usr/quartus/eda/sim_lib/stratixiigx_hssi_atoms.v

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

      v<top-level entity> Enter

    2. To simulate the design, type the following command at a command prompt:

    3. simvEnter

    1. To perform the simulation interactively, type simv -i Enter at the command prompt.

click to expandTo perform a functional simulation of a VHDL design:

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

    2. Create a .synopsys_vss.setup file to include the mapping information for the work library, and to direct the VCS MX software to use the functional simulation libraries during simulation:

      WORK ><work library>
      220model >
      <work library>
      altera_mf >
      <work library>
      sgate >
      <work library>
      altgxb >
      <work library>
      <work library>
      : <physical path to work library>

    3. In the VCS MX shell, point the environment variable SYNOPSYS_SIM_SETUP to the .synopsys_vss.setup file.

    4. To create a work library in the project directory, type the following command at a command prompt: 

    5. mkdir<work library> Enter
       

    6. 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, the work library is named rtl_work for a RTL simulation or gate_work for a Gate-Level simulation. The library work is mapped to either rtl_work or gate_work.

    7.  

    1. To compile the VHDL Design File (.vhd), test bench file (if you are using one) and Altera simulation libraries, type the following commands at a command promp

vhdlan/usr/quartus/eda/sim_lib/220pack.vhd Enter
vhdlan
/usr/quartus/eda/sim_lib/220model.vhd Enter
vhdlan /usr/quartus/eda/sim_lib/altera_mf_components.vhd Enter
vhdlan /usr/quartus/eda/sim_lib/altera_mf.vhd Enter
vhdlan <design name>.vhd Enter
vhdlan <test bench file>.vhd Enter

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

    2. If your design contains the altgxb megafunction, type the following commands to compile the appropriate libraries:

      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
      vhdlan
      /usr/quartus/eda/sim_lib/stratixgx_mf.vhd Enter
      vhdlan
      /usr/quartus/eda/sim_lib/stratixgx_mf_components.vhd Enter

    3. If your design contains the alt2gxb megafunction, type the following commands to compile the appropriate libraries:

      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
      vhdlan /usr/quartus/eda/sim_lib/stratixiigx_hssi_components.vhd Enter
      vhdlan /usr/quartus/eda/sim_lib/stratixiigx_hssi_atoms.vhd Enter

    4.  

    5. Note: For VHDL 87-compliant designs, type the following commands to compile the VHDL-87 compliant simulation model libraries:

      vhdlan -vhdl87 /usr/quartus/eda/sim_lib/220model_87.vhd Enter
      vhdlan
      -vhdl87 /usr/quartus/eda/sim_lib/altera_mf_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:

    3. scsim -xlrm<work library>.<top-level entity> Enter

    1. To perform the simulation interactively, type scsim -i Enter at the command prompt.

    2. To continue with the VCS MX simulation flow, perform a timing simulation with the VCS MX (VHDL) software.

 

 

  Please Give Us Feedback