﻿ cyclic_encoder - System Studio DSP Libraries

HOME    SYSTEMS    BLOCK DESIGN    DIGITAL SIGNAL PROCESSING    SYSTEM STUDIO DSP LIBRARIES
System Studio Libraries

3000+ Models To Accelerate Your DSP-based Design

The System Studio DSP model libraries consist of more than 3000 models ranging from simple to complex, supporting the analysis and design of advanced protocols and standards in the wireless and digital signal processing domain. These proven models accelerate your digital signal processing algorithm design by providing ready-to-go simulation models that can be quickly modified to create alternative solutions then analyzed in our high-performance data flow modeling environment, System Studio.

cyclic_encoder
Encoder for Systematic (N,K) Cyclic Codes
This model performs encoding for systematic (N,K) cyclic codes. The input signal is mapped to a polynomial with the bit coming first being applied to the highest exponent. The parity bits are written to the ouptut with the bit applied to the highest exponent of the rest polynomial first.
```        first_in * x**N + ... + last_in * x**K = q(x) * g(x)      + first_parity_out * x**(K-1) + ... + last_parity_out * x**0
```
Code Description The code description is passed to this coder (and the corresponding decoder CYCLIC_DECODER) in an input dataset containing three records. The first record contains the code parameters K, N. The second record contains a parity inversion flag INVERT_PARITY. The third record contains the exponents of the code polynomial in arbitrary order. Code Parameters N,K,INVERT_PARITY A block of K information bit is coded into a codeword of N code bit. The code is systematic, i.e. the first K bit of the codeword are the information bits, the last N-K bits are the parity bits. For INVERT_PARITY = -1 the parity bits are logically inverted (for INVERT_PARITY = 1 the are not inverted). The parity bits are obtained by dividing the information bits by the code polynomial
```   g(x) = x**exp(1) + ... + x**exp(m)
```
where 0 <= exp(i) <= N-K. Note that 0 and N-K must be exponent values in the polynomial. The corresponding decoder is called CYCLIC_DECODER. Note: The same input dataset files should be used for CYCLIC_ENCODER and CYCLIC_DECODER in order to avoid errors. LICENSE Please note that this model requires the license feature CoCentric-SYS-LIB-ecc. Implementation Info:
```  name:
```
SOURCE_CODE C cyclic_encoder M15_82_2_cyclic_encoder
```  Description:
```
Simulation source code
Ports
NameDirectionDatatype
CODED_BITSoutint
N coded bits are written for each frame of K information bits.
INFORMATION_BITSinint
K information bits are read for each frame of N code bits.
Parameters
NameTypeDatatypeDefault Value
The code description is given with one input dataset,
which holds three records. The first record holds two integers
for K = length of information frame and N = length of codeword
(e.g K=2, N=3 for rate= 2/3).
The second record holds the parity inversion flag INVERT_PARITY,
i.e. for INVERT_PARITY = -1 the parity is inverted
(for INVERT_PARITY =1 it is not inverted).
The third record holds the exponents of the generator polynomial.

For further information see description.
1.1.1 1.1.1.1 1.1.1.2 1.1.2 1.1.2.1 1.1.3 1.1.3.* 1.2
Categories
• coder