PAM4 is widely used in high-speed optical transceivers because it carries two bits per symbol and improves bandwidth efficiency compared with NRZ. However, PAM4 also has four amplitude levels and therefore smaller level spacing. This makes PAM4 more sensitive to noise, jitter, nonlinearity, and other impairments.
Gray coding is commonly used in PAM4 systems to improve signal reliability at the bit level. It does not increase the physical signal-to-noise ratio, reduce the symbol error rate, or replace forward error correction. Instead, Gray coding maps the four PAM4 levels so that adjacent amplitude levels differ by only one bit.
Because most PAM4 symbol errors occur when the receiver confuses neighboring levels, Gray coding helps ensure that an adjacent-level error causes only one bit error rather than two. This can lower the bit error rate, improve pre-FEC performance, and provide additional link margin in high-speed optical transceivers.
1. What Is Gray Coding in PAM4?
1.1 Definition
Gray coding is a symbol mapping method in which adjacent symbols differ by only one bit. In PAM4, there are four amplitude levels, and each level represents a two-bit symbol. A Gray-coded PAM4 mapping typically assigns the four levels so that each neighboring level changes by only one bit.
A common Gray-coded PAM4 mapping is:
| PAM4 Level | Relative Amplitude | Gray-Coded Bits |
|---|---|---|
| Level 0 | Lowest | 00 |
| Level 1 | Lower-middle | 01 |
| Level 2 | Upper-middle | 11 |
| Level 3 | Highest | 10 |
With this mapping, adjacent levels differ by one bit: 00 to 01, 01 to 11, and 11 to 10. The outer non-adjacent pairs, such as 00 and 11 or 01 and 10, differ by two bits, but they are less likely to be confused under noise conditions that mainly cause neighboring-level errors.
1.2 Gray Coding Is a Mapping, Not Error Correction
Gray coding does not add redundancy and does not correct errors. It is a bit-to-symbol mapping technique. Its benefit comes from how symbol errors are translated into bit errors.
In a PAM4 link, the receiver decides which of the four levels was most likely transmitted. If that decision is wrong, the symbol is in error. Gray coding reduces the number of bit errors caused by that symbol error when the error is between adjacent levels.
2. Why Do PAM4 Symbol Errors Often Occur Between Adjacent Levels?
2.1 Noise and Level Spacing
PAM4 has four levels and three eye openings. The spacing between adjacent levels is smaller than the overall peak-to-peak amplitude. Under noise, the received signal may cross a decision threshold and be mistaken for a neighboring level.
For additive noise that is small relative to the total signal swing, the most probable symbol error is usually confusion with an adjacent level rather than a jump across multiple levels.
2.2 Jitter and Bandwidth Limitations
Jitter, limited bandwidth, reflections, and intersymbol interference can close PAM4 eyes and make level decisions less reliable. These impairments often increase the likelihood of adjacent-level errors because the receiver has difficulty distinguishing closely spaced levels.
2.3 Nonlinearity and Level Compression
Driver nonlinearity, modulator nonlinearity, or laser distortion can compress or expand PAM4 level spacing. If some levels become closer together, errors between those levels become more likely. Gray coding cannot fix the physical distortion, but it can reduce the bit penalty when an adjacent-level decision error occurs.
3. How Gray Coding Converts Symbol Errors into Fewer Bit Errors
3.1 Example of an Adjacent-Level Error
Suppose the transmitter sends PAM4 level 1, mapped to bits 01. If noise causes the receiver to decide level 0 instead, the received symbol becomes 00. Under Gray coding, the error changes only one bit: 01 to 00.
If the receiver instead decides level 2, mapped to 11, the error also changes only one bit: 01 to 11. Both adjacent-level errors produce one bit error.
3.2 Comparison with a Non-Gray Mapping
Consider a simple binary-order mapping where levels 0, 1, 2, and 3 are mapped to 00, 01, 10, and 11. In this mapping, the adjacent levels 01 and 10 differ by two bits. If the receiver confuses these two adjacent levels, the symbol error causes two bit errors.
| Mapping Type | Level 0 | Level 1 | Level 2 | Level 3 | Adjacent Errors |
|---|---|---|---|---|---|
| Gray-coded PAM4 | 00 | 01 | 11 | 10 | Each adjacent pair differs by 1 bit. |
| Simple binary-order PAM4 | 00 | 01 | 10 | 11 | Middle adjacent pair differs by 2 bits. |
When adjacent-level errors dominate, Gray coding reduces the average number of bit errors per symbol error. For PAM4, a Gray-coded adjacent-level symbol error contributes one bit error. A non-Gray mapping may contribute two bit errors for certain adjacent-level confusions.
3.3 Relationship Between Symbol Error Rate and Bit Error Rate
The symbol error rate describes how often the receiver chooses the wrong PAM4 level. The bit error rate describes how often individual bits are wrong. Gray coding affects the relationship between the two.
For PAM4 with Gray mapping and dominant adjacent-level errors, the bit error rate can be approximated as:
BER ≈ SER / 2
This approximation applies when symbol errors are mainly between neighboring levels and each such error causes one bit error. Under other impairment conditions, the relationship can differ.
4. Why This Matters for PAM4 Signal Reliability
4.1 Lower Pre-FEC Bit Error Rate
High-speed PAM4 optical links often use forward error correction. FEC operates on bits, so reducing the number of bit errors per symbol error can lower the pre-FEC BER. A lower pre-FEC BER can provide more margin for the FEC decoder and improve the ability of the link to meet its target post-FEC BER.
4.2 Better Link Margin
Link margin depends on transmitter quality, receiver sensitivity, optical loss, noise, and coding. Gray coding does not change the optical power budget directly, but by reducing bit errors for adjacent-level decisions it can help preserve margin in practical PAM4 links.
4.3 Simplified Receiver Processing
In many DSP-based receivers, Gray mapping can simplify bit-metric generation and log-likelihood ratio calculations. Because adjacent symbols differ by one bit, the mapping aligns well with the dominant error mechanism in many PAM4 channels.
5. Gray Coding vs. FEC
Gray coding and FEC both improve reliability, but they work in different ways. Gray coding changes the mapping between bits and symbols. FEC adds redundant bits that allow the receiver to detect and correct errors.
| Technique | Main Mechanism | Effect on Symbol Errors | Effect on Bit Errors |
|---|---|---|---|
| Gray coding | Maps adjacent PAM4 levels to one-bit-different symbols. | Does not reduce symbol error rate. | Reduces bit errors caused by adjacent-level confusion. |
| FEC | Adds redundancy for error detection and correction. | Can correct some symbol-level and bit-level errors. | Improves post-FEC BER. |
Gray coding is not a substitute for FEC. It is a low-cost mapping technique that can make the raw bit stream more favorable for FEC and for link operation.
6. Limitations of Gray Coding
6.1 It Does Not Reduce Symbol Error Rate
Gray coding does not increase the distance between PAM4 levels, improve optical SNR, or reduce noise. If the receiver makes a wrong symbol decision, the symbol error has already occurred. Gray coding only reduces the bit penalty of certain symbol errors.
6.2 Non-Adjacent Errors Reduce the Benefit
If an impairment causes the receiver to confuse non-adjacent levels, Gray coding may not provide a one-bit-error advantage. Severe nonlinearity, large reflections, or unusual noise distributions can increase non-adjacent errors.
6.3 It Cannot Correct Physical Impairments
Driver nonlinearity, modulator distortion, laser chirp, bandwidth limitations, and poor optical coupling must be addressed through design, calibration, and equalization. Gray coding does not fix these physical problems.
6.4 Mapping Is Defined by the System
Practical PAM4 implementations use mappings defined by relevant specifications and transceiver architectures. Designers should verify the exact mapping and bit ordering used by the DSP, driver, and test equipment.
7. Testing and Verification
7.1 Verify the PAM4 Mapping
Test and validation should confirm that the transmitter DSP and receiver DSP use the intended PAM4 Gray mapping. A mapping mismatch can cause high BER even when the optical signal quality appears acceptable.
7.2 Measure SER and BER
Symbol error rate and bit error rate measurements can help evaluate the benefit of Gray coding. Under adjacent-level error dominance, the BER should be consistent with the expected relationship between SER and bit errors.
7.3 Evaluate FEC Margin
Pre-FEC BER and post-FEC BER measurements help determine whether the link has sufficient margin. Gray coding can improve pre-FEC BER for adjacent-level errors, but the final link performance also depends on FEC strength, receiver equalization, and optical conditions.
8. Why Gray Coding Matters in Modern PAM4 Optical Transceivers
As optical transceivers move to 400G, 800G, and 1.6T, PAM4 links operate with tight level spacing and limited margin. Small improvements in bit-level reliability can matter for FEC performance and manufacturing yield.
Gray coding is a simple but important part of the PAM4 signal chain. It aligns the bit mapping with the most common symbol-error mechanism—adjacent-level confusion—so that a symbol error does not automatically become a two-bit error.
For transceiver designers and network operators, Gray coding is therefore not just a coding detail. It is part of the overall strategy for maintaining reliable PAM4 signal transmission in high-speed optical links.
Conclusion
Gray coding improves PAM4 signal reliability by ensuring that adjacent PAM4 levels differ by only one bit. Because most PAM4 symbol errors occur between neighboring levels, this mapping reduces the number of bit errors caused by those symbol errors.
Gray coding does not reduce the symbol error rate, increase optical SNR, or replace FEC. Its value is in lowering the bit-error penalty of adjacent-level decisions, which can improve pre-FEC BER, FEC margin, and overall link robustness.
In modern high-speed optical transceivers, Gray coding works together with DSP, linear drivers, optical modulation, and FEC to support reliable PAM4 transmission.
Frequently Asked Questions
Note: The exact PAM4 mapping, bit ordering, and coding conventions depend on the transceiver architecture, DSP implementation, and applicable standards.
TEL:+86 132 6656 7067




















































>
>
>
>
>
>
>
>