Hallo, wollte mal wissen, ob jemand mir vielleicht erklären kann, wie ich die Lattice Libraries mit modelsim kompilieren kann. hab die batch datei ausgeführt daraufhin hat er ein work ordner und eine modelsim.ini datei erstellt, was mach ich nun damit, unter diesem verzeichnis habe ich die batch datei gefunden, hoffe hab die richtige batch datei erwischt. C:\lscc\diamond\1.4\cae_library\simulation\vhdl\xp\mti Danke für euere Hilfe
so sieht es aus
1 | @echo off |
2 | copy modelsim.pc modelsim.ini |
3 | |
4 | vlib .\work |
5 | vmap EC .\work |
6 | vmap XP .\work |
7 | |
8 | echo Compiling the EC/XP Component File... |
9 | vcom -87 -explicit -work .\work ..\src\ORCACOMP.vhd |
10 | echo Compiling the EC/XP Sequential Cells... |
11 | vcom -87 -explicit -work .\work ..\src\ORCA_SEQ.vhd |
12 | echo Compiling the EC/XP I/Os... |
13 | vcom -87 -explicit -work .\work ..\src\ORCA_IO.vhd |
14 | echo Compiling the EC/XP Combinational Cells... |
15 | vcom -87 -explicit -work .\work ..\src\ORCA_CMB.vhd |
16 | echo Compiling the EC/XP Counters... |
17 | vcom -87 -explicit -work .\work ..\src\ORCA_CNT.vhd |
18 | echo Compiling the EC/XP Memory Elements... |
19 | vcom -87 -explicit -work .\work ..\src\ORCA_MEM.vhd |
20 | echo Compiling the EC/XP Miscillaneous Cells... |
21 | vcom -87 -explicit -work .\work ..\src\ORCA_MISC.vhd |
22 | echo Compiling the EC/XP LUTs... |
23 | vcom -87 -explicit -work .\work ..\src\ORCA_LUT.vhd |
Aus dem Modelsim-Handbuch:
1 | Creating the Logical Library (vlib) |
2 | Before you can compile your source files, you must create a library in which to store the |
3 | compilation results. You can create the logical library using the GUI, by choosing File > New > |
4 | Library from the main menu (see Creating a Library), or you can use the vlib command. For |
5 | example, the following command: |
6 | vlib work |
7 | creates a library named work. By default, compilation results are stored in the work library. |
1 | Mapping the Logical Work to the Physical Work Directory (vmap) |
2 | VHDL uses logical library names that can be mapped to ModelSim library directories. If |
3 | libraries are not mapped properly, and you invoke your simulation, necessary components will |
4 | not be loaded and simulation will fail. Similarly, compilation can also depend on proper library |
5 | mapping. |
6 | By default, ModelSim can find libraries in your current directory (assuming they have the right |
7 | name), but for it to find libraries located elsewhere, you need to map a logical library name to |
8 | the pathname of the library. |
9 | You can use the GUI (Library Mappings with the GUI, a command (Library Mapping from the |
10 | Command Line), or a project (Getting Started with Projects to assign a logical name to a design |
11 | library. |
12 | The format for command line entry is: |
13 | vmap <logical_name> <directory_pathname> |
14 | This command sets the mapping between a logical library name and a directory. |
Im Lattice-Batchfile werden also alle HDLs in ein Work-Verzeichnis kompiliert. Dieses Work-Verzeichnis erhält zwei "logische" Verknüpfungen mit "EC" und "XP". Somit kannst du über "EC" bzw. "XP" auf diese Bibliothek zugreifen. Natürlich kannst du die Bibliotheks-Quellen auch in ein anderes Verzeichnis kompilieren. Hierzu müsstest du dann die Pfade ändern.
Danke für die Antwort. Nach eienr Anleitung habe ich das Batchfile ausgeführt, wobei er dann ein work ordern wie ich schon erwähnt habe erstellt und eine modelsim.ini datei, was muss ich denn nun machen, hab dazu nämlich ein verilog Projekt und möchte es mit Modelsim simulieren, dafür muss ich die Lattice Libraries kompilieren.
Mit welcher Modelsim-Version simulierst du? Du kannst die Quellen selbstverständlich auch in Verilog mit "vlog" kompilieren. Die Verilog-Quellen liegen in: C:\lscc\diamond\1.4\cae_library\simulation\verilog\xp
Bitte melde dich an um einen Beitrag zu schreiben. Anmeldung ist kostenlos und dauert nur eine Minute.
Bestehender Account
Schon ein Account bei Google/GoogleMail? Keine Anmeldung erforderlich!
Mit Google-Account einloggen
Mit Google-Account einloggen
Noch kein Account? Hier anmelden.