主要内容

本页翻译不是最新的。点击此处可查看最新英文版本。

错误检测和纠错

CRC 码以及分组编码和卷积信道编码

使用以下方法应用错误检测和纠错:

  • 循环冗余校验 (CRC) 编码方法。还包括针对 HDL 优化的 CRC 生成器和检测器。

  • 分组编码方法,包括线性分组码、汉明码、博斯-乔赫里-霍克文黑姆 (BCH) 码、里德-所罗门 (RS) 码、低密度奇偶校验 (LDPC) 码和 Turbo 乘积码 (TPC)。还包括针对 HDL 优化的 RS 编码器和解码器。

  • 卷积编码方法,包括卷积、Turbo、后验概率 (APP) 和维特比方法。还包括可在 GPU 上运行以提高处理速度的 Turbo 和维特比解码器。

  • 伽罗华域,以实现有限域中偶数和奇数阶元素的操作。

要了解有关错误控制码的更多信息,请参阅Error Detection and Correction

函数

全部展开

crcConfigCyclic redundancy check (CRC) coding configuration (自 R2024a 起)
crcGenerateGenerate CRC code bits and append them to input data (自 R2024a 起)
crcDetectDetect errors in input data using CRC parity bits (自 R2024a 起)

线性分组码

cyclgenProduce parity-check and generator matrices for cyclic code
cyclpolyProduce generator polynomials for binary cyclic code
decodeBlock decoder
encodeBlock encoder
gfweightCalculate minimum distance of linear block code
gen2parConvert between parity-check and generator matrices
hammgenParity-check and generator matrices for Hamming code
syndtableProduce syndrome decoding table

BCH 码

bchencBCH encoder
bchdecBCH decoder
bchgenpolyProduce generator polynomials for BCH code
bchnumerrNumber of correctable errors for BCH code

里德-所罗门码

rsencReed-Solomon encoder
rsdecReed-Solomon decoder
rsgenpolyGenerator polynomial of Reed-Solomon code
rsgenpolycoeffsGenerator polynomial coefficients of Reed-Solomon code

LDPC 码

ldpcEncodeEncode binary LDPC code (自 R2021b 起)
ldpcDecodeDecode binary LDPC code (自 R2021b 起)
ldpcEncoderConfigCreate LDPC encoder configuration (自 R2021b 起)
ldpcDecoderConfigCreate LDPC decoder configuration (自 R2021b 起)
ldpcPCMGenerate parity-check matrix for LDPC coding (自 R2025a 起)
ldpcQuasiCyclicMatrixParity-check matrix of quasi-cyclic LDPC code (自 R2021b 起)

Turbo 乘积码

tpcencTurbo product code (TPC) encoder
tpcdecTurbo product code (TPC) decoder
convencConvolutionally encode binary message
vitdecConvolutionally decode binary data by using Viterbi algorithm
distspecCompute distance spectrum of convolutional code
getTurboIOIndicesCompute output indices for turbo coding (自 R2021a 起)
iscatastrophicTrue for trellis corresponding to catastrophic convolutional code
istrellisTrue for valid trellis structure
oct2decConvert octal to decimal numbers
poly2trellisConvert convolutional code polynomials to trellis description

伽罗华域计算 - 偶数阶有限域

convmtxConvolution matrix of Galois field vector
cosetsProduce cyclotomic cosets for Galois field
dftmtxDiscrete Fourier transform matrix in Galois field
fftFast Fourier transform of Galois field vector
filter (gf)1-D digital filter over Galois field
gfGalois field array
gftableGenerate file to accelerate Galois field computations
ifftInverse fast Fourier transform of Galois field vector
isprimitiveTrue for primitive polynomial for Galois field
logLogarithm in Galois field
minpolFind minimal polynomial of Galois field element
mldivideSolve systems of linear equations Ax = B for x when A is a Galois array
primpolyFind primitive polynomials for Galois field

奇特性伽罗华域 - 奇数阶有限域

gfaddAdd polynomials over Galois field
gfconvMultiply polynomials over Galois field
gfcosetsProduce cyclotomic cosets for Galois field
gfdeconvDivide polynomials over Galois field
gfdivDivide elements of Galois field
gffilterFilter data using polynomials over prime Galois field
gflineqFind particular solution of Ax = b over prime Galois field
gfminpolFind minimal polynomial of Galois field element
gfmulMultiply elements of Galois field
gfprettyPolynomial in traditional format
gfprimckCheck whether polynomial over Galois field is primitive
gfprimdfProvide default primitive polynomials for Galois field
gfprimfdFind primitive polynomials for Galois field
gfrankCompute rank of matrix over Galois field
gfrepcovConvert one binary polynomial representation to another
gfrootsFind roots of polynomial over prime Galois field
gfsubSubtract polynomials over Galois field
gftruncMinimize length of polynomial representation
gftupleSimplify or convert Galois field element formatting

对象

全部展开

comm.CRCGeneratorGenerate CRC code bits and append to input data
comm.CRCDetectorDetect errors in input data using CRC
comm.HDLCRCGeneratorGenerate CRC code bits and append to input data
comm.HDLCRCDetectorDetect errors in input data using CRC

BCH 码

comm.BCHEncoderEncode data using BCH encoder
comm.BCHDecoderDecode data using BCH decoder

里德-所罗门码

comm.RSEncoderEncode data using Reed-Solomon encoder
comm.RSDecoderDecode data using Reed-Solomon decoder
comm.HDLRSEncoderEncode message using Reed-Solomon encoder
comm.HDLRSDecoderDecode message using Reed-Solomon decoder
comm.ConvolutionalEncoderConvolutionally encode binary data
comm.gpu.ConvolutionalEncoderConvolutionally encode binary data with GPU
comm.TurboEncoderEncode input signal using turbo encoder parallel concatenated encoding scheme
comm.APPDecoderDecode convolutional code by using APP method
comm.TurboDecoderDecode input signal using turbo decoder parallel concatenated decoding scheme
comm.gpu.TurboDecoderDecode input signal using turbo decoding with GPU
comm.ViterbiDecoderDecode convolutionally encoded data using Viterbi algorithm
comm.gpu.ViterbiDecoderDecode convolutionally encoded data using Viterbi algorithm with GPU

模块

全部展开

General CRC GeneratorGenerate CRC code bits according to generator polynomial and append to input data frames
General CRC Syndrome DetectorDetect errors in received codeword frames according to generator polynomial
General CRC Generator HDL OptimizedGenerate CRC code bits and append them to input data
General CRC Syndrome Detector HDL OptimizedDetect errors in input data using CRC

线性分组码

Binary Cyclic EncoderCreate systematic cyclic code from binary vector data
Binary Cyclic DecoderDecode systematic cyclic code to recover binary vector data
Binary Linear EncoderCreate linear block code from binary vector data
Binary Linear DecoderDecode linear block code to recover binary vector data
Hamming EncoderCreate Hamming code from binary vector data
Hamming DecoderDecode Hamming code to recover binary vector data

BCH 码

BCH EncoderCreate BCH code from binary vector data
BCH DecoderDecode BCH code to recover binary vector data

里德-所罗门码

Binary-Input RS EncoderCreate Reed-Solomon code from binary vector data
Binary-Output RS DecoderDecode Reed-Solomon code to recover binary vector data
Integer-Input RS EncoderCreate Reed-Solomon code from integer vector data
Integer-Output RS DecoderDecode Reed-Solomon code to recover integer vector data
Integer-Input RS Encoder HDL OptimizedEncode data using a Reed-Solomon (RS) encoder
Integer-Output RS Decoder HDL OptimizedDecode data using Reed-Solomon (RS) decoder

LDPC 码

LDPC EncoderEncode binary low-density parity-check (LDPC) code
LDPC DecoderDecode binary low-density parity-check (LDPC) code

Turbo 乘积码

TPC EncoderTurbo product code (TPC) encoder
TPC DecoderTurbo product code (TPC) decoder
Convolutional EncoderEncode binary data using convolutional encoding scheme
Turbo EncoderEncode binary data using parallel concatenated encoding scheme
APP DecoderDecode convolutional code using a posteriori probability (APP) method
Turbo DecoderDecode input signal using parallel concatenated decoding scheme
Viterbi DecoderDecode convolutionally encoded data using Viterbi algorithm

主题

精选示例