#include <sequence.h>
Public Member Functions | |
| LFSR (void) | |
| Constructor. | |
| LFSR (const bvec &connections) | |
| Input connect_polynomial=1+g1*D+g2*D^2+...+gr*D^r in bvec format [g0,g1,...,gr]. | |
| LFSR (const ivec &connections) | |
| Input connect_polynomial=1+g1*D+g2*D^2+...+gr*D^r in octal format. | |
| void | set_connections (const bvec &connections) |
| Input connect_polynomial=1+g1*D+g2*D^2+...+gr*D^r in bvec format [g0,g1,...,gr]. | |
| void | set_connections (const ivec &connections) |
| Input connect_polynomial=1+g1*D+g2*D^2+...+gr*D^r in octal format. | |
| void | set_state (const bvec &state) |
| Set state (contents in the shift registers) in bvec format. | |
| void | set_state (const ivec &state) |
| Set state (contents in the shift registers) in octal format. | |
| bin | shift (void) |
| Shift one step and output binary symbol. | |
| bvec | shift (int no_shifts) |
| Shift no_shifts steps and output bvec. | |
| int | get_length (void) |
| Return length of shift register. | |
| bvec | get_state (void) |
| Returns the state of the shift register. | |
|
|
Constructor.
|
|
|
Input connect_polynomial=1+g1*D+g2*D^2+...+gr*D^r in bvec format [g0,g1,...,gr].
|
|
|
Input connect_polynomial=1+g1*D+g2*D^2+...+gr*D^r in octal format.
|
|
|
Return length of shift register.
|
|
|
Returns the state of the shift register.
|
|
|
Input connect_polynomial=1+g1*D+g2*D^2+...+gr*D^r in octal format.
|
|
|
Input connect_polynomial=1+g1*D+g2*D^2+...+gr*D^r in bvec format [g0,g1,...,gr].
|
|
|
Set state (contents in the shift registers) in octal format.
|
|
|
Set state (contents in the shift registers) in bvec format.
|
|
|
Shift no_shifts steps and output bvec.
|
|
|
Shift one step and output binary symbol.
|
1.4.4