Make the following changes to the modelsim.ini file located in the MODEL_TECH directory. Alternately, you can change the MODELSIM environment variable setting in the MTI setup script so that it points to the modelsim.ini file located in the project design directory.
Edit the statement Resolution = ns and change it to Resolution = ps.
Comment the statement PathSeparator = / by adding ; at the beginning of the line.
For Verilog designs, enable SmartModels by searching for the variable Veriuser and change it to:
On Windows: Veriuser = $LMC_HOME/lib/pcnt.lib/swiftpli_mti.dll
On Solaris: Veriuser = $LMC_HOME/lib/sun4Solaris/libswiftpli_mti.so
On Linus: Veriuser = $LMC_HOME/lib/linux.lib/swiftpli_mti.so
Search for the [lmc] section and remove comments from the libsm and libswift definitions according to your operating system as follows:
On Windows, remove the comments from these lines:
libsm = $MODEL_TECH/libsm.dll
libswift = $LMC_HOME/lib/pcnt.lib/libswift.dll
On Solaris, remove the comments from these lines:
libsm = $MODEL_TECH/libsm.sl
libswift = $LMC_HOME/lib/sun4Solaris.lib/libswift.so
On Linux, remove the comments from these lines:
libsm = $MODEL_TECH/libsm.sl
libswift = $LMC_HOME/lib/linux.lib/libswift.so
Note It is important to make the changes in the order in which the commands appear in the modelsim.ini file. The simulation might not work if you do not follow the order recommended above.
Adding Environment Variables
After you edit the modelsim.ini file, add some environment variables, if they are not already defined.
On Windows
Go to Start > Control Panel > System. The System Properties dialog box opens.
Select the Advanced tab and click Environment Variables. The Environment Variables dialog box opens.
Set the variables to the following values:
MODELSIM
PATH
Note %PATH% represents the value that your PATH variable had before making the changes. Make sure you keep this.
On Solaris and Linux
Add the following environment variables to the MTI ModelSim setup script:
setenv MODELSIM
setenv PATH
Note Change the parameters included within the brackets < > to match the system configuration.
Note If the MODELSIM environment variable is not set to point to the file you edited, MTI might not use this initialization (INI) file, and the simulator will not read the initialization settings required for simulation.
|
本文地址:http://114er.blogspot.com/2010/10/modelsimsetting-up-modelsim-for-using.html 原创文章如转载,请注明链接: 转自Welcome Funny Guys |

0 评论: