PRBS – Pseudo-random binary sequence generator

Block SymbolLicensing group: STANDARD
PIC

Function Description
The PRBS block generates a pseudo-random binary sequence. The figure below displays how the sequence is generated.

PIC

The initial and final values of the sequence are val0. The sequence starts from this value when rising edge occurs at the START input (off on), the output y is immediately switched to the valhi value. The generator then switches the output to the other limit value with the period of swper seconds and the probability of switching swprob. After seqt seconds the output is set back to val0. A waitt-second period follows to allow the settling of the controlled system response. Only then it is possible to start a new sequence. It is possible to terminate the sequence prematurely by the BRK = on input when necessary.

Inputs

START

Starting signal (rising edge)

bool

BRK

Termination signal

bool

Outputs

y

Generated pseudo-random binary sequence

double

BSY

Busy flag

bool

Parameters

val0

Initial and final value

double

valhi

Upper level of the y output  1.0

double

vallo

Lower level of the y output  -1.0

double

swper

Period of random output switching [s]  1.0

double

swprob

Probability of switching   0.0  1.0 0.2

double

seqt

Length of the sequence [s]  10.0

double

waitt

Settling period [s]  2.0

double