Modified Arduino IDE

Recommended Posts

I just had a look at the source... bitfile.cpp has two functions already in it that seems to do what is needed:

void BitFile::append(unsigned long val, unsigned cnt)

void BitFile::append(char const *fname)

It should be posilble to "append()" zeros to pad to the required location, then append() the additional file you want into the bitstream. Will try it when I get a chance....

Share this post

Link to post
Share on other sites

I think a magic value at the start of the blob would give the best payoff as you don't need to worry about where the FPGA bit image ends and where the blob starts, then have to pass that offset back into the code so it knows where the find the blob. It will be more foolproof and more user friendly. The FPGA boot loader will of course need to be updated to search for this magic value but that seems fairly trivial.

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