Diamond38 Installation Guide For Windows
Diamond38 Installation Guide For Windows
8 Installation
Notice for Windows
August 2016
Copyright
Copyright © 2016 Lattice Semiconductor Corporation. All rights reserved. This
document may not, in whole or part, be reproduced, modified, distributed, or publicly
displayed without prior written consent from Lattice Semiconductor Corporation
(“Lattice”).
Trademarks
All Lattice trademarks are as listed at www.latticesemi.com/legal. Synopsys and
Synplify Pro are trademarks of Synopsys, Inc. Aldec and Active-HDL are trademarks
of Aldec, Inc. All other trademarks are the property of their respective owners.
Disclaimers
NO WARRANTIES: THE INFORMATION PROVIDED IN THIS DOCUMENT IS “AS IS”
WITHOUT ANY EXPRESS OR IMPLIED WARRANTY OF ANY KIND INCLUDING
WARRANTIES OF ACCURACY, COMPLETENESS, MERCHANTABILITY,
NONINFRINGEMENT OF INTELLECTUAL PROPERTY, OR FITNESS FOR ANY
PARTICULAR PURPOSE. IN NO EVENT WILL LATTICE OR ITS SUPPLIERS BE
LIABLE FOR ANY DAMAGES WHATSOEVER (WHETHER DIRECT, INDIRECT,
SPECIAL, INCIDENTAL, OR CONSEQUENTIAL, INCLUDING, WITHOUT
LIMITATION, DAMAGES FOR LOSS OF PROFITS, BUSINESS INTERRUPTION, OR
LOSS OF INFORMATION) ARISING OUT OF THE USE OF OR INABILITY TO USE
THE INFORMATION PROVIDED IN THIS DOCUMENT, EVEN IF LATTICE HAS
BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. BECAUSE SOME
JURISDICTIONS PROHIBIT THE EXCLUSION OR LIMITATION OF CERTAIN
LIABILITY, SOME OF THE ABOVE LIMITATIONS MAY NOT APPLY TO YOU.
Bold Items in the user interface that you select or click. Text that you type
into the user interface.
Courier Code examples. Messages, reports, and prompts from the software.
This chapter provides installation instructions for the Lattice Diamond® 3.8
software for Windows.
Diamond supports ECP5™, LatticeEC™, LatticeECP™, LatticeECP2™,
LatticeECP2M™, LatticeECP3™, LatticeSC™, LatticeSCM™, LatticeXP™,
LatticeXP2™, LIFMD (CrossLink™), MachXO™, MachXO2™, MachXO3L,
Platform Manager™, and Platform Manager 2 designs.
Note
The available devices vary depending on the type of license.
System Requirements
The following are the basic system requirements for Lattice Diamond on
Windows:
Intel Pentium or Pentium-compatible PC
Windows 7 (32-bit or 64-bit), Windows 8/8.1 (32-bit or 64-bit), or Windows
10 (32-bit or 64-bit)
Approximately 5.75 GB free disk space
RAM adequate for your FPGA design. For guidelines see Memory
Requirements.
Network adapter
Note
A node-locked license is based on the physical (hard-coded) address provided by
the network adapter. Network connectivity is not necessarily required for a node-
locked license. In the absence of a network connection, you can install the NWLink
IPX/SPX protocol to force the recognition of your NIC card ID (see “Licensing for
Diamond and Stand-Alone Power Estimator” on page 15).
A floating license requires access to the license server, so both a network adapter
and connectivity are required.
Memory Requirements
Table 1 lists the minimum memory requirements and the recommended
memory for all the Lattice Semiconductor FPGA families. Designing for the
largest FPGAs may require more than the usual 2 GB of memory. For help in
extending your memory to 3 or 4 GB, see “Extending Memory” on page 9.
Up to 100K LUT 1 GB 2 GB 2 GB 4 GB
Up to 150K LUT 3 GB 4 GB 6 GB 8 GB
Extending Memory
Designing for ECP5 or LatticeECP3 may require more than the 2 GB normally
available with 32-bit Windows systems. But you can configure Windows to
use up to 3 GB of memory.
Telephone Support Hotline Receive direct technical support for all Lattice
products by calling Lattice Applications from 5:30 a.m. to 6 p.m. Pacific Time.
In Asia, call Lattice Applications from 8:30 a.m. to 5:30 p.m. Beijing Time
(CST), +0800 UTC. Chinese and English language only.
For Asia: +86 21 52989090
E-mail Support
[email protected]
Diamond for Installs the Diamond design tools for all Lattice Semiconductor FPGA designs.
Windows Table 3 lists the tools included in this option.
Synplify Pro for Installs the Synopsys® Synplify Pro® for Lattice synthesis tool. A license for Synplify
Lattice Pro is included.
Active-HDL Lattice Installs Aldec® Active-HDL™ Lattice Edition simulation tool. A license for Active-HDL
Edition is included.
Programmer Drivers Installs drivers for the Programmer tool, which loads FPGAs with the designs.
Table 3 shows the tools included in the Diamond for Windows option.
Project Management Include the Reports view, Run Manager, and the Security Setting tool to enable you
Tools to create and maintain the project, keep track of the stages in the design
implementation process, review reports, and compare different implementations of
the project.
Design Entry Tools Include Source Editor, Schematic Editor, Symbol Editor, Symbol Library Manager,
Clarity Designer, IPexpress, Memory Generator, and HDL Diagram, which offer
VHDL, Verilog, EDIF, schematic, and mixed-mode design entry support and design
structure check. Platform Designer is available for Platform Manager 2 devices only.
Design Simulation Include Simulation Wizard, Active-HDL Lattice Edition, and Waveform Editor for
Tools performing functional simulation for the projects and creating the test stimulus files.
Design Constraints Include Spreadsheet View, Package View, Device View, Netlist View, NCD View,
Application Tools Floorplan View, Physical View, and Netlist Analyzer to enable you to set constraints
for implementing the design.
Design Include Synplify Pro for Lattice, Lattice Synthesis Engine (LSE), Clear Tool Memory,
Implementation Design Translation, Map, Place & Route, and Bit Generation to ease the design
Tools implementation process.
Analyzing Static Include Timing Analysis View and Power Calculator to enable you to estimate the
Timing, Power design performance, experiment with different configurations, and to calculate power
Consumption, and consumption.
Signal Integrity Tools
Programming the Include Programmer, Deployment Tool, Download Debugger, Programming File
FPGA Tool Utility, and Model 300 Programmer tools to let you program the FPGAs.
Testing and Include Reveal Inserter and Reveal Analyzer to let you complete the final stage of
Debugging On-chip developing a design: testing in the actual FPGA, either on a test board or in your
Tools system.
Applying Includes ECO Editor which supports engineering change orders by editing the output
Engineering Change files from the place-and-route stage of the design implementation process.
Order Tool
EPIC Device Editor Provides device editing capability for engineering change management and detailed
manipulation of FPGA implementation.
HTML Help and User Includes complete instructions for designing with Diamond design tools and third-
Documentation party tools. Also provides user manuals, tutorials, example design projects, and
access to technical documentation from the Lattice Semiconductor Web site.
Note
Platform Manager 2 devices require the Diamond Platform Designer tool. The
LatticeMico System software must be installed along with Diamond in order to use
Platform Designer. Refer to “Installing LatticeMico with Diamond” on page 33.
Installation Procedure
The Lattice Diamond software is available for download from the Lattice
Diamond Downloads & Licensing web page located at
http://www.latticesemi.com/latticediamond. Click the Downloads tab. Some
documents and downloads are not visible to anonymous visitors. To view all
items, please log in to your Lattice account. Follow the product download
instructions and uncompress the software.
Note
The 32-bit version of Diamond software executable file is named
3.8.0.115.3_Diamond.exe. The 64-bit version of Diamond software executable file
is named 3.8.0.115.3_Diamond_x64.exe.
An Encryption Control Pack is available, but must be explicitly requested by the
customer and approved by Lattice Semiconductor Corporation. The Encryption
Control Pack is provided separately from the Diamond software executable file.
If you are installing the Encryption Control Pack, you should install the file named
3.8.0.115.3_Control_Pack_Encryption.exe for the 32-bit version of Diamond, and
the file named 3.8.0.115.3_Control_Pack_Encryption_x64.exe for the 64-bit
version of Diamond.
The Diamond software must be installed before installing the Encryption Control
Pack.
9. Click Next to open the Select Program Folder dialog box. The default
name of the program group is Lattice Diamond 3.8 (or Lattice Diamond
3.8 (64-bit) if you installed the 64-bit version). If you want to change the
name, change it in the Program Folder text box.
10. If you have selected the Active-HDL Lattice Edition option, you will be
prompted to select a license opti3zxcdon as shown in Figure 1.
Note
Clicking the Cancel button cancels the entire Diamond installation. Installation of
Active-HDL cannot be cancelled at this point.
12. In the Create Shortcut on Desktop dialog box, select desired option and
click Next.
Parallel port or USB drivers are required to program Lattice devices using the
Lattice download cables. To install the drivers, you should have administrative
privileges.
Three drivers are installed with the Programmer Download Parallel/USB Port
Driver dialog box.
Parallel port driver – Supports device programming through the parallel
port of your PC. The driver can be installed on Windows 7, Windows 8/
8.1, and Windows 10.
USB port driver – Supports device programming through the USB port of
your PC. The driver can be installed on Windows 7, Windows 8/8.1, and
Windows 10. This is for the HW-USBN-2A USB cable.
FTDI USB driver – This supports Lattice HW-USBN-2B USB cable and
Lattice evaluation boards with FTDI (Future Technology Devices
International) USB host chip. The driver does not support Windows 2000
and earlier operating systems.
Note
The first time the FTDI driver is installed, the Windows operating system may
report that Windows can't verify the publisher of this driver software. Select “Install
this driver software anyway.” This warning will not occur on subsequent
installations.
14. In the Start Copying Files dialog box, verify Diamond environment settings
and click Next.
15. In the InstallShield Wizard Complete dialog box, read the note and click
Finish.
Note
Do not close the installation window. The window will automatically close when the
installation completes.
Note
The available devices for Diamond can vary, depending on the type of license.
You can also get the NIC via an alternate network interface, such as a
wireless interface.
Note
Lattice Diamond software uses the following network communication ports (TCP/IP
socket ports):
Port 80 – This is the standard HTTP web access port. Diamond uses this port in
the following cases:
When the Diamond software has updates from the Lattice web site:
Port 7788 – This is the port used by the Diamond software to check the floating
license between the software and license server. This port is configurable by
changing the license files.
Before you start the server setup, ensure that TCP/IP is installed and that the
client machines can communicate with the server by name. At the prompt in
an MS-DOS window, type the following:
ping <hostname>
Table 4 lists the files used for license management for 32-bit and 64-bit
systems. The files are located at:
<diamond_install_path>\ispFPGA\bin\nt
LMTOOLS.exe 11.10 Program that sets up the server for floating licenses
Note
Users of the ispLEVER 7.0 or older software must bring down the previous license
daemon and start the new license daemon.
Note
The “\” followed by a carriage return indicates a line continuation.
When you are editing these lines, make sure that they are typed exactly as
you received them.
Note
Windows 7 users may need to right click on LMTOOLS.exe and select Run as
Administrator.
The steps below show you how to install the dongle driver and set up a
Windows floating license server for Active-HDL Lattice Edition.
1. Obtain the USB FLEXid keylock dongle and the Active-HDL Lattice
Edition license file (aldec_license.dat) from Lattice Semiconductor.
2. Install the driver files for the USB FLEXid keylock dongle by running the
executable in the zip file that matches your FLEXid version (9 or 10) and
your system (i686 for 32-bit systems or x64 for 64-bit systems), located at
<diamond_install_path>\active-hdl\license\drivers. See
<diamond_install_path>\active-hdl\license\drivers\fnpdig.pdf for additional
instructions.
3. Plug in the USB FLEXid keylock dongle to the PC that will run the license
server.
After you receive your floating license and ensure that the license manager is
running, install Diamond locally on each client that will use the floating
license.
Invalid parameter [-42, 252] The LM_LICENSE_FILE variable has not been set properly.
The license file is invalid.
Invalid parameter [-42, 252:10061] You have a floating license, and the license daemon has not
Winsock error code been started at the Windows NT server.
The network connection between the server and the client
has not been established.
Invalid parameter [-12, 122] The node name of the Windows NT server does not match the
Invalid returned data from license server one in your floating license file.
Invalid parameter [-5, 222] The feature could not be found in the license file.
No such feature exists
! License Check Failed You either have a node-locked license or you do not have a
license file. Contact Lattice Semiconductor Technical Support for
a valid floating license file.
If Diamond still does not run after you have installed your new license file and
confirmed that your environment variables are correct, gather the following
items:
A screen capture showing the error message
A text file that contains a listing of the environment setup for your PC.
From an MS-DOS prompt window, issue the set > env.txt command.
Your license.dat file
Running Diamond
After the installation and the license configuration, you can invoke Diamond.
To activate UPDATE:
1. Launch UPDATE as follows:
In Windows 7, choose Start > All Programs > Lattice Diamond 3.8 >
UPDATE.
In Windows 8/8.1 or Windows 10, choose Apps > Lattice Diamond
3.8 > Lattice Diamond 3.8 > UPDATE.
The UPDATE window appears, as shown in Figure 3.
2. Select the Use a Proxy Server option if you must go through a proxy
server before connecting to the Internet. The proxy server prevents
outsiders from breaking into your organization’s private network. Ask your
system administrator for the URL address and port assignment. This
option is turned on by default.
If you use direct Internet access, do not select the Use a Proxy Server
option on this tab.
Installing Updates
When you use the Auto Check feature, UPDATE notifies you whenever an
update version of Diamond becomes available. You receive notification when
you open the Diamond main window.
Programmer Drivers
Note
The first time the FTDI driver is installed, the Windows operating system may
report that Windows can't verify the publisher of this driver software. Select “Install
this driver software anyway.” This warning will not occur on subsequent
installations.
Note
The first time the FTDI driver is installed, the Windows operating system may
report that Windows can't verify the publisher of this driver software. Select “Install
this driver software anyway.” This warning will not occur on subsequent
installations.
Note
The stand-alone Power Estimator requires a license. See “Licensing for Diamond and
Stand-Alone Power Estimator” on page 15.
Troubleshooting
If you encounter any software-related problems after installing Diamond,
review the following common troubleshooting scenarios before calling Lattice
Semiconductor Technical Support:
Ensure that your environment variable settings are set correctly, including
the TEMP user variable.
Your should also have the following system environment setting pointing
to the license file:
SET LM_LICENSE_FILE=<Lattice_license_path>\license.dat
If you have multiple installations of Lattice software, this variable may
have multiple paths in it. If there are problems, you may need to manually
edit the variable.
You can verify these settings by accessing the System Properties dialog
box from your Windows system. Select the Advanced tab from that dialog
box and go to the “Environment Variables” section.
If you have problems with the display, ensure that your system video
display is set to a screen resolution of 1024 x 768 or more and that your
video display is set to use 256 or more screen colors.
If Diamond is installed on a Windows 7 or Windows 8/8.1 or Windows 10
system with administrator privilege and is to be used by an account in the
“Users” group, make sure that the user account has permission to write
the following folder and the configuration file in that folder:
<boot_drive>:\users\<login_name>\AppData\Roaming\LatticeSemi
\*.ini
Opening the online Help may be interrupted by one of the following
messages on the Internet Explorer Information Bar:
“To help protect your security, Internet Explorer has restricted this file
from showing active content that could access your computer. Click
here for options...”
“To help protect your security, Internet Explorer has restricted this file
from running scripts or ActiveX controls that could access your
computer. Click here for options...”
“To help protect your security, Internet Explorer has restricted this
webpage from running scripts or ActiveX controls that could access
your computer. Click here for options...”
This can happen if you have Internet Explorer as your default browser.
To see the Help, click on the Information Bar and choose Allow Blocked
Content. A dialog box with an expanded warning opens. Click Yes.
To avoid these warnings, either use a different browser or turn off the
warning for active content in Internet Explorer.
Note
Doing either of these means that when you open any Web page that is resident on
your computer—not just Diamond Help—the page will automatically run any active
content that it has. While active content is common and can be very useful,
malicious content can damage your files. Be sure you trust the software on your
computer.
Installing LatticeMico
Development Tools
You can install the LatticeMico Development Tools as a part of the Diamond
software or as stand-alone software if Diamond is not installed.
If the 3.8 version of Diamond is installed on your computer, the
LatticeMico Development Tools will be installed by default in a folder
called micosystem, which resides in the folder in which Diamond was
installed. For example, the LatticeMico Development Tools could be
installed in the <install_drive>:\lscc\diamond\3.8\micosystem directory.
Users designing with Platform Manager 2 devices must install LatticeMico
System with Diamond in order to make the Diamond Platform Designer
software functional.
If the 3.8 version of Diamond is not installed on your computer, the
LatticeMico Development Tools will be installed by default in a folder
called micosystem, which resides in the LatticeMico folder. For example,
the LatticeMico Development Tools could be installed in the
<install_drive>:\LatticeMico\micosystem directory.
See “Installing Diamond 3.8 for Windows” on page 10 for detailed instructions
on installing Diamond.
Note
The LatticeMico software works with both 32-bit and 64-bit Windows systems.
Note
If you do not have Lattice Diamond installed, you can install the LatticeMico
Development Tools as stand-alone tools. For information on this procedure, see
“Installing LatticeMico as Stand-Alone Software” on page 35.
Note
You can install LatticeMico System and the GNU-based Compiler Tools separately
by checking only one box, but Lattice Semiconductor recommends that you accept
the defaults and install both tools at the same time.
If the LatticeMico System option is not selected to install, you cannot use
the LatticeMico System graphical user interface. You can only use the
LatticeMico Development Tools through the command line.
When you select the GNU-based Compiler Tools option, the LatticeMico
Development Tools do the following:
Install gtools (C++/C tool chain) and cygwin.
Add the LatticeMico System SDK Shell icon to the Lattice Diamond
3.8 Accessories folder on the Windows Start menu.
Enable the command-line mode for building C/C++ source codes.
Add the LATTICEGNUTOOLS environment variable.
If the GNU-based compiler is not installed, the C++/C and debug
graphical user interfaces will not function correctly.
5. Click Next. You will get the License Agreement for LatticeMico System
dialog.
6. Click Yes to accept the terms of the licensing agreement for LatticeMico
Systems.
7. Click Yes to accept the terms of the licensing agreement for the GNU-
Based Compiler Tools.
8. The Choose Destination Location part of the LatticeMico Development
Tools Setup dialog box now appears. As the current version of Diamond is
installed, the default destination folder will be the same folder in which
Diamond was installed.
9. Click Next to accept the default destination folder.
10. The Select Program Folder dialog box opens. The default name of the
program group is Lattice Diamond 3.8. If you want to change the name,
change it in the Program Folder text box.
11. Click Next.
12. In the Start Copying Files part of the LatticeMico Development Tools
Setup dialog box, click Next.
The installation begins. When it is finished, the LatticeMico Development
Tools Installation Completing dialog box appears.
13. Click Finish.
14. Because the installation process added new environment variables,
reboot your computer.
fully functional. However, the graphical user interfaces of the C/C++ Software
Project Environment (C/C++ SPE) and the debug environment will be fully
functional.
The LatticeMico software is available for download from the Lattice
Semiconductor Web site. For more information on how to download the
LatticeMico software, go to http://www.latticesemi.com/latticediamond and
click the Downloads tab. Some documents and downloads are not visible to
anonymous visitors. To view all items, please log in to your Lattice account.
Note
You can install LatticeMico System and the GNU-based Compiler Tools separately
by checking only one box, but Lattice Semiconductor recommends that you accept
the defaults and install both tools at the same time.
In Windows 8/8.1, choose Apps > Lattice Diamond 3.8 > Accessories >
LatticeMico System (or Programs > Lattice Diamond 3.8 (64-bit) >
Accessories > LatticeMico System if you installed the 64-bit version
of Diamond).