I've acquired an Altera FLEX 8282A FPGA and I'd like to have a bit of a play with it.
Yes, I know these are prehistoric parts, but I like playing around with old stuff. :-)
I've installed MAX+Plus II and have managed to compile a very simple design (a clock divider) for testing purposes.
I have no re-programmable configuration devices, nor any other compatible programmers, so I'll make something myself using a PIC microcontroller. The programming protocol seems quite simple and was well documented by Altera themselves. I'll likely use the serial method of configuration, with the PIC acting like an Altera configuration device and running the show.
What doesn't seem to be so well documented is how to extract the “bitstream” (?) from the resulting .pof
or (maybe more probably) .sof
file.
I've written some simple Python to parse my way through the .pof
/.sof
files and extract each “packet” including the one which looks to contain the bitstream, but there's a problem with both of them.
Altera Application Note 33 says the bitstream for an 8282A should be 40000 bits, or 5000 bytes. From the .pof
I extract 5120 bytes, and from the .sof
I extract 4703 bytes.
So, my question is: does anyone understand what you are supposed to do with a .pof
or .sof
file to program a device? Which part of the longer .pof
data do I take, or what do I fill in for the missing part of the .sof
?
I think that I should be using a .sof
as these seem to be for volatile devices (.pof
for non-volatile devices), but the number of bytes are coming up short from what I'm expecting.
Thanks!