Binary Linear Feedback Shift Register (LFSR) More...
#include <itpp/comm/sequence.h>
Public Member Functions | |
LFSR (void) | |
Constructor. More... | |
LFSR (const bvec &connections) | |
Input connect_polynomial=1+g1*D+g2*D^2+...+gr*D^r in bvec format [g0,g1,...,gr]. More... | |
LFSR (const ivec &connections) | |
Input connect_polynomial=1+g1*D+g2*D^2+...+gr*D^r in octal format. More... | |
void | set_connections (const bvec &connections) |
Input connect_polynomial=1+g1*D+g2*D^2+...+gr*D^r in bvec format [g0,g1,...,gr]. More... | |
void | set_connections (const ivec &connections) |
Input connect_polynomial=1+g1*D+g2*D^2+...+gr*D^r in octal format. More... | |
void | set_state (const bvec &state) |
Set state (contents in the shift registers) in bvec format. More... | |
void | set_state (const ivec &state) |
Set state (contents in the shift registers) in octal format. More... | |
bin | shift (void) |
Shift one step and output binary symbol. More... | |
bvec | shift (int no_shifts) |
Shift no_shifts steps and output bvec. More... | |
int | get_length (void) |
Return length of shift register. More... | |
bvec | get_state (void) |
Returns the state of the shift register. More... | |
Binary Linear Feedback Shift Register (LFSR)
Definition at line 53 of file sequence.h.
|
inline |
Constructor.
Definition at line 57 of file sequence.h.
itpp::LFSR::LFSR | ( | const bvec & | connections | ) |
Input connect_polynomial=1+g1*D+g2*D^2+...+gr*D^r in bvec format [g0,g1,...,gr].
Definition at line 37 of file sequence.cpp.
References set_connections().
itpp::LFSR::LFSR | ( | const ivec & | connections | ) |
Input connect_polynomial=1+g1*D+g2*D^2+...+gr*D^r in octal format.
Definition at line 42 of file sequence.cpp.
References set_connections().
void itpp::LFSR::set_connections | ( | const bvec & | connections | ) |
Input connect_polynomial=1+g1*D+g2*D^2+...+gr*D^r in bvec format [g0,g1,...,gr].
Definition at line 47 of file sequence.cpp.
Referenced by itpp::Gold::Gold(), and LFSR().
void itpp::LFSR::set_connections | ( | const ivec & | connections | ) |
Input connect_polynomial=1+g1*D+g2*D^2+...+gr*D^r in octal format.
Definition at line 54 of file sequence.cpp.
References itpp::oct2bin().
void itpp::LFSR::set_state | ( | const bvec & | state | ) |
Set state (contents in the shift registers) in bvec format.
Definition at line 62 of file sequence.cpp.
References it_assert.
Referenced by itpp::Gold::set_state().
void itpp::LFSR::set_state | ( | const ivec & | state | ) |
Set state (contents in the shift registers) in octal format.
Definition at line 68 of file sequence.cpp.
References it_assert, and itpp::oct2bin().
|
inline |
Shift one step and output binary symbol.
Definition at line 125 of file sequence.h.
Referenced by itpp::Gold::get_family(), shift(), and itpp::Gold::shift().
bvec itpp::LFSR::shift | ( | int | no_shifts | ) |
Shift no_shifts steps and output bvec.
Definition at line 75 of file sequence.cpp.
|
inline |
Return length of shift register.
Definition at line 126 of file sequence.h.
Referenced by itpp::Gold::get_family(), and itpp::Gold::Gold().
|
inline |
Returns the state of the shift register.
Definition at line 127 of file sequence.h.
Generated on Tue Jan 24 2023 00:00:00 for IT++ by Doxygen 1.9.5