package hardcaml

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

Module Hardcaml.Combinational_opSource

A custom combinational operation that can be inserted into a simulation.

Implementation of the custom operation using Bits.Mutable.t

Sourcetype t
Sourceval sexp_of_t : t -> Sexplib0.Sexp.t
Sourceval create : name:Base.string -> input_widths:Base.int Base.list -> output_widths:Base.int Base.list -> create_fn:create_fn -> Base.unit -> t
Sourceval create_fn_of_bits : (Bits.t Base.list -> Bits.t Base.list) -> create_fn

Constructed a create_fn from a Bits.t implementation. This will allocate and be a little less efficient, but might be simpler to write.

Sourceval name : t -> Base.string
Sourceval create_fn : t -> create_fn
Sourceval instantiate : t -> inputs:Signal.t Base.list -> Signal.t Base.list

Instantiate a custom operation within a hardcaml design.