#include <trellis.h>
Inheritance diagram for simthlib::ShiftRegisterM:
Public Member Functions | |
ShiftRegisterM (int symbolsPerStep, int bitsPerSymbol, const simth::checkedVector< int > &octalPolynomials, int recursivePolynomial=0, int inbits=1) | |
virtual | ~ShiftRegisterM () |
virtual int | getNextState (int inputPattern, int oldState) const |
virtual int | getOutput (int input, int state) const |
virtual int | getRecursive (int newState) const |
virtual int | tailsteps () const |
Protected Member Functions | |
void | binaryState2symbolState (int binState, simth::checkedVector< int > &symbolStates) const |
int | symbolState2binaryState (const simth::checkedVector< int > &symbolStates) const |
void | shiftVector (simth::checkedVector< int > &vec, int increment) const |
int | getRecursive (const simth::checkedVector< int > &symbolStates) const |
|
Constructor |
|
|
|
|
|
Computates the next state of a shift register according to a given input, and a given previous state. Implements simthlib::ShiftRegister. |
|
Computes the output of the shift register according to a given state and input. Implements simthlib::ShiftRegister. |
|
Implements simthlib::ShiftRegister. |
|
|
|
|
|
|
|
Implements simthlib::ShiftRegister. |