Description
These instructions are intended as a supplement to the Reed Solomon Compiler User Guide.
Before running a simulation, install the Visual IP software and extract the Reed Solomon models.
Once the the Visual IP software and the Reed Solomon models have been installed, perform the following steps:
- Set the environment variable VIP_MODELS_DIR to <path to reed solomon models>\vip_models (See Note 1).
- Add the ModelSim directory ( <path to ModelSim installation directory >\win32aloem) and the Visual IP bin directory <path to vip installation direcory >\bin> to the PATH envoronment variable (add these paths to the end of the Value field, separating the paths by a semicolon). As an example, if the default paths were selected when installing ModelSim and Visual IP, the following paths would be appended to the PATH variable (See Note 1):
- D:\Modeltech_ae\win32aloem
- D:\VIP_EndUser_40\bin
- Create a batch file, run.bat, and save it in \vip_simulation\rs\verilog. The file run.bat should contain the following commands with the paths changed according to your system setup:
cd \vip_simulation\rs\verilog vmap -c vlib work vlog rs_enc.v vlog rs_enc_vectors.v vlog rs_enc_vip_top.v vsim -pli \bin\libplimtivip rs_enc_vip_top view
- Open a DOS Prompt
- Change to the directory \vip_simulation\rs\verilog
- Type run.bat and press enter.
(Note 1) Here is how you set an environment variable in Windows NT:
- From the Start Menu, Choose Control Panel
- Double-click on the System Icon
- Click on the Environment tab
- Type the variable name in te Variable field.
- Assign the variable a value.
- Click on the Set button
- Click on the Apply Button
- Click on OK.