Lattice and Modelsim simulation notes

Source: Internet
Author: User

For lattice Diamond and Modelsim's joint simulation, I summed up a sentence, that is--the difficult person will not, will not be difficult. Maybe it's just starting to feel like a little confused, but once you learn to feel it's simple and intuitive.

Go straight to the chase, simulation the first step: Build the Simulation library.

After the correct installation of the diamond and Modelsim, it is first to establish their own lattice simulation of the library files:

1. Open the Modelsim installation directory, open the Modelsim.ini property in its directory, and remove its read-only nature.

2. Create a new folder in the appropriate location under the Modelsim installation directory, and name it (my name is on the type of chip), as a generated folder for the library file:

3. Enter the Modelsim software and open file-----... To change the path, change the path to the new folder, in order to generate the library file directly under this folder:

    

4. Create a new library with the following methods:

    

    

After clicking OK, the success of the build will appear in the library, such as:

    

5, Next is a very important step: Compile the Library file:

Remember the path to two files before compiling: ECP3 and PMI.

If you use the Verilog language, the path is:

If you use VHDL language, the path is:

      

Remember, in Modelsim, click Compile--compile ... Prepare the library file for compilation.

    

Compile ecp3,library: Choose ECP3 Library, look for the ECP3 folder of the last path, then select all the files in the file, click Compile wait for the vault to compile:

    

The following interface appears to be the compile complete:

Then change the lookup scope to the PMI folder, agreeing to the full compilation of the files inside:

Until finished, the following message appears, then click on Done, exit, and then click Save to close the Modelsim file.

    

6, after exiting, open the Modelsim.ini file, find the added line, such as:

Change it to the path of your library file:

Then save, close the file, and tick its read-only option.

7, open Modelsim, you can see the library list of their own established library can be used, then completed the first step.

Simulation of the second step; Diamond software setup and simulation operations:

Cond...

Lattice and Modelsim simulation notes

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.