Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Altera_Forum
Honored Contributor I
1,093 Views

programming configuration flash with some data

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?
Tags (1)
0 Kudos
3 Replies
Altera_Forum
Honored Contributor I
29 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
Altera_Forum
Honored Contributor I
29 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.
Altera_Forum
Honored Contributor I
29 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.
Reply