![Lattice Semiconductor LatticeMico32 Hardware Developer User Manual Download Page 45](http://html1.mh-extra.com/html/lattice-semiconductor/latticemico32/latticemico32_hardware-developer-user-manual_3843852045.webp)
U
SING
THE
L
ATTICE
M
ICO
S
YSTEM
S
OFTWARE
:
Creating the Microprocessor Platform in MSB
LatticeMico32 Hardware Developer User Guide
39
Downloading Hardware Bitstream to the
FPGA
After you generate the bitstream file, you can download it to program your
FPGA device on a circuit board. You can use Diamond Programmer to
accomplish this task.
To download the hardware bitstream using the Diamond Programmer:
1. In the Diamond, choose
Tools > Programmer
.
2. The Programmer opens, displaying the bitstream file you have generated
for the current design in the Data File box.
3. In the Programmer user interface, click
Auto Detect
.
The Programmer can recognize the USB download cables plugged into
your PC. If more than one USB cable is connected to your PC, the
Programmer detects all available cables, but selects the first cable that it
detects.
To select a different USB cable, select
HW-USBN-2A
(Lattice HW-USBN-
2A USB port programming cable) or
HW-USBN-2B (FTDI)
(Lattice HW-
USBN-2B (FTDI) USB programming cable) in the Cable Type box, and
change the connection port in the Port drop-down list.
4. Click
Scan Device
.
The Programmer scans the printed circuit board connected to your
computer with the specified cable and port, and it lists the devices in the
Device list.
5. In the Device list, select the device that matches the target device of the
current design.
6. Under XCF File, do either of the following:
If you want to use an existing chain file to program the device, select
Downloading with existing XCF file
. Then click
Browse
to locate
the file.
If you have no existing chain file for programming, select
Save to XCF
file
to create a new XCF file. Then click
Browse
to specify the name
and location for the new file.
7. Click
Download
.
The Programmer downloads the data file to the target device. A Status
box indicates the progress of the operation, reports any errors, and shows
whether the operation was successful.