Difference between revisions of "Diamond"
From ArmadeusWiki
(→Install on debian 64bits) |
(→Install on debian 64bits) |
||
Line 22: | Line 22: | ||
</pre> | </pre> | ||
− | * Convert it to deb package then install it: | + | * Convert it to deb package then install it (take a long time ~10 min): |
<pre class="host"> | <pre class="host"> | ||
sudo alien diamond_3_7-base_x64-96-1-x86_64-linux.rpm | sudo alien diamond_3_7-base_x64-96-1-x86_64-linux.rpm | ||
Line 32: | Line 32: | ||
<pre class="host"> | <pre class="host"> | ||
cd /usr/local/diamond/3.7_x64/ | cd /usr/local/diamond/3.7_x64/ | ||
− | cd bin/; sudo tar -zxvf bin.tar.gz; cd .. | + | cd bin/; sudo tar -zxvf bin.tar.gz;sudo rm bin.tar.gz; cd .. |
− | cd synpbase/;sudo tar -zxvf synpbase.tar.gz;cd .. | + | cd synpbase/;sudo tar -zxvf synpbase.tar.gz;sudo rm synpbase.tar.gz; cd .. |
− | cd examples/;sudo tar -zxvf examples.tar.gz; cd .. | + | cd examples/;sudo tar -zxvf examples.tar.gz;sudo rm examples.tar.gz; cd .. |
− | cd data/;sudo tar -zxvf data.tar.gz; cd .. | + | cd data/;sudo tar -zxvf data.tar.gz; sudo rm data.tar.gz; cd .. |
− | cd cae_library/;sudo tar -zxvf cae_library.tar.gz; cd .. | + | cd cae_library/;sudo tar -zxvf cae_library.tar.gz; sudo rm cae_library.tar.gz; cd .. |
− | cd ispfpga/;sudo tar -zxvf ispfpga.tar.gz;cd .. | + | cd ispfpga/;sudo tar -zxvf ispfpga.tar.gz;sudo rm ispfpga.tar.gz; cd .. |
− | cd tcltk/;sudo tar -zxvf tcltk.tar.gz;cd .. | + | cd tcltk/;sudo tar -zxvf tcltk.tar.gz; sudo rm tcltk.tar.gz; cd .. |
− | cd embedded_source/;sudo tar -zxvf embedded_source.tar.gz;cd .. | + | cd embedded_source/;sudo tar -zxvf embedded_source.tar.gz; sudo rm embedded_source.tar.gz; cd .. |
</pre> | </pre> | ||
Revision as of 08:18, 27 April 2016
Contents
Introduction
Lattice diamond is the software used to synthesize bitstream for Lattice FPGAs. It's required for the MachXO[1,2,3] FPGA.
Installation guide
Download
Download the rpm file on Lattice website [1].
Get a free license
On this page : [2]
Install on debian 64bits
- First alien is needed to convert the rpm in debian package :
sudo apt-get install alien
- Convert it to deb package then install it (take a long time ~10 min):
sudo alien diamond_3_7-base_x64-96-1-x86_64-linux.rpm sudo dpkg -i diamond-3-7-base-x64_3.7-97_amd64.deb
- The package is not correctly installed in directory /usr/local/diamond/. All tar.gz must be deflated :
cd /usr/local/diamond/3.7_x64/ cd bin/; sudo tar -zxvf bin.tar.gz;sudo rm bin.tar.gz; cd .. cd synpbase/;sudo tar -zxvf synpbase.tar.gz;sudo rm synpbase.tar.gz; cd .. cd examples/;sudo tar -zxvf examples.tar.gz;sudo rm examples.tar.gz; cd .. cd data/;sudo tar -zxvf data.tar.gz; sudo rm data.tar.gz; cd .. cd cae_library/;sudo tar -zxvf cae_library.tar.gz; sudo rm cae_library.tar.gz; cd .. cd ispfpga/;sudo tar -zxvf ispfpga.tar.gz;sudo rm ispfpga.tar.gz; cd .. cd tcltk/;sudo tar -zxvf tcltk.tar.gz; sudo rm tcltk.tar.gz; cd .. cd embedded_source/;sudo tar -zxvf embedded_source.tar.gz; sudo rm embedded_source.tar.gz; cd ..
- Install libpng correctly:
cd /usr/local/diamond/3.7_x64/bin/lin64 sudo mv libpng12.so.0 libpng12.so.0.old sudo ln /usr/lib/x86_64-linux-gnu/libpng12.so.0 -s libpng12.so.0
- save the license.dat received by mail in following directory:
/usr/local/diamond/3.7_x64/license/
- Add this lines in your ~/.bashrc:
#Lattice Diamond
export PATH=$PATH:"/usr/local/diamond/3.7_x64/bin/lin64"
- open a new terminal (or re-source your .bashrc) then launch diamond:
diamond