- property sdr.FLFSR.initial_state : FieldArray
The initial state vector \(S = [S_0, S_1, \dots, S_{n-2}, S_{n-1}]\).
Examples
In [1]: c = galois.primitive_poly(7, 4) In [2]: lfsr = sdr.FLFSR(c, state=[1, 2, 3, 4]); lfsr Out[2]: <Fibonacci LFSR: c(x) = x^4 + x^2 + 3x + 5 over GF(7)> In [3]: lfsr.initial_state Out[3]: GF([1, 2, 3, 4], order=7)
The initial state is unaffected as the Fibonacci LFSR is stepped.
In [4]: lfsr.step(10) Out[4]: GF([4, 3, 2, 1, 4, 6, 4, 5, 0, 2], order=7) In [5]: lfsr.initial_state Out[5]: GF([1, 2, 3, 4], order=7)