Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
11 years ago

HWLIB and Quad SPI Flash Controller

I'm working on a "CYCLONE V SOC DEVELOPMENT KIT" and trying to implement bytewise access to the provided QSPI flash device.

Seems that the Altera's HWLIB version 13.1.0 I have got only supports word aligned accesses (in fact word alignment is requested for all parameters of the 'alt_qspi_read' and 'alt_qspi_write' functions).

Question 1)

Why this limitation, since the Indirect Access Controller shoud be able to deal with 16-bit and 8-bit reads/writes too (according to the "Cyclone V Device Handbook") ?

To circumvent this limitation and avoid too tricky approaches I was considering STIG operations for 16-bit and 8-bit accesses.

But again the HWLIB offers a set of dedicated functions that seem to have some limitation.

For example, the current implementation of the 'alt_qspi_stig_rd_cmd' and 'alt_qspi_stig_wr_cmd' functions doesn't allow multiple-byte addresses, thus preventing the use of READ and PROGRAM commands.

(BTW, documentation about the 'alt_qspi_stig_*' functions is quite poor, even in source code comments).

Question 2)

Dos anybody have some experience in using the STIG module for READ/PROGRAM accesses to QSPI flash memory?

TIA
No RepliesBe the first to reply