Commit message (Collapse)AuthorAgeFilesLines
* README: document the crc32 commandHEADde1flash-1.1masterH. Peter Anvin2011-07-311-5/+8
* Add the ability to do a CRC32 on an arbitrary flash regionH. Peter Anvin2011-07-315-28/+209
| | | | | | | | | | | | Since reading over the Altera JTAG interface is so slow, give ourselves the ability to verify a particular region by getting a CRC32 of that region. This can be done extremely quickly (less than two seconds for the entire flash, including startup overhead) since it can be done entirely in hardware on the remote side. The CRC32 used is the same as used by the zip data format. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* README: update documentation to define the filespec syntaxde1flash-1.0H. Peter Anvin2011-06-071-9/+22
| | | | Update with the filespec syntax and new commands.
* de1flash.tcl: flash commands are zero-extended on the data busH. Peter Anvin2011-06-061-6/+6
| | | | | | | The upper bytes of the data bus are supposed to be zero for a 16/32-bit flash part (portability fix.) Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* de1flash.tcl: fix erase block list; unbreak default length for readH. Peter Anvin2011-06-061-3/+3
| | | | | | | Fix the computation of the list of erase blocks (used $len instead of $end, which is wrong when the base is not zero.) Unbreak the default length for read by moving a global statement.
* de1flash.tcl: fix stray $ in lappendH. Peter Anvin2011-06-061-5/+8
| | | | Arguments to set, append, lappend etc don't take $...
* de1flash.tcl: implement the full intended feature setH. Peter Anvin2011-06-061-44/+129
| | | | | | | | | Implement the full intended feature sets, driven by "filespecs", allowing specifying the ranges interested. The commands implemented are: read, write, writeonly, erase, eraseall. This still hard-codes the device geometry rather than using CFI.
* README: document "reads are slower than writes" anomalyH. Peter Anvin2011-06-041-0/+2
| | | | | Reads should theoretically be much faster than writes, but the performance of the JTAG stack kills it.
* README: correct quartus_pgm syntaxH. Peter Anvin2011-06-041-1/+1
* Document that erasure of blank sectors is automatically skippedH. Peter Anvin2011-06-041-2/+9
* Fix the erase wait logicH. Peter Anvin2011-06-041-3/+4
* Comment out debugging statementH. Peter Anvin2011-06-041-1/+1
* Fix data items lost during readback operationsH. Peter Anvin2011-06-043-16/+35
| | | | | | Fix data items lost during readback operations. In order to make this easier to debug, add a 3-bit counter to the value returned, so that it is trivial to see if one has been lost or not.
* de1flash.v: fix the blank check state machineH. Peter Anvin2011-06-041-0/+1
| | | | We need to advance the address register while blank checking...
* Utility to flash the NOR flash on an Altera DE1 board over JTAGH. Peter Anvin2011-06-0415-0/+2445