package hardcaml

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

progressively more structural APIs

type t = signal
val sexp_of_t : t -> Ppx_sexp_conv_lib.Sexp.t
val equal : t Base__Equal.equal
val empty : t

the empty signal

val is_empty : t -> Hardcaml__.Import.Bool.t
val width : t -> Base.Int.t

returns the width of a signal

val of_constant : Constant.t -> t

creates a constant

val to_constant : t -> Constant.t
val concat_msb : t Hardcaml__.Import.List.t -> t

concatenates a list of signals

val select : t -> Base.Int.t -> Base.Int.t -> t

select a range of bits

val (--) : t -> Hardcaml__.Import.String.t -> t

names a signal

val (&:) : t -> t -> t

bitwise and

val (|:) : t -> t -> t

bitwise or

val (^:) : t -> t -> t

bitwise xor

val (~:) : t -> t

bitwise not

val to_string : t -> Hardcaml__.Import.String.t

create string from signal

val mux : t -> t Hardcaml__.Import.List.t -> t

multiplexer

val (+:) : t -> t -> t

addition

val (-:) : t -> t -> t

subtraction

val (*:) : t -> t -> t

unsigned multiplication

val (*+) : t -> t -> t

signed multiplication

val (==:) : t -> t -> t

equality

val (<:) : t -> t -> t

less than

OCaml

Innovation. Community. Security.