Hardcaml_circuits.LfsrLinear feedback shift registers
module Config : sig ... endmodule Op : sig ... endval create :
?config:Config.t ->
?counterpart_taps:Base.bool ->
?op:Op.t ->
(module Hardcaml.Comb.S with type t = 'a) ->
'a ->
'aCreate 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.