|
|
|
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:
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
Start the ModelSim software.
Specify the project directory:
Choose Change Directory (File menu).
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.
Click Open.
The project directory is the directory that contains the project design files. |
Create a new work library:
Choose New > Library (File menu). The Create a New Library dialog box appears.
Under Create, select a new library and a logical mapping to it.
In the Library Name box, type the library name.
Select the work library in the Library Maps to list.
When you run ModelSim software independently from the Quartus II software, you should name the working library work. |
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
If a Veriuser line already exists, comment out the existing Verisuer line with a semi-colon (;) and add the above line. |
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.
Specify the parameters in the following table to initialize ESS in your Verilog or VHDL design file or test bench file:
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 |
"" |
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. |
To compile the simulation models and the design files:
Choose Compile (Compile menu).
In the Library list of the Compile HDL Source Files dialog box, select the work library.
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.
Click Default Options in the Compile dialog box, and specify Use 1993 Language Syntax in the VHDL tab of the Compile Options dialog box.
Click Compile.
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.
Repeat steps 6b to 6e to compile the appropriate functional simulation library.
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.
- PLDWorld - |
|
Created by chm2web html help conversion utility. |