You can choose to generate the example design when generating the core in the IP
Manager Configuration window. Compile the example design project and download the
.hex or .bit file to your board. To
generate example design, the Example Design Deliverables
Option signal must be enabled.
Important: tested the example design generated
with the default parameter options only.
The example designs target the Trion® T20 BGA256 Development Board, Trion T120
BGA324 Development Board, Titanium Ti60 F225 Development Board, and Titanium Ti180 M484 Development Board. The design implements a ASMI SPI flash controller in the FPGA, which allows you to use the ASMI SPI flash controller to access the flash memory via sector erase, write, and
read commands. The maximum supported frequency is 50 MHz.
Figure 1. ASMI SPI Flash Controller Example Design
Table 1. Example Design Support
Development Board
Example Design
T20 BGA256
Dual read and write operations using 3-byte
addressing mode.
Ti60 F225
T120 BGA324
Dual read and write, quad read and write operations using 3-byte
addressing mode.
Ti180 M484
Dual read and write operations using 3-byte and 4-byte addressing
modes.
T20 BGA256 and Ti60 F225 Development Board Example Design
After the FPGA powers up, the ASMI SPI flash controller performs this sequence:
Soft reset.
Set address to 0x350000.
Sector erase at address 0x350000.
Write 8-bit data (0x5A) to address
0x350000.
Fast read from address 0x350000.
Set address to 0x000004.
Sector erase at address 0x000004.
Write 8-bit data (0x33) to address
0x000004.
Fast read dual from address 0x000004
Set address to 0x050000.
Release the device from power-down state.
Set address to 0x0000ff.
Block erase at address 0x0000ff.
Write 8-bit data (0x50) to address
0x0000ff.
Fast read dual from address 0x0000ff.
Set address to 0x000024.
Block erase at address 0x000024.
Write 8-bit data (0x23) to address
0x000024.
Fast read from address 0x000024.
When done, the LEDs display:
T20 BGA256 Development Board—LEDs D4 and D3 turned on
Ti60 F225 Development Board—LED D16 turned on blue and green, and
LED D17 turned on red
Figure 2. Titanium Ti60 F225 Development Board LED Outputs
Ti180 M484 Development Board Example Design
After the FPGA powers up, the ASMI SPI flash controller performs this sequence:
Soft reset.
Set address to 0x350000.
Sector erase at address 0x350000 (4-byte addressing).
Write 8-bit data (0x5A) to address
0x350000 (4-byte addressing).
Fast read from address 0x350000 (4-byte addressing).
Set address to 0x000004.
Sector erase at address 0x000004 (3-byte addressing).
Write 8-bit data (0x33) to address
0x000004 (3-byte addressing).
Fast read dual from address 0x000004 (3-byte
addressing).
Set address to 0x050000.
Release the device from power down state.
Set address to 0x0000ff.
Block erase at address 0x0000ff (4-byte addressing).
Write 8-bit data (0x50) to address
0x0000ff (4-byte addressing).
Fast read dual from address 0x0000ff (4-byte
addressing).
Set address to 0x000024.
Block erase at address 0x000024 (3-byte addressing).
Write 8-bit data (0x23) to address
0x000024 (3-byte addressing).
Fast read from address 0x000024 (3-byte addressing).
When done, the LEDs D2, D3, and D7 turned on.
T120 BGA324 Development Board Example Design
Set the QUAD_EN parameter to 1 in the
flash_test_ctl.v file to enable quad operations. After the
FPGA powers up, the ASMI SPI flash controller performs this sequence:
Soft reset.
Set address to 0x350000.
Sector erase at address 0x350000.
Write 8-bit data (0x5A) to address
0x350000.
Fast read from address 0x350000.
Set address to 0x000004.
Sector erase at address 0x000004.
Write 8-bit data (0x33) to address
0x000004.
Fast read dual from address 0x000004.
Set address to 0x050000.
Release the device from power down state.
Set address to 0x0000ff.
Block erase at address 0x0000ff.
Write 8-bit data (0x50) to address
0x0000ff.
Fast read dual from address 0x0000ff.
Set address to 0x000024.
Block erase at address 0x000024.
Write 8-bit data (0x23) to address
0x000024.
Fast read from address 0x000024.
Sector erase.
Quad page writes 8-bit data (0XC3) to address
0x000010.