5487 - Diamond version 3.13 and below: Is Lattice Diamond supported on Ubuntu?

5487 - Diamond version 3.13 and below: Is Lattice Diamond supported on Ubuntu?

Lattice Diamond is NOT guaranteed to work on Ubuntu since we have not tested our tools on this OS.
Our tools are supported and tested on Red Hat Enterprise Linux. See the Lattice Diamond Installation Guide for Linux for the specific versions we support.

We always recommend that our customers use supported platforms for our software so that we can actively support and enhance them when issues are identified.

This FAQ is for guidance purposes only and is provided as is.

Steps to install Lattice Diamond 3.11 on Ubuntu 18.04 LTS:

1. Download the Lattice Diamond for Linux install RPM file from Lattice website.
2. Convert the RPM to Debian, then install.

Link: https://help.ubuntu.com/community/RPM/AlienHowto

(this approach doesn't work):
sudo apt install rpm

(use this instead):
sudo apt-get install alien 

(install Diamond)
sudo alien --scripts d311-base_x64-396-4-x86_64-linux.rpm
sudo dpkg -i diamond-3-11-base-x64_3.11-397_amd64.deb

(install SP3)
sudo alien --scripts d311-sp3_x64-469-0-x86_64-linux.rpm
sudo dpkg -i diamond-3-11-sp3-x64_3.11-470_amd64.deb

Copy your license to the license directory:

sudo cp license_201029.dat /usr/local/diamond/3.11_x64/license/
or:
cd /usr/local/diamond/3.11_x64/license/
sudo cp license_201029.dat license.dat

To add support for running Synopsys Synplify Pro:

cd /usr/local/diamond/3.11_x64
sudo sed -i '1{/^#!\/[^ ]*\/sh\( *\)/s||#!/bin/bash|}' ./tcltk/lib/ipwidgets/ispipbuilder/*.tcl
sudo sed -i '1{/^#!\/[^ ]*\/sh\( *\)/s||#!/bin/bash|}' tcltk/bin/*.sh
cd /usr/local/diamond/3.11_x64/synpbase/bin
sudo sed -i '1{/^#!\/[^ ]*\/sh\( *\)/s||#!/bin/bash|}' `find . -maxdepth 1 -type f`

(to run the Diamond GUI):
/usr/local/diamond/3.11_x64/bin/lin64/diamond &