Forum Discussion
Altera_Forum
Honored Contributor
12 years ago --- Quote Start --- The processor we're going to use has 3 (Q)SPI bus. An 16Mbit SPI flash is attached to one of SPI bus. --- Quote End --- Great! Which processor? --- Quote Start --- do you know where i can find this bit reversal tool? --- Quote End --- Its pretty trivial to write one yourself, however, you may not need to. Your (Q)SPI controller may have an option to swap bits in a byte, or you can see if your processor has an option to swap the bits in a byte. I think the .rpd file format (using Quartus File->Convert Programming File) swaps the bits for you. Generate an .rbf file and then an .rpd file, and compare the bytes, I'm pretty sure you'll find them swapped (after some header information). Download and read the code for SRunner. That code has useful comments on understanding how to read the programming files. Cheers, Dave