Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
20641 Discussions

programming configuration flash with some data

Altera_Forum
Honored Contributor II
1,385 Views

I use external flash for configuration of FPGA. 

And I should use another external EEPROM for some data. 

 

However,  

If I use flash devce which have larger space than "bit file + ROM data". 

 

How can I program flash with "bit file + ROM data file". 

 

And how can I use, i mean read "ROM data" in flash device in FPGA?
0 Kudos
3 Replies
Altera_Forum
Honored Contributor II
321 Views

Have a look at the "altera serial flash loader ip core (http://www.altera.com/literature/an/an370.pdf)". This gives you access, from the FPGA fabric, to the pins on the serial FLASH. This would allow you to read from (and write to) the serial FLASH from your own logic. 

 

If you need something a little higher level then you could consider Altera's "avalon-st serial peripheral interface core (https://www.altera.com/ja_jp/pdfs/literature/hb/nios2/qts_qii55009.pdf)". This implements the low level serial comms to the serial FLASH device offering you a simple Avalon interface to your own logic. You might also want to refer to the "spi slave/jtag to avalon master bridge cores (https://www.altera.com.cn/zh_cn/pdfs/literature/hb/nios2/qts_qii55011.pdf)" for some more info on controlling this. 

 

Cheers, 

Alex
0 Kudos
Altera_Forum
Honored Contributor II
321 Views

Thanks  

Then, where can I find any document about following tasks. 

1. making a conbined file with a configuration bit file and a data file. 

2. writing a that file on the configuration flash by Jtag. 

3. reading data file in the configuration flash.
0 Kudos
Altera_Forum
Honored Contributor II
321 Views

https://www.altera.com/support/support-resources/knowledge-base/solutions/rd10132010_126.html 

 

Those instructions are for a NIOS executable, but the same can be followed for arbitrary data. 

 

For reading the data, see the material a_x_h_75 already supplied.
0 Kudos
Reply