• 0

Using SPI Flash for both config + user data on CMOD S6



Please excuse my rudimentary question. I was wondering if anyone could advise me on how to use the on-board SPI Flash for the dual purpose of storing the FPGA configuration (.mcs) AND storing/accessing user data. The CMOD S6 Reference Manual states that it can be used for both purposes. I have already programmed the .mcs file into the SPI flash. I am curious how the FPGA config data can co-exist with user data on the flash and how the user data is programmed and accessed without interfering with the config data.


Share this post

Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0

@[email protected],

It sounds like you are working with a MicroBlaze based design, since you mentioned a .mcs file above.  Xilinx provides an AXI QSPI core that you can use for this purpose.

I've personally used my own QSPI driver, and my own CPU.  You can find my CMod S6 project here.  Perhaps it might serve as an example.  To use the QSPI flash, I had one design that I used to program the QSPI flash device  on my CMod S6 with (whatever), and then a second design that would use the flash within the design.  Sadly, the S6 is such a small device, that you really need to be careful with the logic you try to place onto it.  I was pleased to be able to get a "multi-tasking O/S" running on it, although it was only the barest minimal one.  Storing instructions on the flash was key to the success of that project.  You can read about the instruction fetch that I ended up using here if you would like.


Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now