4
iCE40HX-8K Breakout Board
iCE40 Device
This board features an iCE40HX-8K device with a 1.2v core supply. It is packaged in a 256 caBGA package. For a
complete description of this device, see HB1011,
iCE40 LP/LX/LM Family Handbook
.
Software Requirements
You should install the following software before you begin developing designs for the evaluation board:
• Lattice iCEcube2 Release: 2012.09SP1.22498 or later
• Diamond Programmer: Version 2.2 or later
These software are available at the Lattice website
Design Software & IP
page. Make sure you log in to the Lattice
website, otherwise these software downloads will not be visible.
Demonstration Design
The demonstration design iCE40HX8KLED.zip file contains the following files:
• LED_VHDL.vhd (VHDL code)
• LED_Verilog.v (Verilog code)
• LED.pcf (pin constraint file)
• LED_VHDL_bitmap.hex (Bit stream file for programming FPGA.)
• LED_Verilog_bitmap.hex (Bit stream file for programming FPGA.)
Two source codes are provided, one written in VHDL and the other in Verilog. Both of these codes function identi-
cally. This provides you with an option to use either one of the code when programming the Breakout Board. When
the FPGA is programmed with one of these codes, the red LEDs (D2 thru D9) will flash on for ½ second and off for
½ second.
Figure 3 shows the block diagram of the Verilog or VHDL code.
Figure 3. Block Diagram of the Verilog or VHDL Code
The source code has two counters that are used to divide the 12MHz clock by 216 and 96 generating a approxi-
mately ½ second pulse. This pulse along with the decoder will turn the LEDs (D2 thru D9) on for ½ second and off
for ½ second. The decoder can be modified to have any type of LED sequence by changing either the VHDL or
Verilog code.
When the board is plugged into a USB port, a +5 volt power is applied to the board that will light a green LED
(D11). After the FPGA has been programmed, a green LED (D10) will light. This LED is connected to the CDONE
line of the FPGA.
÷2
16
÷ 96
2 bit counter
Decoder
½ second pulse
2
LED 2
LED 2
LED 3
LED 9
12MHz Clk