How to install Diamond on Linux - tomas-fryza/vhdl-course GitHub Wiki

Installation

  1. Download the latest Lattice Diamond for Linux (such as diamond_3_13-base-56-2-x86_64-linux.rpm - 1.7 GB). You will need a free Lattice account to do it.

  2. Go to your Download folder and from right-click menu, select open terminal here. Check the MD5 sum to see if the installation file was downloaded correctly. If the checksum value is different, download the installation file again.

    md5sum diamond_3_13-base-56-2-x86_64-linux.rpm
    # Correct MD5 SUM Value is: e2a989f9d77cccf5fc3c25caf6b0b638
    
  3. Ubuntu users, convert RPM file to DEB and run the installer.

    # Convert RPM file to DEB
    sudo apt update
    sudo apt install alien -y
    sudo alien --scripts diamond_3_13-base-56-2-x86_64-linux.rpm
    
    # Install the DEB file
    sudo dpkg -i diamond-3-13-base_3.13-57_amd64.deb
    
  4. Request a free Node-locked license. You will need a free Lattice account to do it and your your 12-digit NIC (physical address) without any separator or spaces.

    # Get your 12-digit NIC
    ifconfig | grep ether
        ether 01:23:45:67:89:ab  txqueuelen 1000  (Ethernet)
    
    # In my case, it is `0123456789ab`
    

    You will receive the licence file via email and copy it to the license directory.

    sudo cp license.dat /usr/local/diamond/3.13/license/
    

    Set the path to the licence file and add the following line to the end of ~/.bashrc file.

    export LM_LICENSE_FILE="/usr/local/diamond/3.13/license/license.dat"
    

    Reload the shell script by

    source ~/.bashrc
    
  5. Run the application by

    /usr/local/diamond/3.13/bin/lin64/diamond &