hamster

Storing and retrieving data in the config flash.

Recommended Posts

I've taken Alex's work on bootstrapping Bombjack from flash and made it into a stand-alone design that can be used as a reference.

it is on http://hamsterworks....hp/Config_flash

There isn't anything worthwhile to include as a picture or a video - LEDs flashing - wahoo... Maybe somebody will use it to play back some audio samples....

It is in five parts:

bitmerge.c - Source of C program to merge a data file into the FPGA bitstream file at the desired address

lights.c - Source of C program to create a little binary data file to merge into the bitstream file

make.bat - Batch file to merge the data into the bitstream and launch the programmer

config_flash.vhdl - Design to read the data back from the config flash and display it on the LEDs

config_flash.ucf - Constraints file for the Papilio One + LogicStart WegaWing.

If anybody is on Windows and can't be bothered to download and install Visual C++ Express to compile the source files, send me a personal message with your email address and and I'll send you a copy.

Oh, and just remember the design will only work if you program it to the flash! :-)

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