package hardcaml

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

Module Int_comb.SignedSource

Signed vectors.

Sourcetype v

Typed wrapper for t.

Sourceval of_signal : t -> v

Convert to v from a Comb.t.

Sourceval to_signal : v -> t

Convert v to a Comb.t.

Sourceval (+:) : v -> v -> v

Addition. Arguments are extended appropriately and result is 1 bit wider to avoid truntraction.

Sourceval (-:) : v -> v -> v

Subtraction. Arguments are extended appropriately and result is 1 bit wider to avoid truntraction.

Sourceval (*:) : v -> v -> v

Mulitplication.

Comparison operations

. Arguments need not be the same width.

Sourceval (<:) : v -> v -> v
Sourceval (>:) : v -> v -> v
Sourceval (<=:) : v -> v -> v
Sourceval (>=:) : v -> v -> v
Sourceval (==:) : v -> v -> v
Sourceval (<>:) : v -> v -> v
Sourceval resize : v -> Base.int -> v

Resize argument to given width. Appropriate extension is performed.

OCaml

Innovation. Community. Security.