package hardcaml

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

Module Structural.Base1Source

includes mux, concat, select

  • deprecated [since 2017-11] Waiting on further work.
Sourcetype t = signal
Sourceval sexp_of_t : t -> Sexplib0.Sexp.t
include Base.Equal.S with type t := t
Sourceval empty : t

the empty signal

Sourceval is_empty : t -> Base.bool
Sourceval width : t -> Base.int

returns the width of a signal

Sourceval of_constant : Constant.t -> t

creates a constant

Sourceval to_constant : t -> Constant.t
Sourceval concat_msb : t Base.list -> t

concatenates a list of signals

Sourceval select : t -> Base.int -> Base.int -> t

select a range of bits

Sourceval (--) : t -> Base.string -> t

names a signal

Sourceval (&:) : t -> t -> t

bitwise and

Sourceval (|:) : t -> t -> t

bitwise or

Sourceval (^:) : t -> t -> t

bitwise xor

Sourceval (~:) : t -> t

bitwise not

Sourceval to_string : t -> Base.string

create string from signal

Sourceval mux : t -> t Base.list -> t

multiplexer

Sourceval (+:) : t -> t -> t

addition

Sourceval (-:) : t -> t -> t

subtraction

Sourceval (*:) : t -> t -> t

unsigned multiplication

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

signed multiplication

Sourceval (==:) : t -> t -> t

equality

Sourceval (<:) : t -> t -> t

less than

OCaml

Innovation. Community. Security.