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.

Table 6-1. Binary Data File Example
Byte 0Byte 1Byte 2Byte 3....Byte N
Bit7.Bit0Bit15.Bit8Bit23.Bit16Bit35.Bit24....Bit(8N+7).Bit(8N)
Valid DataValid DataValid DataValid 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).

The following figure shows a binary representation of the same data.
Figure 6-1. Binary representation of data

This data is stored in the data block section. The following table lists how the data is stored in the data block.

Table 6-2. Data Block Section Example
Byte 0Byte 1Byte 2Byte 3Byte 4..Byte 8
Bit7...Bit0Bit15.Bit8Bit23.Bit16Bit31.Bit24Bit43.Bit32..Bit71..Bit64
1010011001111000101011000110111110110000-00100000
A678AC6FB0-

20