package hardcaml_circuits

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

Module Fixnum.MakeSource

Parameters

module Spec : Spec

Signature

Sourcetype t
Sourceval width : Base.int
Sourceval of_float : Base.float -> t
Sourceval to_float : t -> Base.float
Sourceval constb : t -> Base.string

const is used with Bits.constb and Signal.constb.

Sourceval of_bits : Hardcaml.Bits.t -> t
Sourceval to_bits : t -> Hardcaml.Bits.t
Sourceval pow2 : Base.int -> t
Sourceval to_scaled_int : t -> Base.int

to_scaled_int t = t * (2**fractional_width).

Sourceval bits_constf : Base.float -> Hardcaml.Bits.t
Sourceval signal_constf : Base.float -> Hardcaml.Signal.t