Performance Peculiarities of Viterbi Decoder in Mathworks Simulink, GNU Radio and Other Systems with Likewise Implementation

Alexey Shapin, Denis Kleyko, Nikita Lyamin, Evgeny Osipov, Oleg MelentyevarXiv 2015

Abstract

The Viterbi Algorithm (VA) is a cornerstone of digital communications, typically assumed to have performance independent of the transmitted data sequence. This paper identifies a deterministic implementation bias in common simulation environments like Mathworks Simulink and GNU Radio. By analyzing the Add-Compare-Select (ACS) unit's tie-breaking rules, the authors demonstrate that "non-random" path selection leads to significant Bit Error Rate (BER) fluctuations based on the ratio of zeros to ones in the input message. The study quantifies the frequency of these metric ties and shows that while soft-decision quantization mitigates the effect, the bias remains a critical factor for accurate system modeling and hardware verification.

Introduction

In digital communication systems, convolutional codes are used to add redundancy, allowing for error correction at the receiver. The Viterbi Algorithm is the standard method for decoding these signals, finding the most likely path through a trellis of possible states. Theoretically, the decoder's ability to correct errors should be invariant to whether the input is a stream of zeros, ones, or a random mix. However, a subtle discrepancy arises in the Add-Compare-Select (ACS) unit. When two paths entering a state have identical metrics, a "tie" occurs. While theoretical models assume a random choice (e.g., a coin flip), practical software implementations often use fixed, deterministic rules—such as always favoring the path associated with a zero bit—introducing a performance bias.

Methodology

The researchers conducted simulations using Mathworks Simulink to compare three tie-breaking strategies:

  1. Random Selection: The theoretical "ideal" approach.
  2. Zero-Oriented: Always choosing the path containing more zeros (the default in Simulink and GNU Radio).
  3. One-Oriented: Always choosing the path containing more ones.

A Binary Bernoulli Generator was used to create synthetic message streams with controlled Probabilities of Zero (PoZ). The study also evaluated the impact of quantization, comparing hard-decision decoding with 4, 8, and 16-level soft-decision decoding across various Signal-to-Noise Ratios (SNR).

Results and Discussion

A key finding of the study is that metric ties occur much more frequently than typically assumed, particularly at low SNR.

Frequency of metric ties (equality) as a percentage of total ACS operations across different SNR and quantization levels.

As shown in Figure 3, hard-decision decoding is most susceptible to these ties, with the frequency reaching over 15% at 0 dB SNR. Increasing the number of soft-decision quantization levels significantly reduces the occurrence of ties, acting as a buffer against the implementation bias.

The consequence of these ties, when resolved deterministically, is a direct dependency of the Bit Error Rate (BER) on the message's bit distribution. This is further complicated by the "retrospective effect": although a tie-break occurs at a specific trellis step, the choice determines the survivor path, potentially causing errors in bits that occurred earlier in the sequence.

Bit Error Rate (BER) as a function of the Probability of Zero (PoZ) for different tie-breaking strategies at 0 dB SNR.

Figure 6 illustrates this bias: the "zero-oriented" decoder performs significantly better on zero-heavy streams (high PoZ) and worse on one-heavy streams. At an SNR of 0 dB, a zero-oriented decoder processing an all-zero message (PoZ = 1) was nearly twice as effective as the theoretical random-selection model and 2.4 times better than a one-oriented decoder. All strategies converged only when the input message had an equal distribution of zeros and ones (PoZ = 0.5).

Conclusion

This research highlights a "hidden bias" in widely used Viterbi decoder implementations. To avoid misleading simulation results, it is essential to ensure a balanced bit distribution, typically achieved through data scrambling. Furthermore, the strong correlation between metric tie frequency and channel noise presents an opportunity for novel SNR estimation techniques. Future work may involve investigating proprietary hardware implementations to determine which tie-breaking rules are most prevalent in commercial chips.

Summary updated

BibTeX
@misc{shapin2015performance,
  author = {Alexey Shapin and Denis Kleyko and Nikita Lyamin and Evgeny Osipov and Oleg Melentyev},
  title = {{Performance Peculiarities of Viterbi Decoder in Mathworks Simulink, GNU Radio and Other Systems with Likewise Implementation}},
  year = {2015},
  eprint = {1510.01139},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1510.01139},
}
Figure