Lattice flash: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Nick (Diskussion | Beiträge) |
Nick (Diskussion | Beiträge) |
||
| Zeile 55: | Zeile 55: | ||
make program # program RAM volatile | make program # program RAM volatile | ||
make finalflow # program Flash non volatile | make finalflow # program Flash non volatile | ||
=MS Visual Studio Code & Cygwin= | |||
Download [https://marketplace.visualstudio.com/items?itemName=Tyriar.shell-launcher Shell Launcher] in VS Code | |||
"shellLauncher.shells.windows": [ | |||
{ | |||
"shell": "C:\\Windows\\System32\\cmd.exe", | |||
"label": "cmd" | |||
}, | |||
{ | |||
"shell": "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe", | |||
"label": "PowerShell" | |||
}, | |||
{ | |||
"shell": "D:\\Nick\\Programme\\cygwin64\\Cygwin.bat", | |||
"args": ["-l"], | |||
"env": {"CHERE_INVOKING": "1"}, | |||
"label": "Cygwin Bash" | |||
} | |||
] | |||
Version vom 5. Januar 2022, 07:04 Uhr
Lattice Diamond
- Download Lattice Diamond
- Installation Diamond
CygWin
Tools in CygWin
- make
- vim
Umgebungsvariablen setzen
vim setup_lattice.sh
Inhalt: (Pfade anpassen)
#!/bin/bash lat_path=/cygdrive/f/Programme/lscc/diamond/3.12 export FOUNDRY="F:/Programme/lscc/diamond/3.12/ispfpga" setx FOUNDRY "F:/Programme/lscc/diamond/3.12/ispfpga" mkdir ~/bin cd ~/bin ln --force -s "$lat_path/bin/nt64/diamond" diamond ln --force -s "$lat_path/bin/nt64/synpwrap" synpwrap ln --force -s "$lat_path/ispfpga/bin/nt64/synthesis" lattice_synthesis ln --force -s "$lat_path/ispfpga/bin/nt64/edif2ngd" lattice_edif2ngd ln --force -s "$lat_path/ispfpga/bin/nt64/ngdbuild" lattice_ngdbuild ln --force -s "$lat_path/ispfpga/bin/nt64/map" lattice_map ln --force -s "$lat_path/bin/nt64/mpartrce" lattice_mpartrce ln --force -s "$lat_path/ispfpga/bin/nt64/par" lattice_par ln --force -s "$lat_path/ispfpga/bin/nt64/trce" lattice_trce ln --force -s "$lat_path/ispfpga/bin/nt64/bitgen" lattice_bitgen ln --force -s "$lat_path/bin/nt64/pgrcmd" lattice_pgrcmd PATH=$(pwd):$PATH cd ls -la ~/bin echo "FOUNDRY=" echo $FOUNDRY echo "PATH=" echo $PATH
chmod +x setup_lattice.sh ./setup_lattice.sh
Ordner Struktur Lattice-Projekt:
- Projektname
- rtl # vhd - Dateien
- rtl_tb # vhd - Dateien der Testbench
- simulation_modelsim # Simulationsdateien für Modelsim
- synthesis_lattice # Synthesedateien
Das Synthese Makefile in den Ordner synthesis_lattice kopieren.
Das Modelsim Makefile in den Ordner simulation_modelsim kopieren.
Build/Flash bit-file
In CygWin in den Ordner Projektname/synthesis_lattice navigieren:
make bitgen # build bit-file make program # program RAM volatile make finalflow # program Flash non volatile
MS Visual Studio Code & Cygwin
Download Shell Launcher in VS Code
"shellLauncher.shells.windows": [
{
"shell": "C:\\Windows\\System32\\cmd.exe",
"label": "cmd"
},
{
"shell": "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe",
"label": "PowerShell"
},
{
"shell": "D:\\Nick\\Programme\\cygwin64\\Cygwin.bat",
"args": ["-l"],
"env": {"CHERE_INVOKING": "1"},
"label": "Cygwin Bash"
}
]