Update flash.md

This commit is contained in:
bunnie 2021-04-20 16:15:02 +08:00 committed by GitHub
parent 83292bfda2
commit 7124c9dbef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -35,7 +35,13 @@ of wear leveling, however.
+ 2000_0000 | Primary FPGA bitstream |
+ 2021_7287 | 2,192,008 bytes |
+-----------+----------------------------------------+
+ 2021_7288 | Reserved for bitstreams |
+ 2021_7288 | Padding |
+ 2027_7FFF | |
+-----------+----------------------------------------+
+ 2027_8000 | csr.csv corresponding to bitstream |
+ 2027_FFFF | (32kiB max) |
+-----------+----------------------------------------+
+ 2028_0000 | Reserved for backup bitstream |
+ 204F_FFFF | |
+-----------+----------------------------------------+
+ 2050_0000 | loader.bin - Xous loader |
@ -55,3 +61,21 @@ of wear leveling, however.
+-----------+----------------------------------------+
```
The csr.csv block is further structured as follows:
```
+-----------+----------------------------------------+
+ 2027_8000 | Length of csr.csv data |
+ 2027_8003 | 4 bytes |
+-----------+----------------------------------------+
+ 2027_8004 | csr.csv data (variable length) |
+ 2027_8xxx | Typically ~12kiB |
+-----------+----------------------------------------+
+ 2027_8xxx | padding to 0xFF |
+ 2027_FFDF | padding included in sha512 |
+-----------+----------------------------------------+
+ 2027_FFE0 | sha512 of 2027_8000:2027_FFDF |
+ 2027_FFFF | truncated to 32 bytes |
+-----------+----------------------------------------+
```