![Altera Cyclone V Device Handbook Download Page 329](http://html1.mh-extra.com/html/altera/cyclone-v/cyclone-v_device-handbook_2910791329.webp)
Received Bit Order
Bit Reversal Option
Double-Width Mode (16 or 20 bit)
Single-Width Mode (8 or 10 bit)
MSB to LSB
For example:
16-bit—D[15:0] rewired to D[0:15]
20-bit—D[19:0] rewired to D[0:19]
MSB to LSB
For example:
8-bit—D[7:0] rewired
to D[0:7]
10-bit—D[9:0] rewired
to D[0:9]
Enabled
When receiving the MSB-to-LSB transmission, the word aligner receives the data in reverse order.
The word alignment pattern must be reversed accordingly to match the MSB first incoming data
ordering.
Note:
You can dynamically control the bit reversal feature to use the
rx_bitreversal_enable
register with
the word aligner in bit-slip mode. When you dynamically enable the bit reversal feature in bit-slip mode,
ignore the pattern detection function in the word aligner because the word alignment pattern cannot be
dynamically reversed to match the MSB first incoming data order.
Receiver Byte Reversal
In double-width mode, two symbols of incoming data at the receiver may be accidentally swapped during
transmission. For a 16-bit input data width at the word aligner, the two symbols are bits
[15:8]
and
bits
[7:0]
. For a 20-bit input data width at the word aligner, the two symbols are bits
[19:10]
and
bits
[9:0]
. The byte reversal feature at the word aligner output corrects the swapped signal error by swapping
the two symbols in double-width mode at the word aligner output, as listed in
Table 1-26: Byte Reversal Feature
Word Aligner Output
Byte Reversal Option
20-bit Data Width
16-bit Data Width
D[19:0]
D[15:0]
Disabled
D[9:0], D[19:10]
D[7:0], D[15:8]
Enabled
The reversal is controlled dynamically using the
rx_bytereversal_enable
register, and when you
enable the receiver byte reversal option, this may cause initial disparity errors at the receiver with 8B/10B-
coded data. The receiver must be able to tolerate these disparity errors.
When receiving swapped symbols, the word alignment pattern must be byte-reversed accordingly
to match the incoming byte-reversed data.
Note:
Rate Match FIFO
The Rate Match FIFO compensates for the small clock frequency differences between the upstream transmitter
and the local receiver clocks.
Transceiver Architecture in Cyclone V Devices
Altera Corporation
CV-53001
Receiver Byte Reversal
1-42
2013.05.06