Hardcaml_circuits.Lfsr
Linear feedback shift registers
module Config : sig ... end
module Op : sig ... end
val create :
?config:Config.t ->
?counterpart_taps:Base.bool ->
?op:Op.t ->
(module Hardcaml.Comb.S with type t = 'a) ->
'a ->
'a
Create the update logic for a lfsr. Used in conjuction with reg_fb
to construct a complete lfsr
.
Galois
or Fibonacci
forms are supported - prefer Galois
in general as it has a shorter critical path.xor
or xnor
. With xor
the all 0's state is invalid while with xnor
the all 1's state is invalid.