MT Generate Bits (Fibonacci, Primitive Polynomial)

Generates Fibonacci pseudonoise (PN) bit sequences. The node repeats the selected pattern until it generates the number of total bits that you specify. Use this node to specify the primitive polynomial that determines the connection structure of the linear feedback shift register (LFSR).

1378

Inputs/Outputs

datatype_icon

total bits

Total number of pseudorandom bits to be generated.

Default value: 128

datatype_icon

specify primitive polynomial

The primitive polynomial for the PN bit sequence to be generated. The degree of the primitive polynomial determines the PN order.

The primitive polynomial is specified by an 8-bit signed integer array. If the degree of the primitive polynomial is N, for example, p(x) =a0 + a1x + a2x2 +……+ aNaN, the array contains (N + 1) elements. The first element is a0, and the last element is aN. Ensure that the polynomial you provide is a primitive polynomial. For example, if the primitive polynomial is p(x) = 1 + x14 + x15, then N = 15, and the array contains N + 1=16 elements.

datatype_icon

seed in

Initial state of the PN generator shift register.

Default value: 169

datatype_icon

error in

Error conditions that occur before this node runs.

The node responds to this input according to standard error behavior.

Standard Error Behavior

Default value: No error

datatype_icon

reset?

A Boolean that determines whether to continue generating bits using the previous iteration states.

TRUE The PN generator has been initiated with a new PN seed.
FALSE The PN sequence generator has resumed from where it had stopped during the previous iteration.

Default value: TRUE

datatype_icon

output bit stream

The generated pseudorandom data bits.

datatype_icon

seed out

A seed for use in the seed in parameter during the next call to this node when reset? is set to FALSE.

datatype_icon

error out

Error information.

The node produces this output according to standard error behavior.

Standard Error Behavior

Definition of Pseudorandom Sequences

Though deterministic in nature, seudorandom or pseudonoise (PN) sequences satisfy many properties of random numbers, such as autocorrelation, crosscorrelation, and so on. PN sequences are used in many applications and standards such as 802.11a and DVB. Some examples of PN sequences are maximal length shift register sequences, or m-sequences, Gold sequences, and Kasami sequences. An m-sequence generates a periodic sequence of length

L=2m1
bits and is generated by linear feedback shift registers (LFSRs). Two well known implementations of m-sequences are the Fibonacci implementation and the Galois implementation.

1378

The preceding figure shows the Fibonacci and Galois implementations of m-sequences. As can be seen in these figures, m-sequences contain m shift registers. The shift register set is filled with an m-bit initial seed that can be any value except 0. If the m bits in the m shift registers are all zero, then it is a degenerate case and the output of the generator is 0.

Examples of Fibonacci and Galois Implementation of Pseudorandom Sequences

The following examples demonstrate bit generation:

  1. The first example depicts the Fibonacci implementation. This structure is used in different standards, including DVB. Inputs are specified as follows:

    Primitive polynomial:

    1+X14+X15

    Initial seed: 000000010101001

    The following figure shows the circuitry:

    1378
    Seed Output
    0000000101010010+0=0
    0000001010100100+0=0
    0000010101001000+0=0
    0000101010010000+0=0
    0001010100100000+0=0
    0010101001000000+0=0
    0101010010000000+1=1
    1010100100000011+0=1
  2. The second example depicts the Galois implementation. Inputs are specified as follows:

    Primitive polynomial:

    1+X14+X15

    Initial seed: 000000010101001

    The circuitry is shown in the following figure:

    1378
    Seed Output
    0000000101010010
    0000001010100100
    0000010101001000
    0000101010010000
    0001010100100000
    0010101001000000
    0101010010000000
    1010100100000001
    1101001000000011
    0010010000000110
    0100100000001100
    1001000000011001
    1010000000110011
    1100000001100111
    0000000011001110
    0000000110011100