6 Data File Bit Orientation
This chapter specifies the data orientation of the binary data file generated by the Libero SoC Design Suite. The SPI-DirectC implementation must be in sync with the specified data orientation. The following table lists how the data is stored in the binary data file. For more information, see Data File Format.
Byte 0 | Byte 1 | Byte 2 | Byte 3 | .. | .. | Byte N |
---|---|---|---|---|---|---|
Bit7.Bit0 | Bit15.Bit8 | Bit23.Bit16 | Bit35.Bit24 | .. | .. | Bit(8N+7).Bit(8N) |
Valid Data | Valid Data | Valid Data | Valid Data | .. | .. | o <-Valid Data |
If the number of bits in a data block is not a multiple of eight, the rest of the Most Significant Bit (MSB) in the last byte are filled with zeros. The following example shows a given 70-bit data to be shifted into the target shift register from the Least Significant Bit (LSB) to the Most Significant Bit (MSB).
This data is stored in the data block section. The following table lists how the data is stored in the data block.
Byte 0 | Byte 1 | Byte 2 | Byte 3 | Byte 4 | .. | Byte 8 |
---|---|---|---|---|---|---|
Bit7...Bit0 | Bit15.Bit8 | Bit23.Bit16 | Bit31.Bit24 | Bit43.Bit32 | .. | Bit71..Bit64 |
10100110 | 01111000 | 10101100 | 01101111 | 10110000 | - | 00100000 |
A6 | 78 | AC | 6F | B0 | - |
20 |