Mentor Graphics; wie Vendor Libraries einbinden

OP #2757261
Lesenswert?

Hallo
Ich habe da ein Problem. Und zwar habe ich ein VHDL design entwickelt in 
der Lattice Diamond Umgebung und möchte diese Desgn jetzt in Mentor 
Graphics HDL Designer öffnen. Zwecks Simulation (Modelsim) und Zwecks 
Dokumentation.

Nun habe ich das Problem, dass der HDL Designer die library xp2 nicht 
kennt, welche in einem der vhdl Files eingebunden wird.
1
library IEEE;
2
use IEEE.std_logic_1164.all;
3
-- synopsys translate_off
4
library xp2;
5
use xp2.components.all;
6
-- synopsys translate_on

Mir ist klar, dass ich die Library irgendwie in das Mentor Verzeichniss 
reinkompilieren muss, Lattice liefert entsprechende batch files mit. 
Aber irgendwie mache ich wohl etwas falsch (evt. mit den Library 
mappings?) da es nicht klappt. Ich muss erhlich gestehen ich blick auch 
nicht durch.

Kann mir vielleicht jemand helfen?
Gruss
(Firma: abaxor engineering) #2757960
Lesenswert?

Reto B. schrieb:
> Mir ist klar, dass ich die Library irgendwie in das Mentor Verzeichniss
> reinkompilieren muss, Lattice liefert entsprechende batch files mit.
> Aber irgendwie mache ich wohl etwas falsch (evt. mit den Library
> mappings?) da es nicht klappt. Ich muss erhlich gestehen ich blick auch
> nicht durch.

Hast du die Bibliotheken in bereits kompiliert? Dazu lege ich mir ein 
entsprechendes Projekt an, in das ich die Lattice-Bibliotheken einfüge. 
Dann wird kompiliert, dabei gibt es meist einen Fehler, weil die gerade 
estellte Lib sich selber braucht. Darum musst du ein Mapping auf work 
anlegen: im Library-Tab RMB->New->Library...-> a map to an existing 
library. Eventuell gibt es auch noch Fehler, weil man nicht die richtige 
Compile-Order hat, dann die Reihenfolge ändern.
Wenn du dann durch bist, musst du in deine Projekt, wo du die XP2-Lib 
braucht auch noch ein Mapping auf die XP2-Lib erstellen.

Das Verfahren hier klappt mit Lattice, Actel und Xilinx-Unisim, weil da 
immer nur ein paar Dateien dazu gehören. Für die XilinxCoreLib sollte 
man schon das Comxlib-skript nutzen.

Viel Erfolg


Tom
OP #2759757
Lesenswert?

Danke für die Hilfe.
Ich konnte das Problem lösen in dem ich im Projekt eine neue Library 
namens xp2 mache. Dann gehe ich in den Library Explorer und füge per 
Add->Existing Files die sourcen der xp2 Library hinzfüg. Das scheint 
vorerst zu klappen. Ich verstehe das ganze zwar irgendwie nicht ganz, 
weil nichts kompiliert wurde, aber was solls.
Gast #3870716
Lesenswert?

Christian R. schrieb:
> Ist bei Lattice kein Programm/Script dabei, um die Vendor Libs für die
> entsprechende ModelSim Version zu kompilieren?
Um mal eine kleine Ergänzung zu machen (und mir die Suche beim nächsten 
Mal zu verkürzen...):
Bei Lattice Diamond (getestet mit Version 3.3) nennt sich das Skript: 
cmpl_libs und ist über die TCL-Konsole zu starten:
1
cmpl_libs -sim_path C:/modeltech64_10.3d/win64 -target_path D:/compiled_libs
2
Diamond install path: C:/lscc/diamond/3.3_x64
3
Compiling SC Verilog library...
4
Compiling SCM Verilog library...
5
Compiling EC Verilog library...
6
Compiling XP Verilog library...
7
Compiling ECP Verilog library...
8
Compiling MACHXO Verilog library...
9
Compiling ECP2 Verilog library...
10
Compiling XP2 Verilog library...
11
Compiling ECP3 Verilog library...
12
Compiling MACHXO2 Verilog library...
13
Compiling MACHXO3L Verilog library...
14
Compiling LPTM Verilog library...
15
Compiling LPTM2 Verilog library...
16
Compiling ECP5U Verilog library...
17
Compiling SC VHDL library...
18
Compiling SCM VHDL library...
19
Compiling EC VHDL library...
20
Compiling XP VHDL library...
21
Compiling ECP VHDL library...
22
Compiling MACHXO VHDL library...
23
Compiling ECP2 VHDL library...
24
Compiling XP2 VHDL library...
25
Compiling ECP3 VHDL library...
26
Compiling MACHXO2 VHDL library...
27
Compiling MACHXO3L VHDL library...
28
Compiling LPTM VHDL library...
29
Compiling LPTM2 VHDL library...
30
Compiling ECP5U VHDL library...
31
Refreshing PCSA library...
32
Refreshing SYSBUSA library...
33
Refreshing LSCDR library...
34
Mapping ECP2M Verilog library...
35
Mapping ECP2M VHDL library...
36
Refreshing PCSC library...
37
Refreshing PCSC revA library...
38
Refreshing PCSD library...
39
Mapping ECP5UM Verilog library...
40
Mapping ECP5UM VHDL library...
41
Libraries are located in D:/compiled_libs and modelsim.ini is updated.

Duke

Antwort schreiben

Bitte melde dich an, um einen Beitrag zu schreiben.

oder

Mit Google-Account einloggen

Die Registrierung ist kostenlos und dauert nur eine Minute.

Jetzt registrieren