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