Difference between revisions of "Lattice Diamond"

From CNC Wiki
Jump to navigation Jump to search
(added another licensing link)
(added Ubuntu installation instructions)
Line 26: Line 26:
 
| MD5 checksums for Linux installers
 
| MD5 checksums for Linux installers
 
|}
 
|}
 +
 +
== Installation ==
 +
 +
=== Ubuntu 20.04 (focal) ===
 +
 +
You can use the <code>alien</code> utility to convert the <code>.rpm</code> to a <code>.deb</code> suitable for installation under Ubuntu. If you don't want to install it globally, you can instead use <code>rpm2cpio</code> and <code>rpm</code> to extract the RPM contents and view the post-install script that needs to be run.
 +
 +
<pre># unpack the RPM
 +
mkdir ~/apps/diamond
 +
cd ~/apps/diamond
 +
rpm2cpio ~/Downloads/diamond_3_12-base-240-2-x86_64-linux.rpm | cpio -idmv
 +
 +
# run the relevant commands from the post install script
 +
export RPM_INSTALL_PREFIX=~/apps/diamond/usr/local
 +
rpm -qp --scripts ~/Downloads/diamond_3_12-base-240-2-x86_64-linux.rpm | sed -n '/^postinstall scriptlet/,${p;/^preuninstall scriptlet/q}' - | grep tar | source /dev/stdin</pre>
 +
 +
The following online guides are useful:
 +
 +
* [https://ycnrg.org/lattice-diamond-on-ubuntu-16-04/ Lattice Diamond on Ubuntu 16.04]
 +
* [http://timallen.name/index.php/2019/01/14/installing-lattice-diamond-on-ubuntu-18-04/ Installing Lattice Diamond on Ubuntu 18.04 – Tim E Allen]
  
 
== Online Resources ==
 
== Online Resources ==

Revision as of 00:08, 8 May 2021

Overview

FPGA development environment made by Lattice for their chips.

Download Links

URL Size MD5 Description
3.12.0.240.2_Diamond.zip 1,736,817,600 bytes 9ef354380480647601ad29fb9e4f5092 Diamond 3.12 for Windows
diamond_3_12-base-240-2-x86_64-linux.rpm 1,879,818,513 bytes 54c54e051a7d655345652c04073db02f Diamond 3.12 for Linux (RPM)
linux_installers_md5_312.tgz 545 bytes 9cafc26772186bfec32b4c7b75225cbb MD5 checksums for Linux installers

Installation

Ubuntu 20.04 (focal)

You can use the alien utility to convert the .rpm to a .deb suitable for installation under Ubuntu. If you don't want to install it globally, you can instead use rpm2cpio and rpm to extract the RPM contents and view the post-install script that needs to be run.

# unpack the RPM
mkdir ~/apps/diamond
cd ~/apps/diamond
rpm2cpio ~/Downloads/diamond_3_12-base-240-2-x86_64-linux.rpm | cpio -idmv

# run the relevant commands from the post install script
export RPM_INSTALL_PREFIX=~/apps/diamond/usr/local
rpm -qp --scripts ~/Downloads/diamond_3_12-base-240-2-x86_64-linux.rpm | sed -n '/^postinstall scriptlet/,${p;/^preuninstall scriptlet/q}' - | grep tar | source /dev/stdin

The following online guides are useful:

Online Resources

Lattice Diamond - Lattice Semiconductor

Licensing - Lattice Semiconductor

Lattice Diamond Free Software - Lattice Semiconductor

Lattice Semiconductor - Wikipedia