About Xilinx ise10.1 and Modelsim Simulation Library compilation

Source: Internet
Author: User

About Xilinx ise10.1 and Modelsim Simulation Library compilation
(2011-08-21 01:00:39)
Reproduced
Label:
Zatan
Category: FPGA

First, let's introduce some of Xilinx's major simulation libraries (path: D:\Xilinx\11.1\ISE\verilog\src\)

1. Unsim folder: Library of Unified component simulation models. It is used only for functional simulations, including all the standard components of Xilinx Corporation. Each component uses a separate file, which is designed to facilitate some special compiler wizard directives, such as ' uselib ' and so on.

2. Xilinxcorelib:core Generator HDL Library model. Used only for functional simulations, including IP emulation models generated using the Xilinx Core generator tools, such as FIFO.

3. Simprim:library of generic simulation primitives. Used for timing simulation or gate-level function simulation.

4. Smartmodel: Used to simulate very complex FPGA designs, where power PC or Rocketio are used.

We typically use only three of these libraries: Simprims,unisims,xilinxcorelib.

There is no need to pay attention to installing ISE10.1. (If you have questions, leave a message)

Install the Modelsim, what you need to do after installation:

1, in the C drive to build a folder called FLEXLM, the keygen in the LICENSE.txt files in the above folder (the original deleted the re-generated)

2. Right-click My Computer--Properties--environment variable, new environment variable, name Lm_license_file, value C:/flexlm/license. TXT;

3. Remove the "read-only" attribute of a property called Modelsim.ini file in your installation path.


Method One:

1. Create a new folder (such as Xilinx_libs) in the Modelsim installation directory to put the Xilinx compiled library files for Modelsim calls.

2. Compile Xilinx library files:

Run-cmd: Bring up the "command Prompt", in the DOS environment input Compxlib Press ENTER, or C:\Xilinx\10.1\ISE\bin\nt\compxlib.exe, open compxlib.exe, all the way by default OK ..., The visual interface is automatically ejected. Step by Step by default, select the folder you just created when you need to select the folder you want to reach for the compiled library (output directory for compiled libraries). Make sure that the "read-only" attribute of the Modelsim.ini file has been removed.

Method Two:
If you enter Compxlib in a DOS environment and do not automatically jump out of the compiled interface, you can try the following methods:

1 in DOS environment input "compxlib-s mti_se-f all-l All-o C:\modeltech_6.2b\xilinx_libs-p C:\Modeltech_6.2b\win32

The first path is the newly created folder Xilinx_libs (or another name) in the Modelsim installation path, which is used to place the compiled Xilinx library file. The second path is the path where the Min32 folder is located in the installation path.

2 Note: If an error occurs after entering the above command (Compxlib is not an internal or external command), you can set the path "set Path=d:\xilinx\10.1\ise\bin\nt" where the path can be found in the Xilinx installation path

3, if the compilation is completed, open Modelsim found in the left column of the library does not increase, but you used to put the library file folder Xilinx_libs already have libraries, you need to manually change the Modelsim.ini file, add the compiled library. As follows:

[Library]

std = $MODEL _tech/. /std

IEEE = $MODEL _tech/. /ieee

Verilog = $MODEL _tech/. /verilog

vital2000 = $MODEL _tech/. /vital2000

Std_developerskit = $MODEL _tech/. /std_developerskit

Synopsys = $MODEL _tech/. /synopsys

Modelsim_lib = $MODEL _tech/. /modelsim_lib

SV_STD = $MODEL _tech/. /sv_std

MTIAVM = $MODEL _tech/. /avm

MTIOVM = $MODEL _tech/. /ovm-2.0.1

MTIUPF = $MODEL _tech/. /upf_lib

Mtipa = $MODEL _tech/. /pa_lib


Unisims_ver = D:\modeltech_6.5b\xilinx_libs\unisims_ver
Simprims_ver =d:\modeltech_6.5b\xilinx_libs\simprims_ver
Xilinxcorelib_ver = D:\modeltech_6.5b\xilinx_libs\xilinxcorelib_ver
Cpld_ver = D:\modeltech_6.5b\xilinx_libs\cpld_ver
Uni9000_ver = D:\modeltech_6.5b\xilinx_libs\uni9000_ver
UniSIM = D:\modeltech_6.5b\xilinx_libs\unisim
Simprim = D:\modeltech_6.5b\xilinx_libs\simprim
Xilinxcorelib = D:\modeltech_6.5b\xilinx_libs\xilinxcorelib
CPLD = D:\MODELTECH_6.5B\XILINX_LIBS\CPLD
EDK =D:\MODELTECH_6.5B\XILINX_LIBS\EDK
Secureip=d:\modeltech_6.5b\xilinx_libs\secureip
Unimacro=d:\modeltech_6.5b\xilinx_libs\unimacro
Unimacro_ver=d:\modeltech_6.5b\xilinx_libs\unimacro_ver

The first few lines are the original ones, and the next few lines are manually added by myself.

Method Three:

So the following is an introduction to the process of compiling Xilinx libraries directly using Modelsim and simulating them.

STEP1: Create a folder under the Modelsim installation path to store the compiled library files.

STEP2: Open Modelsim, change path to Xilinx_lib

STEP3: Create a new library named Xilinx_unisims, which is used to store the compiled files of the Unisims library.

STEP4: Compile the Unisims library file into the Xilinx_unisims library. Select Compile

In the library, select the Xilinx_unsims library you just created, look for the D:\Xilinx\11.1\ISE\verilog\src\unisims, then all the files, click on the bottom right corner compile compile

After compiling, you can see that the Unisims library files are compiled into the Xilinx_unsims library.

STEP5: Create Xilinx_corelib and xilinx_simprims two libraries according to Step4 method, and compile files of Xilinxcorelib and Simprims folders into these two libraries respectively. Once the compilation is complete, you can see that the library has more than three libraries that you just created.

STEP6: Locate the Modelsim.ini file in the installation directory, turn off its read-only property, and add the following three statements to add the three libraries to the default library file.

Once added, save and change the Modelsim.ini to read-only.

After you open the Modelsim again later, you can see that the library has more than three libraries that you just created.

About Xilinx ise10.1 and Modelsim Simulation Library compilation

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.