Forum Discussion
Generic Serial Flash Interface addressing only generating 22 bit addressing for 24 bit flash
New to using some of the Avalon based cores. I generated a 128MB Generic Serial Flash Interface core for my EPCQ128A Flash, the addressing is only Avalon memory is section is 22 bits, but how do I sent my 24-bit address to the core to send to the flash? Am I missing a correlation between the value sent to the Avalon memory and the Flash memory?
128 MBit Flash uses 24-bit-wide byte address. AVMM interface has however 22 DW addresses + 4 byte-enable lines to access the flash. A doubleword access at AVMM is translated by GSFI core to 4 consecutive internal byte accesses.
5 Replies
- FvM
Super Contributor
In my math, 128 MB is 4 MW of 32 bit, or 2^22 * 32. Needs exactly 22 address lines.- Jcole
Occasional Contributor
Your math is correct, but I'm slightly confused. If I'm not mistaken, the difference due to the word sizes of the GSFI being 32 bit as compared to the byte addressing of the flash.
- FvM
Super Contributor
128 MBit Flash uses 24-bit-wide byte address. AVMM interface has however 22 DW addresses + 4 byte-enable lines to access the flash. A doubleword access at AVMM is translated by GSFI core to 4 consecutive internal byte accesses.
- Farabi_Altera
Regular Contributor
Hello,
Can you refer to this page? link : https://www.intel.com/content/www/us/en/docs/programmable/683271/current/understanding-quad-spi-flash-byte-addressing.html
regards,
Farabi
- NurAiman_M_Intel
Super Contributor
I’m glad that your question has been addressed, I now transition this thread to community support. If you have a new question, feel free to open a new thread to get the support from Intel experts. Otherwise, the community users will continue to help you on this thread. Thank you.