package hardcaml_verify

  1. Overview
  2. Docs
Hardcaml Verification Tools

Install

Dune Dependency

Authors

Maintainers

Sources

v0.17.0.tar.gz
sha256=a09a904776ad848f685afb4ebe85e0d449acb81f6f2425fccc52a3c5b76be629

doc/hardcaml_verify.kernel/Hardcaml_verify_kernel/Comb_gates/Unsigned/index.html

Module Comb_gates.UnsignedSource

Unsigned 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.