EDA Interfaces

1. Set Up a Project with the ModelSim Software for Use with the ESS Model



To set up a project in the Model Technology ModelSim® software to perform a functional hardware simulation or a functional hardware and software co-simulation of an ARM®-based Excalibur design with the Excalibur Stripe Simulator (ESS) model:

  1. To set the environment variables on Solaris workstations, type the following commands at the command prompt:

    setenv QESS_ROOTDIR <Quartus® II installation directory> 
    setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:${QESS_ROOTDIR}/solaris 

  2. Start the ModelSim software.

  3. Specify the project directory:

    1. Choose Change Directory (File menu).

    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 The project directory is the directory that contains the project design files.

  4. Create a new work library:

    1. Choose New > Library (File menu). 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. Select the work library in the Library Maps to list.

    NOTE When you run ModelSim software independently from the Quartus II software, you should name the working library work.

  5. For Verilog designs, specify the path to the Excalibur PLI models by adding the following line to the modelsim.ini file, or to the <project name>.mpf ModelSim project file, under the VSIM section and after the Veriuser comments line:

    Veriuser = $QESS_ROOTDIR/bin/libess_sspli.so

    NOTE If a Veriuser line already exists, comment out the existing Verisuer line with a semi-colon (;) and add the above line.

  6. For VHDL designs, to specify that the ModelSim software should use VHDL 93-compliant models, uncomment ; VHDL93 = 1 in the VCOM section of the modelsim.ini file.

  7. Specify the parameters in the following table to initialize ESS in your Verilog or VHDL design file or test bench file:

  8. Parameter Default Setting
    PROCESSOR "ARM®"
    DEVICE_SIZE 1000
    BOOT_FROM_FLASH "TRUE"
    FLASH_HEX_FILE ""
    USE_INITIALISATION_FILES "TRUE"
    INITIALISATION_FILE_NAME "memory"
    DP0_MODE "1xSPx32"
    DP1_MODE "1xSPx32"
    ENDIAN "LITTLE"
    TRACE_LEVEL 0
    TRACE_FILE ess_trace.out
    USE_UART "FALSE"
    LAUNCH_TELNET "FALSE"
    USE_SW_DEBUGGER "FALSE"
    CMD_LINE_PARAMETERS ""

    NOTE The default parameters are also in the alt_exc_stripe module, which is located in the \<Quartus II installation directory\eda\sim_lib\excalibur\lpm directory. If you are using ESS in a co-simulation, make sure the USE_SW_DEBUGGER parameter is set to "TRUE". For more information on the ESS parameter settings, refer to the Excalibur Stripe Simulator User Guide, which is located in the \<Quartus II installation directory>\eda\sim_lib\excalibur\docs directory.

  9. To compile the simulation models and the design files:

    1. Choose Compile (Compile menu).

    2. In the Library list of the Compile HDL Source Files dialog box, select the work library.

    3. In the Files of Type list, select All Files (*.*), and in the Look in list, select ess_hdl.v or ess_hdl.vhd, located in the \<Quartus II installation directory>\eda\sim_lib\excalibur\ess_hdl directory.

    4. Click Default Options in the Compile dialog box, and specify Use 1993 Language Syntax in the VHDL tab of the Compile Options dialog box.

    5. Click Compile.

    6. Repeat steps 6b to 6e to compile alt_exc_stripe_ess.v or alt_exc_stripe_ess.vhd, located in the \<Quartus II installation directory\eda\sim_lib\excalibur\lpm directory.

    7. Repeat steps 6b to 6e to compile the appropriate functional simulation library.

  10. To continue with the ModelSim ESS simulation flow, proceed to 2. Perform a Functional Simulation with the ESS Model and the ModelSim Software or 3. Set Up a Functional Co-Simulation with the ESS Model and the ModelSim Software.


Back to Top

- PLDWorld -

 

Created by chm2web html help conversion utility.